Belum ada buku tersedia.
@else
@foreach($books as $book)
@php
$b = is_array($book) ? $book : $book->toArray();
$urlKey = $b['url_key'] ?? str_replace('/', '__', ltrim($b['ol_key'] ?? '', '/'));
$title = $b['title'] ?? 'Unknown';
$author = $b['author'] ?? '-';
$coverUrl = $b['cover_url'] ?? null;
$isReadable = $b['is_readable'] ?? false;
@endphp
{{-- Cover --}}
@if($coverUrl)

@else
No Cover
@endif
{{-- Info --}}
{{ $title }}
{{ $author }}
@if($isReadable)
PDF
@else
—
@endif
@if($urlKey)
Detail →
@endif
@endforeach
@endif