@php $icon = 'bi bi-file-earmark'; if ($asset->type === 'css') { $icon = 'bi bi-filetype-css'; } elseif ($asset->type === 'js') { $icon = 'bi bi-filetype-js'; } elseif ($asset->type === 'image') { $icon = 'bi bi-filetype-raw'; } $sizeFormatted = $asset->file_size > 1048576 ? round($asset->file_size / 1048576, 2) . ' MB' : round($asset->file_size / 1024, 1) . ' KB'; @endphp
{{ $asset->original_name }}
{{ ucfirst($asset->type) }} · {{ $sizeFormatted }} · {{ $asset->created_at->format('d/m/Y H:i') }}
{{ csrf_field() }}
@php $_snip = htmlspecialchars($asset->snippet, ENT_QUOTES, 'UTF-8'); @endphp
{{ $asset->snippet }}