@extends('layouts.app') @section('title', 'Library Catalogue') @section('content')
| Title | Author | Type | Class | Copies | On loan | Location | Status | Actions |
|---|---|---|---|---|---|---|---|---|
{{ $book->title }} {{ $book->isbn ?: $book->serial_no ?: 'โ' }}{{ $book->edition ? ' ยท '.$book->edition : '' }} |
{{ $book->author }} | {{ $book->type }} | {{ $book->class_id ? ($classes->firstWhere('id', $book->class_id)?->name ?? 'โ') : 'All' }} | {{ $book->copies }} | {{ $issued[$book->id] ?? 0 }} | {{ $book->location ?: 'โ' }} | ||