@extends('admin.layouts.app') @section('page_title', 'Categories') @section('content')
{{-- Header --}}

Category Management

Create, search, update, and manage your video categories.

{{-- Alerts --}} @if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())

Please fix the following errors:

@endif {{-- Toolbar --}}
Reset
{{-- Table --}}
Categories List
@forelse ($categories as $idx => $cat) @empty @endforelse
# Name Icon Status Created Actions
{{ ($categories->currentPage()-1)*$categories->perPage()+$idx+1 }} {{ $cat->name }}
@csrf @method('PUT')
{{ $cat->created_at->format('d M Y, h:i A') }}
{{-- EDIT BUTTON --}} {{-- DELETE --}}
@csrf @method('DELETE')

No categories found.
{{-- Pagination --}} @if ($categories->hasPages())

Showing {{ $categories->firstItem() }}–{{ $categories->lastItem() }} of {{ $categories->total() }}

{{ $categories->withQueryString()->links() }}
@endif
{{-- ADD MODAL --}}

Add Category

@csrf {{-- ICON UPLOAD --}}
{{-- EDIT MODAL --}}

Edit Category

@csrf @method('PUT') {{-- ICON UPLOAD --}}
@endsection @push('scripts') @endpush