@extends('layouts.sidebar') @section('title', 'Requisitions') @section('content') @if (in_array('Manage Requisition', $privileges))
< Back

Update and View Manpower Requisition

Manpower Requisition Form

Notes: This MR must be updated with any changes in the requisition. Ensure all fields are accurate before submitting.

@if (session('success'))

{{ session('success') }}

@endif
@csrf @method('PUT')

Manpower Required By:

{{ $requisition->created_at->timezone('Asia/Manila')->format('F jS, Y \a\t g:i A') }}

Manpower Details:

@if ($details && $details->isNotEmpty())

Stationary

@foreach ($details as $detail)
{{--
--}}
@endforeach
@else

Roving

@endif
@if (in_array('MRF Form Status', $privileges))
@endif

Additional Details:

@if (in_array('MRF Open', $privileges)) @endif
@csrf

Applicants Details:

@foreach ($requisition->mrfapplicant as $employee) @endforeach
Name View Current Status Update Status
{{ $employee->employee->first_name }} {{ $employee->employee->middle_name }} {{ $employee->employee->last_name }}
{{ $employee->status }}

Update the status of the existing employees as needed.

@if (in_array('MRF Form Status', $privileges) || $requisition->status == 'For Approval') @endif
@if (in_array('MRF Add Appicant', $privileges))
@csrf

Select Applicant:

Hold down the Ctrl (Windows) or Command (Mac) button to select multiple employees.

@endif
@if ($requisition->status == 'For Approval' && in_array('MRF For Approval', $privileges))
@csrf @method('PUT')
@elseif ($requisition->status == 'Approved' && in_array('MRF Approved', $privileges))
@csrf @method('PUT')
@elseif ($requisition->status == 'Meet & Greet / Intro' && in_array('MRF Meet & Greet', $privileges))
@csrf @method('PUT')
@elseif ($requisition->status == 'Process Requirement' && in_array('MRF Process Requirement', $privileges))
@csrf @method('PUT')
@elseif ($requisition->status == 'Agency Orientation' && in_array('MRF Agency Orientation', $privileges))
@csrf @method('PUT')
@elseif ($requisition->status == 'Client Orientation' && in_array('MRF Client Orientation', $privileges))
@csrf @method('PUT')
@endif
@foreach ($mrf as $action)

User: {{ $action->user->name ?? 'Unknown User' }}

Action: @if (!in_array($action->action, ['Cancel', 'Approved', 'Disapproved'])) Proceed to {{ $action->action ?? 'Open' }} @else {{ $action->action ?? 'Open' }} @endif

Timestamp: {{ $action->created_at->timezone('Asia/Manila')->format('F jS, Y \a\t g:i A') }}

@endforeach
@endif @endsection