Indicateurs

Forfaits
@php $forfaitCount = ($packageDeclarations ?? collect())->count(); @endphp @if($forfaitCount == 0) -- @else {{ $forfaitCount }} {{ $forfaitCount > 1 ? 'forfaits' : 'forfait' }} @endif @if(($totalForfait ?? 0) == 0) -- @else {{ number_format($totalForfait, 0, ',', ' ') }} € @endif
À l'heure
@php $totalMinutes = $totalHourlyMinutes ?? 0; if ($totalMinutes == 0) { echo '--'; } else { $hours = floor($totalMinutes / 60); $minutes = $totalMinutes % 60; echo sprintf('%dh%02d', $hours, $minutes); } @endphp @if(($totalHoraire ?? 0) == 0) -- @else {{ number_format($totalHoraire, 0, ',', ' ') }} € @endif
Événements
@php $eventCount = ($eventDeclarations ?? collect())->count(); $totalEventSafe = $totalEvent ?? 0; @endphp @if($eventCount == 0) -- @else {{ $eventCount }} {{ $eventCount > 1 ? 'événements' : 'événement' }} @endif @if($totalEventSafe == 0) -- @else {{ number_format($totalEventSafe, 0, ',', ' ') }} € @endif
Total du mois
@if(($totalMonth ?? 0) == 0) -- @else {{ number_format($totalMonth, 0, ',', ' ') }} € @endif