@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
{{ $file->note }}
@if ($canManage) @endif