@php $pageName = "staff"; $subpageName = "status-change-approval"; @endphp @extends('layouts.app') @section('content')
@if(Session::has('message_success')) @endif
@forelse ($requests as $item) @empty @endforelse
Fullname Gender Nationality Employee ID Requested Status Approval Status Action
{{ trim($item->staff->surname . ' ' . $item->staff->firstname . ' ' . $item->staff->othername) }} {{ $item->staff->gender }} {{ $item->staff->nationality }} {{ $item->staff->employee_id }} {{ $item->new_status }} @if($item->approval === 'Pending') Pending @elseif($item->approval === 'Approved') Approved @else Rejected @endif @if($item->approval === 'Pending') @else @endif
No status change requests found.
{{ $requests->appends(request()->input())->links() }}
@endsection @section('scripts') @endsection