@foreach($rootCategories as $category) @php $url1 = '/class/index?f=product_list'; $url2 = '/course/course-student'; $url3 = '/course/course-teacher'; $url4 = '/class/add'; if($category->moodle_type == 'category'){ $url1 .= '&only_product=1&course_category_id=' . $category->id; $url2 .= '?product_course_id=' . $category->id; $url3 .= '?product_course_id=' . $category->id; $url4 = ''; } if($category->moodle_type == 'course'){ $url1 .= '&courseIds=' . $category->id; $url2 .= '?product_course_id=' . $category->id . '&is_course=1'; $url3 .= '?product_course_id=' . $category->id . '&is_course=1'; $url4 .= '?course_id=' . $category->id . '&only_course=1&f=product_list'; } @endphp @endforeach
Tên sản phẩm Số lớp VH Tổng số lớp Số HS đang học Tổng số HS Số GV đăng ký Hành động
@if($category->has_children) @else @endif {{ $category->moodle_name }}
{{ $category->class_count ?? 0 }} {{ $category->total_class_count ?? 0 }} {{ $category->student_count ?? 0 }} {{ $category->total_student_count ?? 0 }} {{ $category->teacher_count ?? 0 }}