StocksNew/resources/views/components/form-buttons.blade.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +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>