@extends('schoolLayout.app')
@section('content')
@include('successError')
Exam Timetable Managment
| Exam Name |
Session |
Classes |
Start Date |
End Date |
Type |
Time Table |
Actions |
@if($exam_time_table)
@foreach($exam_time_table as $exam_id => $examTimetable)
@php
$first = $examTimetable->first(); // get first record to access exam/session
$class_names = $examTimetable->pluck('class.name')->unique();
$start_date = $examTimetable->min('exam_date');
$end_date = $examTimetable->max('exam_date');
@endphp
| {{ $first->exam->title }} |
{{ $first->academic_session }} |
{{ implode(', ', $class_names->toArray()) }} |
{{ $start_date}} |
{{$end_date}} |
{{ $first->exam->type }}
|
|
|
@endforeach
@endif
@endsection