Cetaklabel/Resources/views/masters/sub-sub-job/_action.blade.php

17 lines
797 B
PHP
Raw Normal View History

2023-05-15 10:03:46 +00:00
@php
$route = explode('.', Route::currentRouteName());
@endphp
2023-08-10 15:33:12 +00:00
@if( Auth::user()->hasRole('dd') || Auth::user()->hasRole('administrator'))
<div class="d-flex flex-row flex-center">
<a href="{{ route($route[0].'.edit',[str_replace('-','_',$route[0]) => $model->id]) }}"
class="kt_edit_form btn btn-icon btn-bg-light btn-active-light-primary btn-sm me-1">
{!! getIcon("pencil", "fs-1 text-info","duotune") !!}
</a>
2023-05-15 10:03:46 +00:00
{!! 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