@props(['appointment', 'showClient' => true])
{{ $appointment->start_time->format('d/m/Y') }}
{{ $appointment->start_time->format('H:i') }} - {{ $appointment->end_time->format('H:i') }} ({{ format_duration($appointment->start_time->diffInMinutes($appointment->end_time)) }})
@if($showClient) {{ $appointment->client ? $appointment->client->full_name : 'Sans client' }} @endif @if($appointment->service)
{{ $appointment->service->name }}
@else - @endif @if($appointment->isInvoiced()) {{ $appointment->getStatusLabel() }} @else
@endif @if($appointment->payments && $appointment->payments->count() > 0) Oui @else Non @endif @if($appointment->vat_rate !== null)
HT: {{ format_currency($appointment->price_at_booking) }} {{ $appointment->currency }}
TTC: {{ format_currency($appointment->price_ttc) }} {{ $appointment->currency }}
@else {{ $appointment->price_at_booking ? format_currency($appointment->price_at_booking) . ' ' . $appointment->currency : '-' }} @endif
@if($appointment->status === 'complete') @if(!$appointment->payments || $appointment->payments->count() === 0) Facturer @else @php $invoiceParams = []; if (!$showClient) { $invoiceParams['from'] = 'client'; $invoiceParams['client_uuid'] = $appointment->client->uuid; } @endphp Facturé @endif @else Facturer @endif @php $editParams = ['appointment_uuid' => $appointment->uuid, 'stepper' => 'vertical']; if (!$showClient) { $editParams['return_to'] = 'client'; $editParams['client_uuid'] = $appointment->client->uuid; } @endphp @if(!$appointment->payments || $appointment->payments->count() === 0) @else @endif