@props([
'text' => 'Submit',
'target', 
'loadingText' => '',
'type' => 'submit'
])
<button 
{{ 
$attributes->merge([
    'class' => 'btn bshadow text-center ffont'
]) 
}}
wire:target="{{ $target }}"
wire:loading.remove
type="{{ $type }}"
{{ $attributes }}
>
    {{ $text }}
</button>

<button 
{{
$attributes->merge([
    'class' => 'btn bshadow text-center ffont'
]) 
}} 
type="button" 
disabled 
wire:loading 
wire:target="{{ $target }}"
>
    <span class="spinner-border" role="status" aria-hidden="true"></span>
    @if($loadingText)
    {{ $loadingText }}...
    @endif
</button>