@php
$totalWeekTime = $weekWiseTimelogs - $weekWiseTimelogBreak;
// Convert total minutes to hours and minutes
$hours = intdiv($totalWeekTime, 60);
$minutes = $totalWeekTime % 60;
// Format output based on hours and minutes
$weekTimeLog = $hours > 0
? $hours . 'h' . ($minutes > 0 ? ' ' . sprintf('%02dm', $minutes) : '')
: ($minutes > 0 ? sprintf('%dm', $minutes) : '0s');
@endphp
@lang('modules.dashboard.weekTimelog') {{ $weekTimeLog . ' ' . __('modules.timeLogs.thisWeek') }}
@php
$totalDayMinutesPercent = ($dayMinutes > 0) ? floatval((floatval($dayMinutes - $dayBreakMinutes)/$dayMinutes) * 100) : 0;
@endphp
@lang('app.duration'): {{ $totalDayMinutes }}
@lang('modules.timeLogs.break'): {{ $totalDayBreakMinutes }}