Heera/resources/views/components/form-buttons.blade.php
2024-05-16 09:31:08 +05:45

8 lines
264 B
PHP

@props(['editable' => false, 'label' => 'Add', 'href' => '#'])
<div class="text-end">
{{ html()->a($href = $href, $text = 'Cancel')->class('btn btn-light') }}
{{ html()->button($editable ? 'Update' : $label, 'submit')->class('btn btn-success') }}
</div>