@extends('layouts.layouts') @section('title', 'Books | Book Store') @section('header-title', 'Books') @section('content')

Your catalogue

Printed books

Manage the books available in your shop.

Add a book
@if ($books->isEmpty())
+

Your shelves are waiting

Add your first printed book to start building the catalogue.

Add your first book
@else
@foreach ($books as $book)
@if ($book->cover_image) Cover of {{ $book->title }} @else {{ $book->title }} @endif
{{ $book->category->name }}

{{ $book->title }}

Rs. {{ number_format((float) $book->price, 2) }} {{ $book->stock }} in stock
Edit
@csrf @method('DELETE')
@endforeach
{{ $books->links() }}
@endif @endsection