{{-- --}} @foreach ($employees as $employee) {{-- --}} {{-- --}} {{-- --}} @endforeach
Sl # Employee ID Name Buisness Branch Department Employment start date Employment end dateCheck-in time Check-out time Status
{{ $loop->iteration }} @isset($employee->employee_id) {{ $employee->employee_id}} @endisset @isset($employee->first_name) {{ $employee->first_name }} {{ $employee->last_name }} @endisset @isset($employee->business->name) {{ $employee->business->name }} @endisset @isset($employee->branch->name) {{ $employee->branch->name }} @endisset @isset($employee->department->dep_name) {{ $employee->department->dep_name }} @endisset @isset($employee->employment_start_date) {{ $employee->employment_start_date }} @endisset @isset($employee->employment_end_date) {{ $employee->employment_end_date }} @endisset{{ $employee->attendanceReport($attendances) }}{{ $employee->attendance->attendanceReport($employee->id, $date_from, $date_to) }}@isset($attendance->check_in) {{ \Carbon\Carbon::parse($attendance->check_in)->format('H:i:s') }} @endisset @if($attendance->check_out) {{ \Carbon\Carbon::parse($attendance->check_out)->format('H:i:s') }} @else {{'-'}} @endif {{ $attendance->status }}