Aucun rendez-vous disponible
@endforelse @elseSélectionnez un client pour voir ses rendez-vous
@endif|
Service
et durée
|
HT (TND) | TVA (TND) | TTC (TND) |
|---|---|---|---|
|
{{ $line['service'] }}
@php
$appointment = $availableAppointments->firstWhere('id', $line['appointment_id'] ?? null);
@endphp
{{ $line['date'] }}
@if($appointment)
@php
$duration = $appointment->start_time->diffInMinutes($appointment->end_time);
$hours = floor($duration / 60);
$minutes = $duration % 60;
$durationText = $hours > 0 ? $hours . 'h' . ($minutes > 0 ? str_pad($minutes, 2, '0', STR_PAD_LEFT) : '') : $minutes . 'min';
@endphp
{{ $appointment->start_time->format('H:i') }} - {{ $appointment->end_time->format('H:i') }} ({{ $durationText }})
@endif
|
{{ number_format($line['ht'], 3) }} |
@if($line['vat_rate'] > 0)
{{ number_format($line['vat'], 3) }}
{{ number_format($line['vat_rate'], 0) }}%
@else
-
@endif
|
{{ number_format($line['ttc'], 3) }} |
| Total | {{ number_format($totalHT, 3) }} | {{ number_format($totalVAT, 3) }} | {{ number_format($totalTTC, 3) }} |