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
| # | 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' }} | {{-- @can('update', App\Category::class) --}}{{-- @endcan --}} |
| {{++$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' }} | {{-- @can('update', App\Category::class) --}}{{-- @endcan --}} |
| {{++$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' }} | {{-- @can('update', App\Category::class) --}}{{-- @endcan --}} |