forked from eatvio/eatvio-infra
14 lines
845 B
PHP
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>
|