@extends('layouts.app') @section('content')
# | Image | Category | Status | @canany(['edit-product-category', 'delete-product-category'])Actions | @endcanany
---|---|---|---|---|
{{ $key + 1 }} |
@if ($category->image == null)
|
{{ $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 | @if(auth()->user()->hasRole('admin')) @canany(['edit-product-category', 'delete-product-category'])@can('edit-product-category') @endcan @can('delete-product-category') @endcan | @endcanany @endif