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

8 lines
264 B
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
@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>