@php($bookCount = $category->books()->count()) Back to categories

{{ $category->name }}

{{ $bookCount }} {{ \Illuminate\Support\Str::plural('book', $bookCount) }} in this category

Created

{{ $category->created_at?->format('d M Y') ?? '—' }}

@csrf @method('PUT')

Category details

Changes are reflected immediately in the member catalog.

$errors->has('name'), 'border-zinc-300 focus:border-brand-500 focus:ring-brand-500/10' => ! $errors->has('name'), ]) /> @error('name')

{{ $message }}

@enderror
Max. 500 characters
@error('description')

{{ $message }}

@enderror
@if ($bookCount > 0)

This category contains {{ $bookCount }} {{ \Illuminate\Support\Str::plural('book', $bookCount) }} and cannot be deleted until those books are moved to another category.

@endif
Cancel