@extends('layouts.admin') @section('breadcrumb', 'Category Details') @section('content')

{{ $category->name }}

Category details and books

@if($category->image) {{ $category->name }} @else
@endif
{!! $category->status_badge !!}
@if($category->description)

{{ $category->description }}

@endif

{{ $category->books_count }}

{{ $category->active_books_count }}

{{ $category->sort_order }}

{{ $category->created_at->ist()->format('M d, Y') }}

{{ $category->updated_at->ist()->format('M d, Y') }}

Books in this Category

View All Books
@if($category->books->count() > 0)
@foreach($category->books as $book)
{{ $book->title }}

{{ $book->title }}

by {{ $book->author }}

{{ $book->formatted_price }} {!! $book->status_badge !!}
Stock: {{ $book->stock }}
@endforeach
@else

No books in this category

Get started by adding a new book to this category.

@endif
@endsection