@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'Books'])

Books

Add
@foreach ($books as $index => $book) @endforeach
# Title Isbn Author Publish At Category Quantity Available Quantity Price Status Actions

{{ $index + 1 }}

{{ $book->title }}

{{ $book->isbn }}

{{ $book->author }}

{{ $book->published_at->format('Y-m-d') }}

{{ $book->category ? $book->category->name : 'N/A' }}

{{ $book->quantity }}

{{ $book->available_qty }}

₹{{ number_format($book->price, 2) }}

@if ($book->status === 'available') Available @else Borrowed @endif

@csrf @method('DELETE')
@endsection