@extends('backEnd.layouts.master') @section('title','Categories') @section('content')

Categories

Manage product categories
@forelse($categories as $i => $cat) @if($cat->children->count()) @foreach($cat->children as $child) @endforeach @endif @empty @endforelse
# Image Name Parent Sub-cats Products Status Actions
{{ $i + 1 }} @if($cat->image) {{ $cat->name }} @else
@endif
{{ $cat->name }}
{{ $cat->slug }}
@if($cat->parent) {{ $cat->parent->name }} @else @endif {{ $cat->children_count }} {{ $cat->products_count }}
status ? 'checked' : '' }}>
@csrf @method('DELETE')
@if($child->image) @else
@endif
{{ $child->name }}
{{ $child->slug }}
{{ $cat->name }} {{ $child->children_count ?? 0 }} {{ $child->products_count ?? 0 }} {{ $child->status ? 'Active' : 'Inactive' }}
@csrf @method('DELETE')
No categories found.
@endsection @push('scripts') @endpush