@if(UserRole::has('edit_category') || UserRole::has('delete_category')) @endif @foreach($categories as $category) @if(UserRole::has('edit_category') || UserRole::has('delete_category')) @endif @endforeach
# {{ Trans('products.categories.name') }}{{ Trans('dashboard.crud.actions') }}
{{ $category->id }} {{ $category->name }} @if(UserRole::has('edit_category')) id) }}" class="btn btn-xs btn-info">{{Trans("dashboard.crud.edit")}} @endif @if(UserRole::has('delete_category')) {{Trans("dashboard.crud.remove")}} @include('layouts.includes.modals.danger', ['model' => $category,'toRoute'=>'categories','attribute'=>'name']) @endif