À 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