Profil client

{{-- Prochain RDV --}}
@php $nextAppointment = $client->appointments() ->where('status', 'scheduled') ->where('start_time', '>', now()) ->orderBy('start_time') ->first(); @endphp

{{ $nextAppointment ? 'Prochain RDV' : 'Aucun RDV prévu' }}

@if($nextAppointment)

{{ $nextAppointment->start_time->format('d/m/Y · H:i') }}

@else Rendez-vous @endif
{{-- Dernière visite --}}

Dernière visite

@php $lastVisit = $client->appointments() ->where('status', 'complete') ->orderBy('start_time', 'desc') ->first(); @endphp @if($lastVisit) {{ $client->last_visit_text }} @else

{{ $client->last_visit_text }}

@endif
{{-- Chiffre d'affaires généré --}}

Chiffre d'affaires généré

{{ format_currency($kpis['total_revenue']) }} TND

@if($kpis['total_revenue'] >= 5000) Client important @endif
{{-- 3 derniers blocs - Mobile (cachés par défaut) --}} {{-- 3 derniers blocs - Desktop (toujours visibles) --}}