@extends('layouts.admin') @section('content')

Categories

Alpine.js is working!
Create Category
@if ($categories->whereNull('parent_id')->isEmpty())

No categories available at the moment.

@else
@foreach($categories->whereNull('parent_id') as $category) @endforeach
Name Parent Active Featured @if(request('sort') === 'featured-desc') @elseif(request('sort') === 'featured-asc') @endif Thumbnail Actions
{{ $category->name }}
None {{ $category->active ? 'Yes' : 'No' }} @if($category->featured_item) Featured @else No @endif @if($category->thumb) {{ $category->name }} Thumbnail @else No Image @endif
@csrf @method('DELETE')
@foreach($category->children as $child) @endforeach
{{ $child->name }} {{ $category->name }} {{ $child->active ? 'Yes' : 'No' }} @if($child->featured_item) Featured @else No @endif @if($child->thumb) {{ $child->name }} Thumbnail @else No Image @endif
@csrf @method('DELETE')
@endif
@endsection