{{-- Top header --}}

Edit File

{{ Str::limit($file->name, 55) }}

{{-- Left info panel --}}
File Info
{{ Str::limit($file->name, 28) }}
{{ ucfirst($file->type) }}
{{ auth()->user()->name }}
Uploaded {{ $file->created_at->format('M d, Y') }}
Updated {{ $file->updated_at->diffForHumans() }}
{{-- Current file preview --}}
Current File Preview
@if($isImage) {{ $file->name }} @elseif($isPdf) @else
.{{ strtoupper($ext ?: '???') }} file
@endif Download / View
{{-- Form --}}
@csrf @method('PUT')
{{-- File Name --}}
File Name
@error('name')

{{ $message }}

@enderror
{{-- Replace File --}}
Replace File Optional — leave blank to keep current
Drag & drop a new file here
or click to browse — replaces the current file
{{-- New image preview --}}
New File Preview
Preview
@error('file')

{{ $message }}

@enderror
{{-- File Type --}}
File Type Required
@foreach(['project'=>'Project','docs'=>'Docs','txt'=>'Text','code'=>'Code','image'=>'Image'] as $t => $lbl) @php $tIcon = ['project'=>'bi-kanban','docs'=>'bi-file-earmark-text','txt'=>'bi-file-earmark','code'=>'bi-code-slash','image'=>'bi-image'][$t]; @endphp
{{ $lbl }}
@endforeach
@error('type')

{{ $message }}

@enderror
{{-- Action bar --}}
Cancel
{{-- Danger zone --}}
Danger Zone

Permanently delete this file. This action cannot be undone.

@csrf @method('DELETE')
{{-- /cu-sections --}}
{{-- /cu-layout --}}