LISTE DES RENDEZ-VOUS

{{ $provider->business_name ?? $provider->first_name . ' ' . $provider->last_name }}

@if($dateFrom && $dateTo)

Période : {{ \Carbon\Carbon::parse($dateFrom)->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($dateTo)->format('d/m/Y') }}

@else

Période : Tous les rendez-vous

@endif

Généré le {{ now()->format('d/m/Y à H:i') }}

{{ $stats['count'] }} Rendez-vous
{{ number_format($stats['total'], 2, ',', ' ') }} {{ $currency }} Total
@if($appointments->count() > 0) @foreach($appointments as $appointment) @php $duration = \Carbon\Carbon::parse($appointment->start_time)->diffInMinutes(\Carbon\Carbon::parse($appointment->end_time)); @endphp @endforeach
Date Heure Durée Client Service Statut Montant
{{ \Carbon\Carbon::parse($appointment->start_time)->format('d/m/Y') }} {{ \Carbon\Carbon::parse($appointment->start_time)->format('H:i') }} {{ $duration }} min {{ $appointment->client ? trim($appointment->client->first_name . ' ' . $appointment->client->last_name) : '-' }} {{ $appointment->service->name ?? '-' }} @php $statuses = ['scheduled' => 'Programmé', 'in_progress' => 'En cours', 'complete' => 'Terminé', 'late' => 'En retard', 'cancelled' => 'Annulé']; $statusClass = $appointment->status === 'complete' ? 'status-complete' : ($appointment->status === 'cancelled' ? 'status-cancelled' : 'status-scheduled'); @endphp {{ $statuses[$appointment->status] ?? $appointment->status }} {{ number_format($appointment->price_at_booking ?? 0, 2, ',', ' ') }} {{ $currency }}
@endif