@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
@endsection @push('scripts') @endpush