{{-- Audio Viewer Component with error handling Variables: - $url: The URL of the audio file - $item: The FileSystemItem model (optional) --}} @php $url = $url ?? null; $item = $item ?? null; // Create a unique key to force Alpine re-initialization when URL changes $viewerKey = 'aud-' . md5($url ?? ''); @endphp
{{-- Loading State --}}
Loading audio...
{{-- Error State --}}

Audio unavailable

This audio file could not be loaded. It may be inaccessible or the URL has expired.

@if($url) Download Audio @endif
{{-- Audio Player --}}
@if($item)

{{ $item->getName() }}

@endif