@extends('admin.admin_dashboard') @section('admin')
{{-- Filter --}}
Filter
{{-- List --}}
Break Request List
@forelse($requests as $i => $r) @php $mins = null; try { $mins = \Carbon\Carbon::parse($r->break_end) ->diffInMinutes(\Carbon\Carbon::parse($r->break_start)); } catch(\Throwable $e) {} @endphp @empty @endforelse
# Date Employee Start End Minutes Status Reason Actions
{{ $requests->firstItem() + $i }} {{ \Carbon\Carbon::parse($r->break_date)->format('Y-m-d') }} {{ $r->employee?->name ?? '—' }}
({{ $r->employee?->e_id ?? $r->employee_id }})
{{ $r->break_start }} {{ $r->break_end }} {{ $mins ?? '-' }} @if($r->status === 'pending') Pending @elseif($r->status === 'approved') Approved @else Rejected @endif
{{ $r->reason ?? '-' }}
@if($r->status === 'pending')
@csrf
@csrf
@else — @endif
No break requests found.

Showing {{ $requests->count() }} of {{ $requests->total() }} records

{{ $requests->links() }}
@endsection