@extends('layouts.admin-simple') @section('title', $title ?? 'Category Management') @section('page-title', $title ?? 'Category Management') @section('breadcrumb') @if(isset($type) && $type === 'video') @else @endif @endsection @section('page-actions')
@endsection @section('content')

{{ $title ?? 'Categories' }}

@if(isset($type) && $type === 'video') Manage video categories for organizing video content @else Manage news article categories @endif
{{ $categories->count() }} categories
@forelse($categories as $category) @empty @endforelse
Category Description Color Articles Status Order Actions
@if($category->icon)
{{ $category->icon }}
@endif
{{ $category->name }}
{{ $category->slug }}
{{ $category->description ?: '-' }}
{{ $category->color }}
@if(isset($type) && $type === 'video') {{ $category->videos_count }} @else {{ $category->news_count }} @endif @if($category->is_active) Active @else Inactive @endif {{ $category->sort_order }}
category
No categories found

@if(isset($type) && $type === 'video') Start by creating your first video category. @else Start by creating your first news category. @endif

@endsection @section('modals') @foreach($categories as $category) @endforeach @foreach($categories as $category) @if((isset($type) && $type === 'video' && $category->videos_count == 0) || (!isset($type) || $type !== 'video') && $category->news_count == 0) @endif @endforeach @endsection