<?php if(authUser()): ?>
    <button wire:click="addToFavorite"
        class="btn <?php echo e(authUser()->hasItemInFavorite($item->id) ? 'btn-custom' : 'btn-outline-custom'); ?> btn-md px-3">
        <i class=" <?php echo e(authUser()->hasItemInFavorite($item->id) ? 'fa-solid' : 'fa-regular'); ?> fa-heart"></i>
    </button>
<?php else: ?>
    <a href="<?php echo e(route('login')); ?>" class="btn btn-outline-custom btn-md px-3">
        <i class="fa-regular fa-heart"></i>
    </a>
<?php endif; ?>
<?php /**PATH /home/novaspi1/public_html/resources/views/themes/basic/livewire/item/favorite-button.blade.php ENDPATH**/ ?>