@php $isOwn = $file->user_id === auth()->id(); $canManage = $isOwn || auth()->user()->isAdmin(); $ext = strtoupper(pathinfo($file->original_name, PATHINFO_EXTENSION)) ?: 'FILE'; $colors = \App\Support\Avatar::colors($ext); @endphp
{{ Str::limit($ext, 4, '') }}
{{ $file->original_name }}
Subido por {{ $file->user->name }} {{ $file->humanSize() }} ยท {{ $file->created_at->format('d/m/Y H:i') }}
@if ($canManage) @endif

{{ $file->note }}

@if ($canManage) @endif