@if (in_array('week_timelog', $activeWidgets) && $sidebarUserPermissions['view_timelogs'] != 5 && $sidebarUserPermissions['view_timelogs'] != 'none' && in_array('timelogs', user_modules()))
(in_array('lead', $activeWidgets) && $leadAgent), 'col-md-12' => !(in_array('lead', $activeWidgets) && $leadAgent)])>
@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 }}
@endif