@section('title', get_setting('site_name') . ' | Approval Center') @push('css') @endpush
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif @if($isAdmin)
{{ __('Advanced filters') }}
@else
{{ __('Search & filter recent requests') }}

{{ __('Shows requests you submitted, items pending your approval, or requests where you are in the approval chain.') }}

@endif
My Requests
@forelse($myRequests as $req) @empty @endforelse
Type Subject Status Current Approver
{{ $req->request_type_label }} {{ $req->subject ?: '-' }} {{ ucfirst($req->status) }} {{ $this->employeeLine($req->currentApprover) }}
No requests yet.
@if($myRequests->hasPages())
{{ $myRequests->links() }}
@endif
@if(get_setting('supervisor') == 1 || $isAdmin)
{{ $isAdmin ? 'Pending Requests (Admin)' : 'Pending For My Approval' }}
@if($isAdmin) @endif @forelse($inbox as $item) @if($isAdmin) @endif @empty @endforelse
{{ __('Employee') }} {{ __('Department') }} {{ __('Type') }} {{ __('Subject') }}{{ __('Current approver') }}{{ __('Comment') }} {{ __('Action') }}
{{ $this->employeeLine($item->user) }} {{ $item->user?->staff?->department?->name ?? '—' }} {{ $item->request_type_label }} {{ $item->subject ?: '-' }}{{ $this->employeeLine($item->currentApprover) }} @if($isAdmin) @else @endif
No pending approvals.
@if($inbox->hasPages())
{{ $inbox->links() }}
@endif
@endif @if($isAdmin)
{{ __('Recent all requests') }}
@forelse($allRecent as $ar) @empty @endforelse
{{ __('Employee') }} {{ __('Department') }} {{ __('Type') }} {{ __('Status') }} {{ __('Current approver') }}
{{ $this->employeeLine($ar->user) }} {{ $ar->user?->staff?->department?->name ?? '—' }} {{ $ar->request_type_label }} {{ ucfirst($ar->status) }} {{ $this->employeeLine($ar->currentApprover) }}
No records found.
@if($allRecent->hasPages())
{{ $allRecent->links() }}
@endif
@else
{{ __('Recent requests') }}
@forelse($allRecent as $ar) @empty @endforelse
{{ __('Employee') }} {{ __('Department') }} {{ __('Type') }} {{ __('Subject') }} {{ __('Status') }} {{ __('Current approver') }} {{ __('Date') }}
{{ $this->employeeLine($ar->user) }} {{ $ar->user?->staff?->department?->name ?? '—' }} {{ $ar->request_type_label }} {{ \Illuminate\Support\Str::limit($ar->subject ?: '—', 60) }} {{ ucfirst($ar->status) }} {{ $this->employeeLine($ar->currentApprover) }} {{ $ar->created_at?->format('Y-m-d H:i') ?? '—' }}
{{ __('No matching requests.') }}
@if($allRecent->hasPages())
{{ $allRecent->links() }}
@endif
@endif
@section('script') @endsection