update toolbar
This commit is contained in:
parent
63ef9746f4
commit
d9107597c3
@ -13,24 +13,26 @@
|
||||
|
||||
@if(isset($route[0]) && $route[0]!=='cardboard-detail')
|
||||
@if(isset($route[1]) && $route[1] == 'index')
|
||||
@if($route[0]=='document' || $route[0]=='cardboard')
|
||||
@if(!Auth::user()->hasRole(['ad','dd','eo']))
|
||||
<!--begin::Actions-->
|
||||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||||
<!--begin::Primary button-->
|
||||
<a href="{{ route($route[0].'.create') }}" class="btn btn-sm fw-bold btn-primary text-capitalize" >Add {{ str_replace('-',' ',$route[0]) }}</a>
|
||||
<!--end::Primary button-->
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
@if($route[0]=='document')
|
||||
@if(!Auth::user()->hasRole(['ad','dd']))
|
||||
<!--begin::Actions-->
|
||||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||||
<!--begin::Primary button-->
|
||||
<a href="{{ route($route[0].'.create') }}" class="btn btn-sm fw-bold btn-primary text-capitalize">Add {{ str_replace('-',' ',$route[0]) }}</a>
|
||||
<!--end::Primary button-->
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
@endif
|
||||
@elseif($route[0]!=='settings' && $route[0]!=='approval')
|
||||
<!--begin::Actions-->
|
||||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||||
<!--begin::Primary button-->
|
||||
<a href="{{ route($route[0].'.create') }}" class="btn btn-sm fw-bold btn-primary text-capitalize" data-bs-toggle="modal" data-bs-target="#kt_modal_{{ $route[0] }}">Add {{ str_replace('-',' ',$route[0]) }}</a>
|
||||
<!--end::Primary button-->
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
@if(!Auth::user()->hasRole(['ad','dd']))
|
||||
<!--begin::Actions-->
|
||||
<div class="d-flex align-items-center gap-2 gap-lg-3">
|
||||
<!--begin::Primary button-->
|
||||
<a href="{{ route($route[0].'.create') }}" class="btn btn-sm fw-bold btn-primary text-capitalize" data-bs-toggle="modal" data-bs-target="#kt_modal_{{ $route[0] }}">Add {{ str_replace('-',' ',$route[0]) }}</a>
|
||||
<!--end::Primary button-->
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
@endif
|
||||
@endif
|
||||
@elseif(isset($route[2]) && $route[2] == 'index')
|
||||
@if($route[1]!=='users' || $route[0] !=='log')
|
||||
@ -66,7 +68,7 @@
|
||||
<!--end::Primary button-->
|
||||
@endif
|
||||
<!--begin::Primary button-->
|
||||
<a href="{{ route($route[0].'.index') }}?id={{ $id }}" class="btn btn-sm fw-bold btn-primary text-capitalize">Add/Edit Odner</a>
|
||||
<a href="{{ route($route[0].'.index') }}?id={{ $id }}" class="btn btn-sm fw-bold btn-primary text-capitalize">Add/Edit Odner</a>
|
||||
<a href="{{ route('cardboard.index') }}" class="btn btn-sm fw-bold btn-warning text-capitalize">Back</a>
|
||||
<!--end::Primary button-->
|
||||
@else
|
||||
|
Loading…
Reference in New Issue
Block a user