@if(session('status'))
{{ session('status') }}
@endif
@if($errors->any())
{{ $errors->first() }}
@endif
{{ $batch->offering->course->title }}
{{ $batch->offering->academicSession->name }} / {{ $batch->offering->semester->name }} · {{ $batch->gradingSystem->name }} · Version {{ $batch->version }}
{{ str_replace('_',' ',ucfirst($batch->status)) }} Export CSV
@can('update',$batch)
@endcan
| Student | Assignment | Test | Attendance | Practical | Exam | Total | Grade | |
@foreach($items as $item) @php($result=$batch->results->firstWhere('student_id',$item->registration->student_id))
@endforeach
@php($targets=['draft'=>'submitted','submitted'=>'hod_reviewed','hod_reviewed'=>'exam_validated','exam_validated'=>'dean_approved','dean_approved'=>'board_approved','board_approved'=>'published'])
@if(isset($targets[$batch->status]))
@can($targets[$batch->status]==='published' ? 'publish' : ($batch->status==='draft' ? 'update' : 'approve'),$batch)
@endcan
@elseif($batch->status==='published')
@can('publish',$batch)
@endcan
@endif
Approval trail
@forelse($batch->approvals as $approval)
{{ $approval->occurred_at }} · {{ str_replace('_',' ',$approval->stage) }} · {{ $approval->decision }} {{ $approval->comments ? '— '.$approval->comments : '' }}
@empty
No decisions recorded.
@endforelse