@extends('layouts.provider') @section('title', $client->full_name) @section('page-title', 'Mes Clients') @section('content')

{{ $client->full_name }}

@if($client->birth_date) {{ $client->birth_date->age }} ans @endif @if($client->gender !== 'unknown') {{ ucfirst($client->gender === 'male' ? 'Homme' : ($client->gender === 'female' ? 'Femme' : 'Autre')) }} @endif @if($client->last_visit_at) Dernière visite : {{ $client->last_visit_at->format('d/m/Y') }} @endif
Éditer @if($client->trashed())
@csrf
@else @endif @if($client->appointments->count() === 0) @endif
@if($client->phone)

Téléphone

{{ $client->phone }}

@endif @if($client->email)

Email

{{ $client->email }}

@endif @if($client->birth_date)

Date de naissance

{{ $client->birth_date->format('d/m/Y') }}

@endif
@if($client->notes)

Notes

{{ $client->notes }}

@endif
@if($appointments->count() > 0)
@foreach($appointments as $appointment) @endforeach
Date Horaire Service Prix Statut Facturé Actions
{{ $appointment->start_time->format('d/m/Y') }} {{ $appointment->start_time->format('H:i') }} - {{ $appointment->end_time->format('H:i') }} {{ $appointment->service->name ?? '-' }} {{ format_currency($appointment->price_at_booking) }} TND @php $statusColors = [ 'scheduled' => 'bg-blue-100 text-blue-800', 'complete' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-red-100 text-red-800', 'in_progress' => 'bg-orange-100 text-orange-800', 'late' => 'bg-red-100 text-red-800', ]; $colorClass = $statusColors[$appointment->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ $appointment->getStatusLabel() }} @if($appointment->payments && $appointment->payments->count() > 0) ✓ Oui @else ✗ Non @endif
Total rendez-vous : {{ $client->appointments()->count() }}
{{ $appointments->appends(['tab' => 'appointments'])->links() }}
@else

Aucun rendez-vous pour le moment

@endif
@endsection