Cetaklabel/Resources/views/app/cardboard-detail/_action.blade.php

11 lines
468 B
PHP
Raw Normal View History

2023-06-14 09:20:32 +00:00
@php
$route = explode('.', Route::currentRouteName());
@endphp
2023-07-20 02:42:53 +00:00
@if(!Auth::user()->hasRole(['ad','dd']))
2023-06-14 09:20:32 +00:00
<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>
2023-07-20 02:42:53 +00:00
@endif