@if(count($schedules) > 0) @php $i=1; $totalHours = $totalBreaks = 0; @endphp @foreach($schedules as $detail) @endforeach
{!! __('schedule.sr_no') !!} {!! __('schedule.date') !!} {!! __('schedule.time') !!} {!! __('schedule.duration') !!} {!! __('schedule.employee_group') !!} {!! __('schedule.shift_type') !!} {!! __('schedule.break') !!} {!! __('schedule.notes') !!}
{!! $i++ !!} {!! dateFormat($detail->start_dt, 'd-m-Y') !!} {!! dateFormat($detail->start_dt, 'H:i') . ' - ' . dateFormat($detail->end_dt, 'H:i') !!} @php $totalHours += $detail->working_seconds; $totalBreaks += ($detail->break_time * 60); $hours = $detail->working_seconds - ($detail->break_time * 60); echo timeFormatted($hours); @endphp {{ $detail->group }} {{ $detail->shift_type }} {{ $detail->break_time }} {{ $detail->description }}
{{ $i - 1 }} Shifts   {{ timeFormatted($totalHours - $totalBreaks)}}   {{ timeFormatted($totalBreaks) }}  
@else
{!! __('common.no_record_found') !!}
@endif