{{ $book->judul }}

{{ $book->deskripsi ?? 'Tidak ada deskripsi' }}

edit Edit Book
@csrf @method('DELETE')

Book Metadata

Kode Buku

{{ $book->kode_buku }}

Category ID

{{ $book->category->nama_kategori ?? '-' }}

Tipe

{{ ucfirst($book->tipe) ?? '-' }}

Lokasi Rak

{{ $book->lokasi_rak ?? '-' }}

{{ $book->deskripsi ?? 'Doing well with money isn’t necessarily about what you know. It’s about how you behave. And behavior is hard to teach, even to really smart people.' }}

Inventory Details

{{ $book->jumlah_tersedia > 0 ? 'AVAILABLE' : 'UNAVAILABLE' }}
inventory_2
Total Stock
{{ $book->jumlah_total }}
check_circle
Currently Available
{{ $book->jumlah_tersedia }}
outbound
Borrowed
{{ $book->jumlah_total - $book->jumlah_tersedia }}

Transaction History

Showing last 5 records
@forelse($transactions ?? [] as $transaction) @empty @endforelse
User Status Borrow Date Return Date Action
{{ strtoupper(substr($transaction->user->name, 0, 2)) }}
{{ $transaction->user->name }}
@php $statusClass = [ 'active' => 'bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400', 'returned' => 'bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400', 'overdue' => 'bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400', ][$transaction->status] ?? 'bg-slate-100 text-slate-700'; @endphp {{ ucfirst($transaction->status) }} {{ $transaction->borrow_date->format('M d, Y') }} {{ $transaction->return_date ? $transaction->return_date->format('M d, Y') : '-' }} Details
Belum ada transaksi untuk buku ini.