@php $employees = $employees ?? collect(); $pendingLeaveByStaff = $pendingLeaveByStaff ?? collect(); $pendingVisitByStaff = $pendingVisitByStaff ?? collect(); $surroundStats = $surroundStats ?? (object) []; $todayStatusByStaff = $todayStatusByStaff ?? collect(); $filters = $filters ?? ['q' => '', 'status' => '', 'department_id' => '', 'warehouse_id' => '']; $filterOptions = $filterOptions ?? ['departments' => collect(), 'warehouses' => collect(), 'statuses' => []]; $routePrefix = $routePrefix ?? 'admin.surrounding.employees'; $approvalCenterRoute = $approvalCenterRoute ?? null; $approvalCenterUrl = $approvalCenterRoute && \Illuminate\Support\Facades\Route::has($approvalCenterRoute) ? route($approvalCenterRoute) : null; $hasActiveFilter = ($filters['q'] ?? '') !== '' || ($filters['status'] ?? '') !== '' || ($filters['department_id'] ?? '') !== '' || ($filters['warehouse_id'] ?? '') !== ''; @endphp
{{ __('Open attendance, leave, or visit for each subordinate. Data loads only on that page.') }}
| {{ __('Employee') }} | {{ __('Department') }} | {{ __('Designation') }} | {{ __('Branch') }} | {{ __('Today') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|
|
{{ optional($row->user)->name ?? __('Unknown') }}
#{{ optional($row->user)->id }}
|
{{ optional($row->department)->name ?? '—' }} | {{ optional($row->designation)->name ?? '—' }} | {{ optional($row->warehouse)->name ?? '—' }} |
@if($today['key'] === 'leave')
@elseif($today['key'] === 'leave_pending')
@elseif($today['key'] === 'movement')
@elseif($today['key'] === 'movement_pending')
@elseif($today['key'] === 'in_office')
@elseif($today['key'] === 'absent')
@else
@endif
{{ $today['label'] }}
@if(!empty($today['detail']))
{{ $today['detail'] }}
@endif
|