Cetaklabel/Resources/views/app/document/_action.blade.php
daeng.deni@dharma.or.id a9556ffdd3 Update Module Document
- Add Cetak Label
- Add Cetak Odner
- Add Generate QRCode
- Add Cetak Segel
- Add List Document Setiap Cetak Labeld Dus Atau Odner
2023-05-25 08:53:06 +07:00

32 lines
1.3 KiB
PHP

@php
$route = explode('.', Route::currentRouteName());
@endphp
<div class="d-flex flex-row flex-center">
<a href="{{ route($route[0].'.label',$model->id) }}" target="_blank"
class="btn btn-bg-light btn-active-light-primary btn-sm me-1">
Dus
</a>
<a href="{{ route($route[0].'.odner',$model->id) }}" target="_blank"
class="btn btn-bg-light btn-active-light-primary btn-sm me-1">
Odner
</a>
<a href="{{ route($route[0].'.download',$model->id) }}"
class="btn btn-icon btn-bg-light btn-active-light-primary btn-sm me-1">
{!! getIcon("cloud-download", "fs-1 text-info","duotune") !!}
</a>
@if(Auth::user()->can($route[0].'.update'))
<a href="{{ route($route[0].'.edit',['document' => $model->id]) }}"
class="kt_edit_form btn btn-icon btn-bg-light btn-active-light-warning btn-sm me-1">
{!! getIcon("pencil", "fs-1 text-warning","duotune") !!}
</a>
@endif
@if(Auth::user()->can($route[0].'.delete'))
{!! 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>