@vite('resources/css/app.css')
@if(auth()->user()->employee_type === 'OperationEmployee' || auth()->user()->employee_type === 'Content'|| auth()->user()->employee_type === 'Graphic' || auth()->user()->employee_type === 'Accounting') @include('sidebar.users_sidebar') @elseif(auth()->user()->employee_type === 'Employee') @include('CMS.sidebar') @else @include('Admin.sidebar') @endifRequest No. | Employee Name | Status | Purpose/Reason | Inclusive Date of Leave | View | @if(auth()->user()->employee_type == "OperationAdmin" || auth()->user()->employee_type == "Top_Management")Accept | @endifDelete |
---|---|---|---|---|---|---|---|
No. 000{{ $entry->leaverequest_id }} |
@if($entry->user)
{{ $entry->user->employee_name }} {{ $entry->user->employee_type }} @else N/A @endif |
{{ $entry->status }} | {!! $entry->purpose_of_leave !!} | {{ \Carbon\Carbon::parse($entry->leave_date)->format('F j, Y') }} | View Request | @if(auth()->user()->employee_type == "OperationAdmin" || auth()->user()->employee_type == "Top_Management")@if($entry->status == "Approved by Operation Admin" && auth()->user()->employee_type == "Top_Management") @elseif($entry->status == "Waiting for Department Head Approval" && auth()->user()->employee_type == "OperationAdmin") @elseif($entry->status == "Request Approved") Accepted @elseif($entry->status == "Approved by Operation Admin") Top Management has not yet Approved. @else Operation Admin has not yet Approved. @endif | @endif