@props(['appointment'])
@if($appointment->service && $appointment->service->color) @endif

@php $minutes = $appointment->start_time->diffInMinutes($appointment->end_time); $hours = floor($minutes / 60); $mins = $minutes % 60; $duration = $hours > 0 ? $hours . 'h' : ''; $duration .= $mins > 0 ? ($hours > 0 ? '' : '') . $mins . 'min' : ''; @endphp {{ $appointment->service ? $appointment->service->name : 'Rendez-vous' }} ({{ $duration }})

{{ $appointment->client->full_name }} , {{ $appointment->start_time->format('d/m/Y') }} • {{ $appointment->start_time->format('H:i') }} - {{ $appointment->end_time->format('H:i') }}
@php $ttc = $appointment->price_at_booking && $appointment->vat_rate ? $appointment->price_at_booking * (1 + $appointment->vat_rate / 100) : $appointment->price_at_booking; @endphp TTC {{ $ttc ? format_currency($ttc) . ' ' . $appointment->currency : '-' }} @if($appointment->payments && $appointment->payments->count() > 0) Facturé @else Non facturé @endif
@if($appointment->isInvoiced()) {{ $appointment->getStatusLabel() }} @else
@endif
Voir client @if($appointment->status === 'complete') @if(!$appointment->payments || $appointment->payments->count() === 0) Facturer @else Voir facture @endif @else @endif @if(!$appointment->payments || $appointment->payments->count() === 0) @else @endif