{{-- Left: Back button --}} {{-- Center: Title --}}

{{ $guardian->full_name }}

{{-- Right: Action buttons --}}
@if(auth()->user()->hasPermission('guardians-manage')) @php $cannotDelete = false; $deleteBlockReason = ''; if ($guardian->residences()->count() > 0) { $cannotDelete = true; $residencesCount = $guardian->residences()->count(); $deleteBlockReason = "Résidences assignées : {$residencesCount}"; } @endphp @if($cannotDelete) @else Supprimer ce gardien ? Le gardien {{ $guardian->full_name }} sera déplacé dans la corbeille.
@csrf @method('DELETE')
@endif @endif
{{-- Informations principales --}}

Informations personnelles

Nom complet

{{ $guardian->full_name }}

Email

{{ $guardian->email ?? '-' }}

@if($guardian->email && $guardian->email_verified_at) @elseif($guardian->email) @endif @if($guardian->email && auth()->user()->hasPermission('guardians-manage'))
@csrf
@endif
Téléphone

{{ format_phone($guardian->mobile_phone) ?: '-' }}

Adresse d'accueil

@if($guardian->address) @if(auth()->user()->hasPermission('adresses-view')) {{ $guardian->address->full_address }} @else {{ $guardian->address->full_address }} @endif @else Non définie @endif

{{-- Résidences --}}

Résidences assignées

@if($guardian->residences->count() > 0)
@foreach($guardian->residences->sortBy('name') as $residence) @if(auth()->user()->hasPermission('properties-view'))
{{ $residence->name }} {{ ucfirst($residence->type) }}
@else
{{ $residence->name }} {{ ucfirst($residence->type) }}
@endif @endforeach
@else

Aucune résidence assignée.

@endif
{{-- Horaires --}} @if($guardian->schedule)

Horaires

{{ $guardian->schedule }}

@endif