@extends('layouts.app') @section('content') @php $hasFilters = ($filters['name'] ?? '') !== '' || ($filters['code'] ?? '') !== '' || ($filters['city'] ?? '') !== ''; @endphp

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

← {{ __('app.admin.schools.back') }}
@if ($errors->any())
{{ $errors->first() }}
@endif @if (session('status'))
{{ session('status') }}
@endif {{-- Filters --}}
{{ __('app.admin.schools.filters.title') }}
{{ __('app.admin.schools.filters.reset') }}
{{-- List --}}
@forelse ($schools as $s) @empty @endforelse
{{ __('app.admin.schools.table.id') }} {{ __('app.admin.schools.table.name') }} {{ __('app.admin.schools.table.code') }} {{ __('app.admin.schools.table.city') }} {{ __('app.admin.schools.table.country') }} {{ __('app.admin.schools.table.students') }} {{ __('app.admin.schools.table.active') }} {{ __('app.admin.schools.actions.actions') }}
#{{ $s->id }} {{ $s->name }} {{ $s->code ?? '—' }} {{ $s->city ?? '—' }} {{ $s->country ?? '—' }} {{ $s->students_count ?? 0 }} @if($s->is_active) {{ __('app.common.yes') }} @else {{ __('app.common.no') }} @endif {{ __('app.admin.schools.actions.show_students') }}
@csrf @method('DELETE')
{{ __('app.admin.schools.empty') }}
{{ $schools->onEachSide(1)->links() }}
{{-- Create Modal --}} {{-- Edit Modal --}} @endsection