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