@php // Chỉ hiển thị nút Guest mode cho tenant ICC $tenantConnection = \App\Helpers\HelperTenant::getCurrentTenantConnection(); @endphp
| #ID | Tên học sinh | Lớp | Khóa học | Tài khoản | Điện thoại | Hành động | |
|---|---|---|---|---|---|---|---|
| {{ $student->id }} | {{ $student->name }} | @if($student->classesStudent->isNotEmpty()) @php $classNames = $student->classesStudent->pluck('name'); $displayedClasses = $classNames->take(1)->implode(', '); $remainingClasses = $classNames->slice(1)->implode(', '); @endphp {{ $displayedClasses }} @if($classNames->count() > 1) , @endif @else - @endif | @if(isset($student->courses) && $student->courses->isNotEmpty()) @php $courseNames = $student->courses->unique('moodle_id')->pluck('moodle_name'); $displayedCourses = $courseNames->take(1)->implode(', '); $remainingCourses = $courseNames->slice(1)->implode(', '); @endphp {{ $displayedCourses }} @if($courseNames->count() > 1) , @endif @else - @endif | {{ $student->username ?? '-' }} | {{ $student->email }} | {{ $student->phone ?? '-' }} |
@if($tenantConnection === 'lms_tenant_icc' && in_array($currentEmail ?? '', ['test@hocmai.vn','thangnt@hocmai.vn','kienpn@ctv.hocmai.vn', 'tungtt@ctv.hocmai.vn']))
@endif
|