@extends('layouts.app') @section('title', 'Book Catalog | Library') @section('sidebar-menu') @include('schooladmin.partials.sidebar') @endsection @section('sidebar-footer')

{{ auth()->user()->school?->name ?? 'Institution Axis' }}

@endsection @section('breadcrumb') Home / Library / Books @endsection @section('navbar-right')
5
@endsection @section('content')

Book Catalog

Manage all library books and copies
Add Book
@if(session('success')) @endif @if(session('error')) @endif
All Books
@forelse($books as $book) @empty @endforelse
# Title Author Category ISBN Total Available Location Actions
{{ $loop->iteration }} {{ $book->title }} {{ $book->author }} @if($book->category) {{ $book->category }} @else @endif {{ $book->isbn ?? '—' }} {{ $book->total_copies }} {{ $book->available_copies }} {{ $book->location ?? '—' }}
@csrf @method('DELETE')
No books found. Add the first one.
@if($books->hasPages()) @endif
@endsection @section('custom-scripts') @endsection