| School Year | Starts On | Ends On | Status | Actions |
|---|---|---|---|---|
| {{ $schoolYear->name }} | {{ $schoolYear->starts_on?->format('M d, Y') ?? '-' }} | {{ $schoolYear->ends_on?->format('M d, Y') ?? '-' }} | {{ $schoolYear->is_active ? 'Active' : 'Inactive' }} |
@if ($schoolYear->is_active)
@else
@endif
@php
$termCount = $schoolYear->schoolTerms->count();
$sectionCount = $schoolYear->sections_count;
$hasDependents = $termCount > 0 || $sectionCount > 0;
@endphp
|
| No school years found. | ||||