@php $route = explode('.', Route::currentRouteName()); @endphp
@if(!Auth::user()->hasRole('ad')) {!! getIcon("printer", "text-success","duotune") !!} Label Dus @endif {!! getIcon("cube-3", "fs-1 text-warning","duotune") !!} @if(!Auth::user()->hasRole(['ad','dd'])) {!! getIcon("pencil", "fs-1 text-info","duotune") !!} {!! Form::open(['method' => 'DELETE','route' => [$route[0].'.destroy', $model->id],'class'=>'']) !!} {{ Form::button(getIcon("trash", "fs-1 text-danger","duotune"), ['type' => 'submit', 'class' => 'delete btn btn-icon btn-bg-light btn-active-light-danger btn-sm'] ) }} {!! Form::close() !!} @endif