master_template/resources/views/components/form-buttons.blade.php

7 lines
260 B
PHP
Raw Normal View History

2024-06-23 11:17:56 +00:00
@props(['editable' => false, 'label' => 'Add', 'href' => '#'])
<div class="text-end">
{{ html()->a($href = $href, $text = 'Cancel')->class('btn btn-danger') }}
{{ html()->button($editable ? 'Update' : $label, 'submit')->class('btn btn-success') }}
</div>