Cetaklabel/Resources/views/app/cardboard/_action.blade.php

20 lines
900 B
PHP
Raw Normal View History

2023-06-13 09:17:59 +00:00
@php
$route = explode('.', Route::currentRouteName());
@endphp
<div class="d-flex flex-row flex-center">
2023-06-14 09:20:32 +00:00
<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>
2023-06-13 09:17:59 +00:00
<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() !!}
</div>