@extends('larasnap::layouts.app', ['class' => 'category-index']) @section('title','Category Management') @section('content')

Category Management - {{ $parentCategoryLabel }}

@method('POST') @csrf
@canAccessCategory('categories.create') Add New Category @endcanAccessCategory
@include('larasnap::list-filters.category')


@forelse($categories as $category) @empty @endforelse
ID Name(Slug) Label Position Status Actions
{{ $category->id }}@if($category->is_parent == 1) * @endif {{ $category->name }} {{ $category->label }} {{ $category->position }} @if($category->status === 1) Active @else InActive @endif @if($category->is_parent == 1) @canAccessCategory('categories.index') @endcanAccessCategory @endif @canAccessCategory('categories.edit') @endcanAccessCategory @canAccessCategory('categories.destroy') @endcanAccessCategory
No Category found!
@if($categories->isNotEmpty())

NOTE

  • The asterisk(*) symbol next to the ID represents, the category is both child & parent category.
  • Deleting a Parent Category will delete all its child-category & sub-child-category recursively.
@endif
@endsection