@props(['client'])

{{ $client->full_name }}

{{ $client->full_name }}
@if($client->type === 'professionnel') @else @endif @if($client->birth_date) {{ $client->birth_date->age }} ans @endif Inscrit {{ $client->created_at->format('d/m/y') }} @if($client->trashed())
Archivé @endif

Confirmer l'archivage

Ce client sera archivé et pourra être restauré ultérieurement.

@csrf @method('DELETE')

Supprimer définitivement

Cette action est irréversible. Le client sera supprimé définitivement.

@csrf @method('DELETE')
@php $completedAppointments = $client->appointments()->where('status', 'complete')->count(); $unbilledCompletedAppointments = $client->appointments() ->where('status', 'complete') ->whereDoesntHave('payments') ->count(); @endphp
@if(can_access_module('clients', 'update')) @endif @if(!$client->trashed()) @php $canArchive = can_access_module('clients', 'archive'); \Log::info('Archive button check', ['can_archive' => $canArchive, 'user_id' => auth()->id()]); @endphp @if($canArchive) @else @endif @else @if(can_access_module('clients', 'restore')) @endif @endif @if($client->appointments()->count() === 0) @if(can_access_module('clients', 'delete')) @endif @endif @if($client->phone) @endif @if(!$client->trashed()) @endif @if($unbilledCompletedAppointments > 0 && !$client->trashed()) @endif {{-- Menu Actions mobile --}}
@if(can_access_module('clients', 'update'))
Modifier
@endif @if(!$client->trashed())
Nouveau RDV
@endif @if($unbilledCompletedAppointments > 0 && !$client->trashed())
Nouvelle facture
@endif @if(!$client->trashed()) @if(can_access_module('clients', 'archive')) @endif @endif @if($client->trashed()) @if(can_access_module('clients', 'restore'))
@csrf
@endif @endif @if($client->appointments()->count() === 0) @if(can_access_module('clients', 'delete')) @endif @endif