@extends('layouts.app') @section('content') @php $hasFilters = ($filters['q'] ?? '') !== '' || ($filters['subject_id'] ?? '') !== '' || ($filters['school_id'] ?? '') !== '' || ($filters['grade'] ?? '') !== '' || ($filters['lang'] ?? '') !== '' || ($filters['year'] ?? '') !== '' || ($filters['active'] ?? '') !== ''; @endphp

{{ __('app.admin.exams.title') }}

← {{ __('app.admin.exams.back') }}
@if ($errors->any())
{{ $errors->first() }}
@endif @if (session('status'))
{{ session('status') }}
@endif
{{ __('app.admin.exams.filters.title') }}
{{ __('app.admin.exams.filters.reset') }}
@forelse ($exams as $e) @empty @endforelse
{{ __('app.admin.exams.table.id') }} {{ __('app.admin.exams.table.title') }} {{ __('app.admin.exams.table.subject') }} {{ __('app.admin.exams.table.school') }} {{ __('app.admin.exams.table.grade') }} {{ __('app.admin.exams.table.lang') }} {{ __('app.admin.exams.table.year') }} {{ __('app.admin.exams.table.date') }} {{ __('app.admin.exams.table.type') }} #Q {{ __('app.admin.exams.table.active') }} {{ __('app.admin.exams.actions.actions') }}
#{{ $e->id }} {{ $e->title }} {{ $e->subject?->name ?? '—' }} {{ $e->school?->name ?? '—' }} {{ $e->grade ?? '—' }} {{ strtoupper($e->question_language) }} {{ $e->year ?? '—' }} {{ $e->exam_date?->format('Y-m-d') ?? '—' }} {{ $e->type ?? '—' }} {{ $e->num_questions }} @if($e->is_active) {{ __('app.common.yes') }} @else {{ __('app.common.no') }} @endif
@csrf @method('DELETE')
{{ __('app.admin.exams.empty') }}
{{ $exams->onEachSide(1)->links() }}
{{-- Create Modal --}} {{-- Edit Modal --}} @endsection