@foreach($courses as $course) @endforeach @if(count($courses) == 0) @endif
Tên khóa học Loại Số lần làm Thao tác
{{ $course->moodle_name }}
{{ $course->moodle_type }} @php // Áp dụng tenant logic để đếm số lần làm bài $attemptCount = 0; if (isset($tenantConnection) && $tenantConnection && isset($isUserAllowedForTenant) && $isUserAllowedForTenant) { $attemptCount = getCountCourseAttempt($course->id, $user->id, $tenantConnection, $isUserAllowedForTenant); } else { $attemptCount = getCountCourseAttempt($course->id, $user->id); } @endphp {{ $attemptCount }}
Không có khóa học nào
Hiển thị {{ $courses->firstItem() ?? 0 }} đến {{ $courses->lastItem() ?? 0 }} của {{ $courses->total() ?? 0 }} khóa học
{{ $courses->links() }}