Fix : Action & Status Delete Module Document

This commit is contained in:
Daeng Deni Mardaeni 2023-09-22 09:44:02 +07:00
parent 9c056df476
commit 5f47c95885

View File

@ -50,7 +50,7 @@
@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'=>'']) !!}
@if( Auth::user()->hasRole('eo')) @if( Auth::user()->hasRole('eo') && !in_array($model->status,[6,7]))
{{ Form::button(getIcon("trash", "text-danger","duotune")."Delete", ['type' => 'submit', 'class' => 'delete btn btn-bg-light btn-active-light-danger btn-sm'] ) }} {{ Form::button(getIcon("trash", "text-danger","duotune")."Delete", ['type' => 'submit', 'class' => 'delete btn btn-bg-light btn-active-light-danger btn-sm'] ) }}
@elseif(Auth::user()->hasRole('dd') && $model->status == 6) @elseif(Auth::user()->hasRole('dd') && $model->status == 6)
{{ Form::button(getIcon("trash", "text-danger","duotune")."Approve Delete", ['type' => 'submit', 'class' => 'approvedelete btn btn-bg-light btn-active-light-danger btn-sm'] ) }} {{ Form::button(getIcon("trash", "text-danger","duotune")."Approve Delete", ['type' => 'submit', 'class' => 'approvedelete btn btn-bg-light btn-active-light-danger btn-sm'] ) }}