@extends('admin.layouts.dashboard') @section('title', 'Attendance By Person') @section('content') @php $type = $parameter == '1' ? 'Executive' : 'Member'; $sdt = $start_dt ?? date('d-m-Y'); $edt = $end_dt ?? date('d-m-Y'); $fullname = collect($all_employee)->firstWhere('pin2', $emp_id)->fullname ?? collect($all_employee)->firstWhere('id', $emp_id)->fullname ?? ''; @endphp
@csrf
@if (count($emp_attendance_date_range) === 0) @else
@foreach ($emp_attendance_date_range as $i => $att) @endforeach
SL Name Date In-time Out-time Status Remark
{{ $i + 1 }} {{ ucwords($att->fullname) }} {{ date('d-m-Y', strtotime($att->att_date)) }} {{ date('h:i:s a', strtotime($att->intime)) }} {{ date('h:i:s a', strtotime($att->outtime)) }} Present {{ $att->remarks }}
Total days present {{ count($emp_attendance_date_range) }}
@endif
@endsection