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

Product Category List

@if(auth()->user()->hasRole('admin'))
@can('add-product-category') @endcan
@endif
@canany(['edit-product-category', 'delete-product-category']) @endcanany @foreach ($categories as $key => $category) @if(auth()->user()->hasRole('admin')) @canany(['edit-product-category', 'delete-product-category']) @endcanany @endif @endforeach
# Image Category StatusActions
{{ $key + 1 }} @if ($category->image == null)
@else
@endif
{{ $category->name }}
@if ($category->status == 0) id }} data-status="1" data-action="{{ route('change-status') }}">In-Active @else id }} data-status="0" data-action="{{ route('change-status') }}">Active @endif @can('edit-product-category') @endcan @can('delete-product-category') @endcan
@endsection @push('script') @endpush