@props(['processing' => 'processing', 'text', 'class' => 'btn'])
<button type="submit" class="{{ $class }}" x-show="!{{ $processing }}" {{ $attributes }}>
    <span class="btn-title">{{ $text }}</span>
</button>
<button class="{{ $class }}" type="button" disabled x-cloak x-show="{{ $processing }}">
    <span class="spinner-border spinner-border-lg" role="status" aria-hidden="true"></span>
</button>