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

8 lines
264 B
PHP
Raw Permalink Normal View History

2024-05-16 03:46:08 +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>