@extends('layouts.backend') @section('css_before') @endsection @section('js_after') @endsection @section('content')

View All Categories

{{--

Plugin Example

This page showcases how easily you can add a plugin’s JS/CSS assets and init it using custom JS code.

--}}

Categories Table

@if ($message = Session::get('success'))
{{ $message }}
@endif @php($i=0) @foreach($categories as $category) {{-- --}} {{-- --}} {{-- @can('update', App\Category::class) --}} {{-- @endcan --}} @foreach($category->children as $children) {{----}} {{----}} {{-- @can('update', App\Category::class) --}} {{-- @endcan --}} @foreach($children->children as $grandchild) {{----}} {{----}} {{-- @can('update', App\Category::class) --}} {{-- @endcan --}} @endforeach @endforeach @endforeach
# Title ID Parent Category Level Order Updated By Action
{{++$i}} {{ $category->title }} {{ $category->id }} {{ isset($category->parent_id) ? $category->parent->title : 'N/A' }} {{ $category->level }}{{ $category->status }}{{ $category->order }}{{ $category->haschild ? 'Yes' : 'No'}}/{{$category->hasgrand ? 'Yes' : 'No'}}{{ $category->editedBy ? $category->editedBy->name : 'N/A' }}
Add Offer Edit
@csrf
{{++$i}} {{ $children->title }} {{ $children->id }} {{ isset($children->parent_id) ? $children->parent->title : 'N/A' }} {{ $children->level }}{{ $category->status }}{{ $children->order }}N/A{{ $children->editedBy ? $children->editedBy->name : 'N/A' }}
Add Offer Edit
@csrf
{{++$i}} {{ $grandchild->title }} {{ $grandchild->id }} {{ isset($grandchild->parent_id) ? $grandchild->parent->title : 'N/A' }} {{ $grandchild->level }}{{ $category->status }}{{ $grandchild->order }}N/A{{ $grandchild->editedBy ? $grandchild->editedBy->name : 'N/A' }}
Add Offer Edit
@csrf
@endsection