master_template/resources/views/components/form-buttons.blade.php
2024-06-23 17:02:56 +05:45

7 lines
260 B
PHP

@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>