@if(isset($inputs)) @endif @php $i=1; $totalHours = $totalBreaks = $totalAmount = $totalOverTimeAmount = $totalPayAmount = 0; @endphp @if(isset($schedules) && count($schedules) > 0) @foreach($schedules as $detail)

{{ __('report.payroll_stats') }}

@if(isset($inputs['emp_group']) && $inputs['emp_group'] != '') {{ __('report.employee_group') }}: {{ $schedules[0]->group ?? '' }}
@endif @if(isset($inputs['emp_shift']) && $inputs['emp_shift'] != '') {{ __('report.shift_type') }}: {{ $schedules[0]->shift_type ?? '' }}
@endif @if(isset($inputs['emp_id']) && $inputs['emp_id'] != '') {{ __('report.employee') }}: {{ ($schedules[0]->first_name ?? '') . ' ' . ($schedules[0]->last_name ?? '') }}
@endif @if(isset($inputs['month']) && $inputs['month'] > 0) {{ __('report.month') }}: {{ getMonths($inputs['month']) }}
@endif @if(isset($inputs['year']) && $inputs['year'] > 0) {{ __('report.year') }}: {{ $inputs['year'] }}
@endif
{{ __('common.sr-no')}} {{ __('report.date')}} {{ __('report.shift_time')}} {{ __('report.employee')}} {{ __('report.group')}} {{ __('report.shift_type')}} {{ __('report.punch_time')}} {{ __('report.length')}} {{ __('report.shift_amount')}} {{ __('report.overtime_amount')}} {{ __('report.total')}}
{{ $i++ }} {{ dateFormat($detail->start_dt, SHOW_DATE2) }} {{ dateFormat($detail->start_dt, 'H:i') . ' - ' . dateFormat($detail->end_dt, 'H:i') }} {{ $detail->first_name . ' ' . $detail->last_name }} {{ $detail->group }} {{ $detail->shift_type }} {{ dateFormat($detail->punch_in_time, 'H:i') }} {{ ($detail->punch_out_time != "") ? ' - ' . dateFormat($detail->punch_out_time, 'H:i') : '--' }} - {{ ($shiftPayAmount > 0) ? numberFormat($shiftPayAmount, false, false) : '' }} {{ ($overTimePayAmount > 0) ? numberFormat($overTimePayAmount, false, false) : '' }} {{ ($total > 0) ? numberFormat($total, false, false) : '' }}