@extends('layouts.app') @section('title','Attendance') @section('content')

Attendance — {{ $month->format('F Y') }}

Today: @if(!$today || !$today->check_in)not checked in @else In {{ \Carbon\Carbon::parse($today->check_in)->format('g:i A') }} @if($today->check_out) · Out {{ \Carbon\Carbon::parse($today->check_out)->format('g:i A') }} @endif @endif
@if(!$today || !$today->check_out)
@csrf
@endif
@if(auth()->user()->isAdmin())
Monthly summary
@forelse($summary as $s) @empty@endforelse
EmployeeDays presentHoursMonthly salary
{{ $s['user']->name }}{{ $s['days'] }}{{ $s['hours'] }}@money($s['user']->salary)
No attendance recorded this month.
Add or correct a day
@csrf
@endif
@forelse($records as $a) @empty@endforelse
DateEmployeeInOutHoursNote
{{ $a->work_date->format('D, M j') }}{{ $a->user->name }}{{ $a->check_in ? \Carbon\Carbon::parse($a->check_in)->format('g:i A') : '-' }} {{ $a->check_out ? \Carbon\Carbon::parse($a->check_out)->format('g:i A') : '-' }}{{ $a->hours() }}{{ $a->note }} @if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
No records for this month.
@endsection