@extends('layouts.app') @section('page-title', 'Request a Change') @section('content')

Request a Change

Submit a change request for a controlled document

@if($documents->isEmpty())

No controlled documents assigned to you

You can only request changes for controlled documents in your assigned folders.

@else @php $docData = $documents->map(function ($d) { // Build breadcrumb path: top → mid → folder $folder = $d->folder; $crumbs = collect(); $node = $folder; while ($node) { $crumbs->prepend($node->name); $node = $node->parent ?? null; } $path = $crumbs->implode(' / '); // File extension from file_name or mime_type $ext = $d->file_name ? strtoupper(pathinfo($d->file_name, PATHINFO_EXTENSION)) : 'FILE'; // Badge color class $extLower = strtolower($ext); $badge = match(true) { $extLower === 'pdf' => 'bg-red-100 text-red-700', in_array($extLower, ['doc','docx']) => 'bg-blue-100 text-blue-700', in_array($extLower, ['xls','xlsx']) => 'bg-emerald-100 text-emerald-700', in_array($extLower, ['ppt','pptx']) => 'bg-orange-100 text-orange-700', default => 'bg-surface-100 text-surface-600', }; return [ 'id' => $d->id, 'title' => $d->title, 'docNum' => $d->doc_number, 'ver' => 'v' . $d->version, 'path' => $path, 'ext' => $ext ?: 'FILE', 'badge' => $badge, 'search' => strtolower($d->title . ' ' . $d->doc_number . ' ' . $d->version . ' ' . $path), ]; })->values()->all(); @endphp
@csrf {{-- Document picker --}}
{{-- Trigger button --}} {{-- Dropdown --}} @error('document_id')

{{ $message }}

@enderror
{{-- Description --}}
@error('description')

{{ $message }}

@enderror

Be as specific as possible — section numbers, current wording, and what you'd like changed.

Cancel
@endif
@endsection