@extends('layouts.admin.index') @section('content')
@if($bookCategory->image) {{ $bookCategory->name }} @else
@endif
{{ $bookCategory->name }}
Slug: {{ $bookCategory->slug }}
Sort Order: {{ $bookCategory->sort_order ?? 0 }}
Books Count: {{ $bookCategory->books()->count() }}
Status: {{ $bookCategory->is_active ? 'Active' : 'Inactive' }}
@if($bookCategory->description)
Description:

{{ $bookCategory->description }}

@endif @if($bookCategory->books()->count() > 0)
Books in this category:
@foreach($bookCategory->books()->limit(10)->get() as $book) @endforeach
Title Author Price Status
{{ $book->title }} {{ $book->author }} ${{ number_format($book->price, 2) }} {{ $book->is_active ? 'Active' : 'Inactive' }}
@if($bookCategory->books()->count() > 10)

Showing first 10 of {{ $bookCategory->books()->count() }} books

@endif
@endif
Back to List Edit Category
@csrf @method('DELETE')
@endsection