{{-- ================================================================ HEADER ================================================================= --}}
{{-- ============================================================ MAIN ============================================================= --}}
{{-- ======================================================== OVERVIEW ========================================================= --}}
@if ($book->cover_path) {{ $book->title }} @else
{{ $book->title }}
@endif
@if ($book->category) {{ $book->category }} @endif

{{ $book->title }}

By {{ $book->authors->pluck('name')->join(', ') ?: 'Unknown Author' }}

@if ($book->description)

{{ $book->description }}

@else

No description has been provided for this title.

@endif
Publisher {{ $book->publisher?->name ?? 'Independent' }}
Language {{ $book->language }}
Published {{ $book->publication_year ?? '—' }}
Pages {{ $book->page_count ?? '—' }}
Loan Period {{ $book->loan_days }} days
Concurrent Loans {{ $book->max_concurrent_loans ?? 'Unlimited' }}
{{-- ======================================================== RIGHTS ========================================================= --}}
Intellectual Property

Rights & Permissions

@if ($book->rights_statement)
Rights Statement

{{ $book->rights_statement }}

@endif
{{-- ======================================================== REVIEW ========================================================= --}}
Workflow

Review History

@can('review', $book) Review Book @endcan
Submitted {{ $book->submitted_at?->format('d M Y H:i') ?? 'Not submitted' }}
Reviewed {{ $book->reviewed_at?->format('d M Y H:i') ?? 'Not reviewed' }}
Reviewer {{ $book->reviewer?->name ?? '—' }}
@if ($book->review_notes)
Review Notes

{{ $book->review_notes }}

@endif
{{-- ======================================================== LICENCES ========================================================= --}}
Distribution

School Licences

@can('create', App\Models\SchoolBookLicense::class) Issue Licence @endcan
@if ($book->licenses->count())
@foreach ($book->licenses as $license) @endforeach
School Licence Type Expires Status
{{ $license->school?->name ?? 'Unknown' }} {{ $license->license_number }} {{ str($license->license_type)->title() }} {{ $license->expires_at?->format('d M Y') ?? 'No expiry' }}
@else
No institutional licences have been issued for this title.
@endif
{{-- ============================================================ SIDEBAR ============================================================= --}}