@extends('dashboard.layouts.app') @section('content') @include('components.alert') @php $currentRequestTypeName = optional($row->type)->name; if (!$currentRequestTypeName && isset($requestTypes)) { $currentRequestTypeName = optional($requestTypes->firstWhere('id', $row->request_type_id))->name; } $currentRequestTypeName = $currentRequestTypeName ?: 'Request'; $currentPriorityLabel = ucfirst($row->priority ?? 'normal'); $currentDepartmentName = optional($departments->firstWhere('id', $row->department_id))->name ?: 'Department'; $requestCode = 'REQ-' . str_pad((string) $row->id, 4, '0', STR_PAD_LEFT); @endphp
Back to Requests
@csrf @method('PUT')
Request Overview

Review the core request data first, then update the specialized section that matches the selected request type.

@error('department_id')
{{ $message }}
@enderror
@error('request_for')
{{ $message }}
@enderror
@error('request_type_id')
{{ $message }}
@enderror
@error('priority')
{{ $message }}
@enderror
@if ($auth->department->slug == 'hr')
@error('staff_id')
{{ $message }}
@enderror
@endif
@error('deadline')
{{ $message }}
@enderror
@error('details')
{{ $message }}
@enderror
@error('attachments')
{{ $message }}
@enderror @error('attachments.*')
{{ $message }}
@enderror
@if ($row->attachments && count($row->attachments) > 0)
Existing Attachments
@foreach ($row->attachments as $file)
{{ $file->original_name }}
{{ $file->original_name }}
Open file
@endforeach
@endif
Cancel
@endsection @push('scripts') @endpush