@extends('layouts.app') @section('content')
{{ $library->name }}
File Type:
{{ $library->file_type }}
Uploaded By:
{{ $library->user->name ?? 'Unknown' }}
Uploaded At:
{{ $library->created_at->format('Y-m-d H:i:s') }}
Description:
{{ $library->description }}
Document URL:
{{ $library->url_dokumen ?? 'No URL provided' }}
Document Preview
@if ($library->file_type === 'pdf')
@elseif (in_array($library->file_type, ['jpg', 'jpeg', 'png', 'gif']))
@else
Preview is not available for this file type.
@endif
Back to Library List
@endsection