@extends('layouts.app') @section('title', 'Attendance Calendar') @section('header', 'Attendance Calendar') @section('subheader', $employee?->full_name ? $employee->full_name.' · '.$month->format('F Y') : $month->format('F Y')) @section('header-actions') List View @endsection @section('content')
@if ($canViewAll)
@endif
Prev {{ $month->format('F Y') }} Next
@if (! $employee)
Select an employee to view their attendance calendar.
@else
@foreach (['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] as $d) @endforeach @foreach ($weeks as $week) @foreach ($week as $cell) @endforeach @endforeach
{{ $d }}
{{ $cell['date']->day }}
@if ($cell['summary'])
@if ($cell['summary']->worked_hours > 0)
{{ $cell['summary']->worked_hours }}h
@endif @endif
@endif
@endsection