@foreach ($pm12 as $row)
@php
$data = App\Models\Classroom::where('id', $row->classroom_id)->first();
$classroom = $data != null ? $data->name : '';
$totalStudents = App\Models\StudentCourses::where('course_id', $row->id)->count();
$totalAfternoon += $totalStudents;
@endphp
{{ ++$loop->index}} |
{{ $row->title }} |
{{ $row->time_start }} - {{ $row->time_end }} |
{{ $classroom }} |
{{ $row->category }} |
{{ $row->start_date }} |
{{ $row->end_date }} |
|
|
{{ $totalStudents }} |
@endforeach
@foreach ($pm1 as $row)
@php
$data = App\Models\Classroom::where('id', $row->classroom_id)->first();
$classroom = $data != null ? $data->name : '';
$totalStudents = App\Models\StudentCourses::where('course_id', $row->id)->count();
$totalAfternoon += $totalStudents;
@endphp
{{ ++$loop->index}} |
{{ $row->title }} |
{{ $row->time_start }} - {{ $row->time_end }} |
{{ $classroom }} |
{{ $row->category }} |
{{ $row->start_date }} |
{{ $row->end_date }} |
|
|
{{ $totalStudents }} |
@endforeach
@foreach ($pm2 as $row)
@php
$data = App\Models\Classroom::where('id', $row->classroom_id)->first();
$classroom = $data != null ? $data->name : '';
$totalStudents = App\Models\StudentCourses::where('course_id', $row->id)->count();
$totalAfternoon += $totalStudents;
@endphp
{{ ++$loop->index}} |
{{ $row->title }} |
{{ $row->time_start }} - {{ $row->time_end }} |
{{ $classroom }} |
{{ $row->category }} |
{{ $row->start_date }} |
{{ $row->end_date }} |
|
|
{{ $totalStudents }} |
@endforeach
@foreach ($pm3 as $row)
@php
$data = App\Models\Classroom::where('id', $row->classroom_id)->first();
$classroom = $data != null ? $data->name : '';
$totalStudents = App\Models\StudentCourses::where('course_id', $row->id)->count();
$totalAfternoon += $totalStudents;
@endphp
{{ ++$loop->index}} |
{{ $row->title }} |
{{ $row->time_start }} - {{ $row->time_end }} |
{{ $classroom }} |
{{ $row->category }} |
{{ $row->start_date }} |
{{ $row->end_date }} |
|
|
{{ $totalStudents }} |
@endforeach
@foreach ($pm4 as $row)
@php
$data = App\Models\Classroom::where('id', $row->classroom_id)->first();
$classroom = $data != null ? $data->name : '';
$totalStudents = App\Models\StudentCourses::where('course_id', $row->id)->count();
$totalAfternoon += $totalStudents;
@endphp
{{ ++$loop->index}} |
{{ $row->title }} |
{{ $row->time_start }} - {{ $row->time_end }} |
{{ $classroom }} |
{{ $row->category }} |
{{ $row->start_date }} |
{{ $row->end_date }} |
|
|
{{ $totalStudents }} |
@endforeach
@foreach ($pm5 as $row)
@php
$data = App\Models\Classroom::where('id', $row->classroom_id)->first();
$classroom = $data != null ? $data->name : '';
$totalStudents = App\Models\StudentCourses::where('course_id', $row->id)->count();
$totalAfternoon += $totalStudents;
@endphp
{{ ++$loop->index}} |
{{ $row->title }} |
{{ $row->time_start }} - {{ $row->time_end }} |
{{ $classroom }} |
{{ $row->category }} |
{{ $row->start_date }} |
{{ $row->end_date }} |
|
|
{{ $totalStudents }} |
@endforeach
@foreach ($pm6 as $row)
@php
$data = App\Models\Classroom::where('id', $row->classroom_id)->first();
$classroom = $data != null ? $data->name : '';
$totalStudents = App\Models\StudentCourses::where('course_id', $row->id)->count();
$totalAfternoon += $totalStudents;
@endphp
{{ ++$loop->index}} |
{{ $row->title }} |
{{ $row->time_start }} - {{ $row->time_end }} |
{{ $classroom }} |
{{ $row->category }} |
{{ $row->start_date }} |
{{ $row->end_date }} |
|
|
{{ $totalStudents }} |
@endforeach
@foreach ($pm7 as $row)
@php
$data = App\Models\Classroom::where('id', $row->classroom_id)->first();
$classroom = $data != null ? $data->name : '';
$totalStudents = App\Models\StudentCourses::where('course_id', $row->id)->count();
$totalAfternoon += $totalStudents;
@endphp
{{ ++$loop->index}} |
{{ $row->title }} |
{{ $row->time_start }} - {{ $row->time_end }} |
{{ $classroom }} |
{{ $row->category }} |
{{ $row->start_date }} |
{{ $row->end_date }} |
|
|
{{ $totalStudents }} |
@endforeach