@extends('app-new') @push('head-script') @endpush @section('content')
S.No | Emp. Name & Code | {{ trans('master/master.department') }} | {{ trans('master/master.designation') }} | @foreach ($dateArr as $dates){{ date('d', strtotime($dates)) }} | @endforeach{{ trans('master/master.total_ot') }}({{ trans('master/master.hours') }}) | {{ trans('master/master.total_working_days') }} | {{ trans('payroll/payroll.gross_salary') }} | {{ trans('master/master.attendance_incentive_amount') }} | {{ trans('master/master.overtime_incentive_amount') }} | {{ trans('master/master.multi_amount') }} | {{ trans('payroll/payroll.total_amount') }} | @foreach ($employeeSummary as $key => $value) @php $totalPresent = $overtime = $actualOvertime = $totalActualOvertime = $totalovertime = 0; $totalWorkingDays = 0; $atSummary = $value->getAttendanceSummaryFilter($fromDate, $toDate); $salarySlip = @$value->salarySlip->select('id','employee_id','month','year','total_gross') ->where('employee_id',$value->id) ->where('month','=',$month_id) ->where('year','=',$year_id) ->first(); $totalGross = $salarySlip->total_gross? $salarySlip->total_gross:'-'; $overtimeIncentive = @$salarySlip->slipLogs->where('type_id', $overtimeIncentiveComponent->config_value)->first(); $overtimeIncentive = @$overtimeIncentive->calculate_salary?:0; $attendanceIncentive = @$salarySlip->slipLogs->where('type_id', $attendanceIncentiveComponent->config_value)->first(); $attendanceIncentive = @$attendanceIncentive->calculate_salary?:0; $multiAmount = @$salarySlip->slipLogs->where('type_id', $multiAmountComponent->config_value)->first(); $multiAmount = @$multiAmount->calculate_salary?:0; $totalAmount = $overtimeIncentive + $attendanceIncentive + $multiAmount; @endphp|
---|---|---|---|---|---|---|---|---|---|---|---|---|
@if (isset($_GET['page']) && $_GET['page'] > 0) {{ ($_GET['page'] - 1) * 10 + $loop->iteration }} @else {{ $loop->iteration }} @endif | {{ $value->name }} ({{ $value->employee_code }}) | {{ @$value->department->name }} | {{ @$value->designation->name }} | @foreach ($dateArr as $date) @if (!isset($atSummary[$date]))- | @continue; @endif @php $attendance = isset($atSummary[$date]) ? $atSummary[$date] : null; $approvedOvertime = intval(substr($attendance->overtime, 0, -6)) * 60 + intval(substr($attendance->overtime, -5, -3)); $overtime = $overtime + $approvedOvertime; $totalovertime = round($overtime / 60, 2); $actualOvertime += intval(substr($attendance->actual_overtime, 0, -6)) * 60 + intval(substr($attendance->actual_overtime, -5, -3)); $totalActualOvertime = round($actualOvertime / 60, 2); $totalWorkingDays = $totalWorkingDays + $attendance->day_count; @endphp@if($approvedOvertime>0) {{round($approvedOvertime /60,2) }} @else - @endif | @endforeach{{ $totalovertime?$totalovertime:'-' }} | {{ $totalWorkingDays? $totalWorkingDays:'-'}} | {{ $totalGross?$totalGross:'-'}} | {{$attendanceIncentive}} | {{$overtimeIncentive}} | {{$multiAmount}} | {{$totalAmount}} |