@extends('app-new') @push('head-script') @endpush @push('content-header')
@endpush @section('content')| Sr No. | Employee Code | Employee Name | Gender | DOB | DOJ | Department | @if(!$showColumns)Activity | Workstation | @endif @if($showColumns)Company | Date Of Exit | Status | Designation | @endif @foreach ($dateList as $date){{ date('d (D)', strtotime($date)) }} | @endforeachTotal Work Days | Present Days | Absent Days | Week Off | Half Day | @if(!$showColumns)CF | SCO Days | @endifPH | @foreach ($leaveTypes as $leaveType){{ $leaveType->name }} | @endforeach @if($showColumns)Holiday | POW | Paid Days | Total Monthly Hrs | Total Monthly OT Hrs | POH | Location | Reporting Officer | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @if (isset($_GET['page']) && $_GET['page'] > 0) {{ ($_GET['page'] - 1) * 50 + $loop->iteration }} @else {{ $loop->iteration }} @endif | {{ $employee->employee_code }} | {{ $employee->name }} | {{ $employee->gender ? ucfirst($employee->gender) : '-' }} | {{ $employee->dob ? date('d-F-Y', strtotime($employee->dob)) : '-' }} | {{ $employee->date_of_joining ? date('d-F-Y', strtotime($employee->date_of_joining)) : '-' }} | {{ $employee->department->name ?? '-' }} | @if(!$showColumns){{ $employee->activity ?? '-' }} | {{ $employee->workstation->name ?? '-' }} | @endif @if($showColumns){{ $employee->contractor? $employee->contractor->name : $group}} | {{ $employee->date_of_leaving ?? '-' }} | {{ $employee->status ?? '-' }} | {{ $employee->designation->name ?? '-' }} | @endif @foreach ($dateList as $index => $date) @php $attendance = $atSummary[$date] ?? null; $status = $attendance->status ?? '--'; @endphp{{ $status }} | @endforeach{{ $totalPaidDay }} | {{ $present }} | {{ $absent }} | {{ $weekOff }} | {{ $hd }} | @if(!$showColumns){{ $co }} | {{ $scoDays }} | @endif{{ $ph }} | @foreach ($leaveTypes as $leaveType) @php $leaveDetail = $employee->leaves->flatMap->leaveDetail->firstWhere( 'leave_type_id', $leaveType->id, ) ?? null; if ($leaveDetail) { $totalLeaveCounts[$leaveType->id] = ($totalLeaveCounts[$leaveType->id] ?? 0) + $leaveDetail->total_leave_count; } @endphp{{ $leaveDetail->total_leave_count ?? 0 }} | @endforeach @if($showColumns){{ $ph }} | {{ $pow }} | {{ $payDay }} | {{ $payableHours }} | {{ $totalMonthlyOvertime }} | {{ $poh }} | {{ $employee->organization->name ?? '-' }} | {{ @$employee->hod->name}} | @endif