{{-- En-tête --}}
@if($student->photo) {{ $student->full_name }} @else
{{ strtoupper(substr($student->first_name, 0, 1) . substr($student->last_name, 0, 1)) }}
@endif

{{ $student->full_name }}

{{ $student->status->label() }} @if($student->matricule) {{ $student->matricule }} @endif
@can('update', $student) {{-- Accès portail élève --}} @if($student->hasPortalAccess())
@csrf @method('DELETE')
@else @endif {{ __('app.actions.edit') }} @endcan
@can('update', $student) @unless($student->hasPortalAccess()) @endunless @endcan
{{-- Colonne principale --}}
{{-- Informations personnelles --}}
{{ __('students.fields.gender') }}
{{ $student->gender === 'M' ? __('app.genders.male') : __('app.genders.female') }}
{{ __('students.fields.birth_date') }}
{{ $student->birth_date?->format('d/m/Y') ?? '—' }}
{{ __('students.fields.birth_place') }}
{{ $student->birth_place ?? '—' }}
{{ __('students.fields.nationality') }}
{{ $student->nationality ?? '—' }}
{{ __('students.fields.address') }}
{{ $student->address ?? '—' }}
{{ __('students.fields.birth_certificate') }}
@if($student->birth_certificate) Oui @if($student->birth_certificate_number) {{ $student->birth_certificate_number }} @endif @else Non @endif
{{-- Inscription actuelle --}} @if($student->currentEnrollment)
{{ __('students.fields.current_class') }}
{{ $student->currentEnrollment->schoolClass?->name ?? '—' }}
{{ __('enrollments.fields.school_year') }}
{{ $student->currentEnrollment->schoolYear?->name ?? '—' }}
{{ __('enrollments.fields.status') }}
{{ $student->currentEnrollment->status->label() }}
{{ __('enrollments.fields.date') }}
{{ $student->currentEnrollment->enrollment_date?->format('d/m/Y') ?? '—' }}
@can('update', $student)
Transférer l'élève
@csrf @method('DELETE')
@endcan @else

Aucune inscription active pour cet élève.

@can('create', \App\Models\Enrollment::class) @endcan
{{-- Formulaire d'inscription rapide --}} @can('create', \App\Models\Enrollment::class) @endcan @endif
{{-- Historique des inscriptions --}} @if($student->enrollments->count() > 1)
    @foreach($student->enrollments->sortByDesc('enrollment_date') as $enrollment)
  • {{ $enrollment->schoolClass?->name ?? '—' }}

    {{ $enrollment->schoolYear?->name }} · {{ $enrollment->enrollment_date?->format('d/m/Y') }}

    {{ $enrollment->status->label() }}
  • @endforeach
@endif
{{-- Colonne latérale --}}
{{-- Établissement --}}
{{ __('students.fields.school') }}
{{ $student->school?->name ?? '—' }}
{{-- Parents / Tuteurs --}} @forelse($student->guardians as $guardian)
{{ $guardian->full_name }}

{{ __('guardians.relationships.' . $guardian->pivot->relationship) }}

{{ $guardian->phone }}

@if($guardian->pivot->is_primary) Principal @endif
@empty

Aucun parent rattaché.

@endforelse
{{-- Dates système --}}
{{ __('app.common.created_at') }}
{{ $student->created_at->format('d/m/Y H:i') }}
{{ __('app.common.updated_at') }}
{{ $student->updated_at->format('d/m/Y H:i') }}