auditionadmin/resources/views/components/form/footer.blade.php

14 lines
466 B
PHP

@props([
'submitButtonText' => '',
'buttons' => false,
])
<div {{ $attributes->merge(['class' => 'flex items-center justify-end mt-4 gap-x-6 border-t border-gray-900/10 px-0 pt-4']) }}>
@if ($slot->isEmpty())
<!-- TODO make the cancel button do something -->
<x-form.button-nocolor type="button">Cancel</x-form.button-nocolor>
<x-form.button>{{ $submitButtonText }}</x-form.button>
@else
{{ $slot }}
@endif
</div>