@extends('layouts.main_dashboard.app') @section('title', __('dashboard.List of Years')) @section('page_heading', __('dashboard.List of Years')) @section('skip_page_hero', true) @php $yearsCount = $years->total(); $displayedYearsCount = $years->count(); $totalTermsCount = $years->sum('terms_count'); $isArabic = app()->getLocale() === 'ar'; @endphp @section('content')

{{ __('dashboard.List of Years') }}

{{ $isArabic ? 'إدارة السنوات الدراسية وما يرتبط بها من فصول من شاشة واحدة أوضح وأهدأ.' : 'Manage academic years and their related terms from one clearer, quieter screen.' }}

{{ __('dashboard.Years') }}

{{ $yearsCount }}

{{ __('dashboard.Add New Year') }}
@if($years->isEmpty())

{{ __('dashboard.No data found') }}

{{ $isArabic ? 'ابدأ بإضافة سنة دراسية جديدة لتجهيز الفصول والمراحل والصفوف المرتبطة بها.' : 'Start by creating a new academic year to prepare its related terms, stages, and grades.' }}

@else

{{ __('dashboard.List of Years') }}

{{ $isArabic ? 'قائمة السنوات الدراسية المتاحة داخل النظام.' : 'List of academic years available in the system.' }}

{{ __('dashboard.Total') }}

{{ $yearsCount }}

{{ $isArabic ? 'المعروض' : 'Visible' }}

{{ $displayedYearsCount }}

{{ __('dashboard.Terms') }}

{{ $totalTermsCount }}

@foreach($years as $year) @endforeach
{{ $isArabic ? 'السنة الدراسية' : 'Year' }} {{ __('dashboard.Terms') }} {{ $isArabic ? 'روابط سريعة' : 'Quick Links' }} {{ __('dashboard.Actions') }}
{{ mb_substr($year->name, 0, 1) }}

{{ $year->name }}

#{{ $year->id }}

{{ $year->terms_count }} {{ __('dashboard.Terms') }}
{{ __('dashboard.View') }} {{ __('dashboard.Edit') }}
@csrf @method('DELETE')
@if ($years->hasPages())
{{ $years->appends(request()->query())->links() }}
@endif
@endif
@endsection