@extends('layouts/horizontalLayout') @section('title', __('My Attendance')) @section('content')
{{ __("Today's Attendance") }}
@if($todayAttendance)
{{ __('Check In') }} {{ $todayAttendance->check_in_time ? $todayAttendance->check_in_time->format('h:i A') : '-' }}
{{ __('Check Out') }} {{ $todayAttendance->check_out_time ? $todayAttendance->check_out_time->format('h:i A') : '-' }}
{{ __('Total Hours') }} @if($todayAttendance->check_in_time && $todayAttendance->check_out_time) {{ $todayAttendance->check_in_time->diff($todayAttendance->check_out_time)->format('%hh %im') }} @else - @endif
@if(!$todayAttendance->check_out_time)
@csrf
@else
{{ __('Attendance Completed') }}
@endif @else

{{ __('Not checked in yet') }}

@csrf
@endif
{{ __('Attendance History') }}
@forelse($attendances as $attendance) @empty @endforelse
{{ __('Date') }} {{ __('Check In') }} {{ __('Check Out') }} {{ __('Total Hours') }} {{ __('Status') }}
{{ $attendance->created_at->format('d M, Y') }} {{ $attendance->check_in_time ? $attendance->check_in_time->format('h:i A') : '-' }} {{ $attendance->check_out_time ? $attendance->check_out_time->format('h:i A') : '-' }} @if($attendance->check_in_time && $attendance->check_out_time) {{ $attendance->check_in_time->diff($attendance->check_out_time)->format('%hh %im') }} @else - @endif @if($attendance->check_out_time) {{ __('Completed') }} @else {{ __('In Progress') }} @endif

{{ __('No attendance records found') }}

@if($attendances->hasPages()) @endif
@endsection