@extends('layouts.admin') @section('title', ($record ? 'Edit' : 'Create') . ' Academic Session') @section('content') @php use App\Enums\RecordStatus; use App\Models\Institution; $institution = Institution::current(); @endphp @include('institution.partials.flash')
@csrf @if($formMethod !== 'POST') @method($formMethod) @endif
@error('code')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@error('status')
{{ $message }}
@enderror
@error('year_start')
{{ $message }}
@enderror
@error('year_end')
{{ $message }}
@enderror
is_current ?? false))>

Key dates
@foreach([ ['registration_start', 'registration_end', 'Registration'], ['teaching_start', 'teaching_end', 'Teaching'], ['examination_start', 'examination_end', 'Examination'], ] as [$startField, $endField, $label])
@error($startField)
{{ $message }}
@enderror
@error($endField)
{{ $message }}
@enderror
@endforeach
@error('graduation_date')
{{ $message }}
@enderror
{{ $record ? 'Update session' : 'Create session' }} Cancel
@endsection