@lang('app.date') {{ $startDate . ' ' .__('app.to') . ' ' . $endDate }}
@foreach ($employees as $item) @php $totalWorkingHours = $item->total_hours; $totalWorkingMinutes = $item->total_hours * 60; $totalUntrackedHours = $totalWorkingMinutes - $item->total_minutes; @endphp @endif @endforeach
@lang('app.name') @lang('modules.timeLogs.totalWorkingHours') @lang('modules.timeLogs.totalLoggedHours') @lang('modules.timeLogs.totalNotLoggedHours') @lang('modules.timeLogs.leavesTaken') @lang('modules.timeLogs.holiday')
{{ $item->name }} {{ $totalWorkingHours . ' hr'}} @if ($item->total_minutes == 0) 0 @else {{ ((intdiv($item->total_minutes , 60) > 0) ? intdiv($item->total_minutes , 60) .' hr ' : '') .((($item->total_minutes % 60) > 0 && intdiv($item->total_minutes , 60) > 0) ? ' ' : ''). ((($item->total_minutes % 60) > 0) ? (($item->total_minutes % 60 <=1 ) ? ($item->total_minutes % 60) .' minute' : ($item->total_minutes % 60) .' minutes') : '') }} @endif @if ($totalWorkingHours == 0) {{ $totalWorkingHours . ' hr'}} @else {{ ((intdiv($totalUntrackedHours , 60) > 0) ? intdiv($totalUntrackedHours , 60) .' hr ' : '') .((($totalUntrackedHours % 60) > 0 && intdiv($totalUntrackedHours , 60) > 0) ? ' ' : ''). ((($totalUntrackedHours % 60) > 0) ? (($totalUntrackedHours % 60 <=1 ) ? ($totalUntrackedHours % 60) .' minute' : ($totalUntrackedHours % 60) .' minutes') : '') }}{{ optional($item)->total_leaves ?? 0 }} {{ $item->holidays->count() }}