{{-- PDF Viewer Component with error handling Variables: - $url: The URL of the PDF 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 = 'pdf-' . md5($url ?? ''); @endphp
PDF preview unavailable
This PDF could not be loaded. It may be inaccessible or the URL has expired.
@if($url)