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

Category List

Reset
@can('create-categories') Add Category @endcan
@forelse ($categories as $key => $category) @empty @endforelse
ID Image Icon Name Description Details Created At Action
{{$categories->firstItem() + $key}} @if($category->icon) Icon @else No Icon @endif {{ $category->name }} {!! $category->description ?: 'NA' !!} @if($category->products_count > 0) {{ $category->products_count }} Products @else No Products @endif @if($category->status) Active @else Inactive @endif @if($category->is_favorite) Favorite @endif @if($category->display_on_footer) Visible on Footer @endif {{ $category->created_at->format('d M Y') }} @can('view-categories') View @endcan @can('update-categories') Edit @endcan @can('delete-categories')
@csrf @method('DELETE')
@endcan @if(isAffiliater()) @endif
No Category Found
{{ $categories->links() }}
@endsection