@extends('layouts.admin.master') @section('head') @section('title')Bargain Book Hut β€” Categories@endsection @endsection @section('body')
Adminβ€Ί Catalogueβ€Ί Categories

Categories πŸ—‚οΈ Catalogue

Manage top-level categories used to organise books across the catalogue.

Total Categories
{{ $Category->total() ?? $Category->count() }}
This Page
{{ $Category->count() }}
Active
{{ $activeCount }}
Inactive
{{ $inactiveCount }}
{{-- ADD CARD --}}

βž• Add New Category

@include('UI.error')
Press Enter or click Submit to add
JPG/PNG/WEBP, max 2MB
JPG/PNG/WEBP, max 2MB
{{-- TABLE CARD --}}
{{-- Search --}}
πŸ”
{{-- Status β€” defaults to "1" (Active) on first load --}} {{-- Sort --}} @if(request()->hasAny(['search','sort']) || request('status', '1') !== '1') βœ• Clear @endif {{ $Category->total() }} {{ $Category->total() == 1 ? 'category' : 'categories' }}
@forelse($Category as $Categoryval) @empty @endforelse
## # Category Actions Status
β Ώ {{ $loop->iteration }}
{{-- Desktop image --}} {{-- Mobile banner --}} πŸ—‚οΈ {{ $Categoryval->name }}
Desktop image
Mobile banner
status == 1 ? 'checked' : '' }} onchange="updateStatus({{ $Categoryval->id }}, this.checked ? 1 : 0)">
πŸ—‚οΈ

No categories yet. Add your first one above.

@if($Category->hasPages())
{{ $Category->links() }}
@endif
βœ…Done
@section('script') @endsection @endsection