11 lines
468 B
PHP
11 lines
468 B
PHP
@php
|
|
$route = explode('.', Route::currentRouteName());
|
|
@endphp
|
|
@if(!Auth::user()->hasRole(['ad','dd']))
|
|
<div class="d-flex flex-row flex-center">
|
|
{!! 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() !!}
|
|
</div>
|
|
@endif
|