{{-- Top header --}}

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

Uploaded {{ $file->created_at->diffForHumans() }}

{{-- 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() }}
{{ $sizeStr }}
.{{ strtoupper($ext ?: '—') }}

Download Edit
@csrf @method('DELETE')
{{-- Right content --}}
{{-- Preview --}}
Preview
@if($isImage) {{ $file->name }} @elseif($isPdf) @else

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

Preview is not available for .{{ strtoupper($ext ?: 'this') }} files.
Click below to open or download.

Open File
@endif
{{-- Details --}}
File Details
Name {{ $file->name }}
Type {{ ucfirst($file->type) }}
Extension .{{ strtoupper($ext ?: '—') }}
Size {{ $sizeStr }}
Uploaded {{ $file->created_at->format('M d, Y \a\t g:i A') }}
Last Updated {{ $file->updated_at->format('M d, Y \a\t g:i A') }}
Owner {{ auth()->user()->name }}
Path {{ $file->path }}
{{-- /cu-sections --}}
{{-- /cu-layout --}}