@extends('layouts.user_type.auth') @section('content')
| Employee | Date | Check-in Time | Check-out Time | Check-in Status | Check-out Status | Check-in Address | Check-out Address |
|---|---|---|---|---|---|---|---|
| {{ $employee->name ?? ($employee->first_name . ($employee->middle_name ? ' ' . $employee->middle_name : '') . ' ' . $employee->last_name) }} | {{ \Carbon\Carbon::parse($attendance->check_in)->format('d M Y') }} | {{ \Carbon\Carbon::parse($attendance->check_in)->setTimezone('Asia/Kolkata')->format('h:i A') }} | {{ $attendance->check_out ? \Carbon\Carbon::parse($attendance->check_out)->setTimezone('Asia/Kolkata')->format('h:i A') : '-' }} | @php $checkin = getDistanceAndStatus($attendance->check_in_location, $officeLocations); @endphp
{{ $checkin['status'] }}
@if ($checkin['distance'])
({{ $checkin['distance'] }} m)
@endif
|
@php $checkout = getDistanceAndStatus($attendance->check_out_location, $officeLocations); @endphp
{{ $checkout['status'] }}
@if ($checkout['distance'])
({{ $checkout['distance'] }} m)
@endif
|
{{ $attendance->check_in_address ?? '-' }} | {{ $attendance->check_out_address ?? '-' }} |
| No attendance data found for the selected date range. | |||||||