@php $can_update = false; @endphp @if (auth()->user()->can('exam.academic_exam_schedule.update')) @php $can_update = true; @endphp @endif @if (count($trash_academic_exam_schedules) > 0) @foreach ($trash_academic_exam_schedules as $exam_schedule) @php $exam_rowspan = count($exam_schedule->get_exam_type_schedule); @endphp @php $first_subject_id = $exam_schedule->get_exam_subject_schedule[0]->subject_id; $first_subject_exam_type = $exam_schedule->get_exam_type_schedule->filter(function ($item) use ( $first_subject_id, ) { return $item->subject_id == $first_subject_id; }); $first_subject_rowspan = count($first_subject_exam_type); $first_subject_schedule = $exam_schedule->get_exam_subject_wise_schedule->first(function ($item) use ( $first_subject_id, ) { return $item->subject_id == $first_subject_id; }); @endphp {{ $exam_schedule->get_exam->exam_name }} {{ $exam_schedule->get_exam_subject_schedule[0]->get_subject[0]->subject }} {{ $first_subject_exam_type[0]->get_exam_type[0]->exam_type }} ( {{ $first_subject_exam_type[0]->exam_mark }})
@if ($can_update)
@endif
{{ $exam_schedule['note'] }} @if (auth()->user()->can('exam.academic_exam_schedule.delete')) @endif @if (auth()->user()->can('exam.academic_exam_schedule.trash_delete')) @endif @foreach ($first_subject_exam_type->skip(1) as $first_subject_exam_type_item) {{ $first_subject_exam_type_item->get_exam_type[0]->exam_type }} ( {{ $first_subject_exam_type[0]->exam_mark }}) @endforeach @foreach ($exam_schedule->get_exam_subject_schedule->skip(1) as $subject_schedule) @php $this_subject_id = $subject_schedule->subject_id; $this_subject_exam_type = $exam_schedule->get_exam_type_schedule->filter(function ($item) use ( $this_subject_id, ) { return $item->subject_id == $this_subject_id; }); $this_subject_rowspan = count($this_subject_exam_type); $this_subject_schedule = $exam_schedule->get_exam_subject_wise_schedule->first(function ($item) use ( $this_subject_id, ) { return $item->subject_id == $this_subject_id; }); @endphp {{ $subject_schedule->get_subject[0]->subject ?? 'N/A' }} {{ $this_subject_exam_type->first()->get_exam_type[0]->exam_type ?? 'N/A' }} ({{ $this_subject_exam_type->first()->exam_mark ?? '-' }})
@foreach ($this_subject_exam_type->skip(1) as $this_subject_exam_type_item) {{ $this_subject_exam_type_item->get_exam_type[0]->exam_type ?? 'N/A' }} ({{ $this_subject_exam_type_item->exam_mark ?? '-' }}) @endforeach @endforeach @endforeach @else No data found @endif