Cetaklabel/Resources/views/app/cardboard/_action.blade.php
Daeng Deni Mardaeni 7a7630e20a fix : module dashboard
- Cetak label dus tidak bisa dilakukan jika tidak ada dokumen
- Penambahan field approved_by dan approved_at
2023-09-20 14:00:58 +07:00

30 lines
1.3 KiB
PHP

@php
$route = explode('.', Route::currentRouteName());
@endphp
<div class="d-flex flex-row flex-center">
@if(!Auth::user()->hasRole('ad'))
@if(_countDocumentOnCardboard($model->id) > 0)
<a href="{{ route($route[0].'.label',$model->id) }}" target="_blank"
class="btn btn-bg-light btn-active-light-primary btn-sm me-1">
{!! getIcon("printer", "text-success","duotune") !!} Label Dus
</a>
@endif
@endif
<a href="{{ route('cardboard-detail.show',['cardboard_detail' => $model->id]) }}"
class="btn btn-icon btn-bg-light btn-active-light-primary btn-sm me-1">
{!! getIcon("cube-3", "fs-1 text-warning","duotune") !!}
</a>
@if(!Auth::user()->hasRole(['ad','dd']))
<a href="{{ route($route[0].'.edit',['cardboard' => $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>
{!! 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() !!}
@endif
</div>