@extends('layouts.main_dashboard.app') @section('title', __('dashboard.Academic Year Settings')) @section('skip_page_hero', true) @section('content') @php $isAr = app()->getLocale() === 'ar'; $currentYear = $schoolYears->firstWhere('is_current', true); $currentTerm = $terms->firstWhere('is_current', true); @endphp

{{ __('dashboard.Academic Year Settings') }}

{{ $isAr ? 'تحديد السنة الدراسية والفصل النشطين في النظام من واجهة أبسط وأكثر وضوحًا.' : 'Set the active academic year and current term from a simpler, clearer workspace.' }}

{{ __('dashboard.Current School Year') }}

{{ $currentYear?->name ?: '—' }}

{{ __('dashboard.Current Term') }}

{{ $currentTerm?->name ?: '—' }}

{{ $isAr ? 'عدد السنوات' : 'Academic Years' }}

{{ $schoolYears->count() }}

@csrf @method('PUT')
@error('current_school_year')

{{ $message }}

@enderror
@error('current_term')

{{ $message }}

@enderror
@endsection @section('scripts') @endsection