Files
eatvio-infra/resources/views/livewire/diet/start-button.blade.php
2023-05-22 09:52:08 +00:00

14 lines
845 B
PHP

<div class="d-flex align-items-center">
@if($chosenDietState != 'started')
<button wire:click="start" type="button" wire:loading.class="hidden">
<span wire:poll.keep-alive.visible="getLastState" class="px-4 py-2 badge rounded-pill bg-success --f_bold">{{ __('diet.start_diet') }}</span>
</button>
{{-- <svg wire:loading wire:target="start" class="animate-spin -ml-1 mr-3 h-5 w-5 text-white bg-success" xmlns="http://www.w3.org/2000/svg" fill="none" --}}
<span wire:loading wire:target="start" class="px-4 py-2 badge rounded-pill bg-success --f_bold">Loading...</span>
@else
<button type="button" disabled class="disabled:opacity-50">
<span class="px-4 py-2 badge rounded-pill bg-success --f_bold">{{ __('diet.diet_started') }} </span>
</button>
@endif
</div>