@php
$deleteProductCategoryPermission = user()->permission('manage_product_category');
@endphp
# |
@lang('modules.projectCategory.categoryName') |
@lang('app.action') |
@forelse($categories as $key=>$category)
{{ $key + 1 }} |
{{ $category->category_name }}
|
@if ($deleteProductCategoryPermission == 'all' || ($deleteProductCategoryPermission == 'added' && $category->id == user()->id))
@lang('app.delete')
@endif
|
@empty
@endforelse