Update Delete
This commit is contained in:
parent
39258dfecc
commit
2b0ca9fc94
@ -49,7 +49,11 @@
|
|||||||
|
|
||||||
@if(Auth::user()->can($route[0].'.delete'))
|
@if(Auth::user()->can($route[0].'.delete'))
|
||||||
{!! Form::open(['method' => 'DELETE','route' => [$route[0].'.destroy', $model->id],'class'=>'']) !!}
|
{!! Form::open(['method' => 'DELETE','route' => [$route[0].'.destroy', $model->id],'class'=>'']) !!}
|
||||||
{{ Form::button(getIcon("trash", "text-danger","duotune")." Delete", ['type' => 'submit', 'class' => 'delete btn btn-bg-light btn-active-light-danger btn-sm'] ) }}
|
@if( Auth::user()->hasRole('operator'))
|
||||||
|
{{ Form::button(getIcon("trash", "text-danger","duotune")." Reqeust Delete", ['type' => 'submit', 'class' => 'delete btn btn-bg-light btn-active-light-danger btn-sm'] ) }}
|
||||||
|
@elseif(Auth::user()->hasRole('otorisator') || Auth::user()->hasRole('administrator'))
|
||||||
|
{{ Form::button(getIcon("trash", "text-danger","duotune")."Approve Delete", ['type' => 'submit', 'class' => 'delete btn btn-bg-light btn-active-light-danger btn-sm'] ) }}
|
||||||
|
@endif
|
||||||
{!! Form::close() !!}
|
{!! Form::close() !!}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user