@include('Admin.Includes.header') @php use Illuminate\Support\Facades\Auth; $logged_in_user = Auth::user(); @endphp

{{ __('Categories') }}

@if (session('success')) @endif @if ($errors->any()) @endif
Create Category
@csrf
Please enter a category title.
Category Table
@forelse($categories as $category) @empty @endforelse
Title Status Sort Order Actions
@if ($category->image) {{ $category->title }} @endif
{{ $category->title }}
@if ($category->description) {{ Str::limit($category->description, 50) }} @endif
@if ($category->is_active) Active @else Inactive @endif {{ $category->sort_order }}
No data
Title Status Sort Order Actions
{{-- Delete Modals for each category --}} @foreach ($categories as $category) @include('Admin.Components.delete-modal', [ 'id' => $category->id, 'name' => $category->title, 'route' => 'category.delete', 'routeParam' => $category->id, ]) @endforeach @include('Admin.Includes.footer')