@extends('layouts.layouts') @section('title', $book->title . ' | Book Store') @section('header-title', 'Book details') @section('content')
← Back to books
@if ($book->cover_image) Cover of {{ $book->title }} @else {{ $book->title }} @endif
{{ $book->category->name }}

{{ $book->title }}

{{ $book->description ?: 'No description has been added for this book yet.' }}

PriceRs. {{ number_format((float) $book->price, 2) }}
Stock{{ $book->stock }} copies
@if ($book->language)
Language{{ $book->language }}
@endif @if ($book->pages)
Pages{{ number_format($book->pages) }}
@endif
{{ $book->status ? 'Available in shop' : 'Not currently available' }}
Edit book
@csrf @method('DELETE')
@endsection