@vite('resources/css/app.css')
@if (auth()->user()->employee_type === 'Accounting') @include('sidebar.users_sidebar') @else @include('Admin.sidebar') @endif@if (auth()->user()->employee_type === 'Accounting' || auth()->user()->employee_type === 'Top_Management') | @endif @if (auth()->user()->employee_type === 'OperationAdmin' || auth()->user()->employee_type === 'Top_Management') | Edit | Delete | @endifRequest No. | Employee Name | Particulars | Status | Description | Date Created |
---|---|---|---|---|---|---|---|---|---|
@if ($user = auth()->user()) @if ($user->roleschannel->isNotEmpty() && $user->roleschannel->pluck('permission')->contains('Top Management')) View Request @elseif(auth()->user()->employee_type === 'Accounting' && $entry->status !== null) View Request @elseif(auth()->user()->employee_type === 'Accounting' && $entry->status == null) Waiting for Top Management Approval @else View Request @endif @endif | @if (auth()->user()->employee_type === 'OperationAdmin' || auth()->user()->employee_type === 'Top_Management')@endif @if ($user = auth()->user()) @if ($user->employee_type === 'OperationAdmin' || $user->roleschannel->pluck('permission')->contains('Top Management')) | @endif @endif @if (auth()->user()->employee_type === 'Accounting' || auth()->user()->employee_type === 'Top_Management') | @if ($user = auth()->user()) @if ( $user->roleschannel->isNotEmpty() && $user->roleschannel->pluck('permission')->contains('Top Management') && $entry->status == null) @elseif(auth()->user()->employee_type === 'Accounting' && $entry->status == 'Management Accepted' && $user->roleschannel->isNotEmpty() && $user->roleschannel->pluck('permission')->contains('RequestReciever')) @elseif($entry->status == null) Pending @else Accepted @endif @endif | @endifNo. 000{{ $entry->request_id }} |
@if ($entry->user)
{{ $entry->user->employee_name }} {{ $entry->user->employee_type }} @else N/A @endif |
|
{{ $entry->status }} | {!! $entry->description !!} | {{ \Carbon\Carbon::parse($entry->created_at)->format('F j, Y g:i A') }} |