{{-- Filament port of the legacy Admin asset/media manager. Browses the `public` disk under assets/ (served at /storage/assets/...). Folders are clickable; files show a thumbnail for images. Upload + New folder are header actions; delete is a per-item confirming action. --}} @php($listing = $this->getListing()) @php($folders = $listing['folders']) @php($files = $listing['files']) @php($trail = $this->getBreadcrumbsTrail()) @php($parent = $this->getParentPath()) {{-- Breadcrumb + up --}}
@if ($parent !== null) @endif
{{-- Folders --}} @if (count($folders))

Folders

@foreach ($folders as $folder)
{{ ($this->deleteAction)(['path' => $folder['path'], 'label' => $folder['name'], 'kind' => 'folder']) }}
@endforeach
@endif {{-- Files --}}

Files

@if (count($files))
@foreach ($files as $file)
@if ($file['is_image']) {{ $file['name'] }} @else @endif
{{ $file['name'] }}
{{ $file['extension'] ?: $file['type'] }} {{ $file['size_human'] }}
{{ ($this->deleteAction)(['path' => $file['path'], 'label' => $file['name'], 'kind' => 'file']) }}
@endforeach
@else

No files in this folder.

@endif