@php $route = explode('.', Route::currentRouteName()); @endphp @if( Auth::user()->hasRole('operator') || Auth::user()->hasRole('administrator'))
{!! 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 @if(Auth::user()->hasRole('otorisator')) @if($model->status == 0) {!! Form::open(['method' => 'PUT','route' => [$route[0].'.update', $model->id],'class'=>'d-inline-block']) !!} {!! Form::close() !!} {!! Form::open(['method' => 'PUT','route' => [$route[0].'.update', $model->id],'class'=>'d-inline-block']) !!} {!! Form::close() !!} @endif @endif