<?php if(isset($wishlist_page) && $wishlist_page): ?> <?php $wishlist_page = true; ?> <style> .product .cart.animate-effect{ left: 0; margin-left: 5%; } </style> <?php else: ?> <?php $wishlist_page = false; ?> <?php endif; ?> <div class="cart clearfix animate-effect" <?php echo e(!Auth::check() ? ' style=margin-left:-25px' : ''); ?>> <div class="action"> <ul class="list-unstyled"> <?php if($wishlist_page): ?> <li class="remove-wishlist-product btn-group"> <button data-toggle="tooltip" onclick="event.preventDefault(); document.getElementById('product-favourite-destroy-<?php echo e($product->id); ?>').submit();" class="btn btn-danger icon" type="button" title="<?php echo app('translator')->getFromJson('Remove From Wishlist'); ?>"> <i class="fa fa-trash"> </i> <?php echo app('translator')->getFromJson('Remove From Wishlist'); ?> </button> <form action="<?php echo e(route('front.product.favourite.destroy', $product)); ?>" method="POST" id="product-favourite-destroy-<?php echo e($product->id); ?>"> <?php echo e(csrf_field()); ?> <?php echo e(method_field('DELETE')); ?> </form> </li> <?php else: ?> <li class="add-cart-button btn-group"> <button data-toggle="tooltip" onclick="window.location.href='<?php echo e(route('front.product.show', [$product->slug])); ?>'" class="btn btn-primary icon" type="button" title="<?php echo app('translator')->getFromJson('View Details'); ?>"> <i class="fa fa-eye"></i> </button> <button class="btn btn-primary cart-btn" type="button"><?php echo app('translator')->getFromJson('View Details'); ?></button> </li> <?php if(Auth::check()): ?> <?php if(!$product->favouritedBy(Auth::user())): ?> <li class="lnk wishlist"> <a data-toggle="tooltip" class="add-to-cart" href="#" onclick="event.preventDefault(); document.getElementById('product-favourite-form-<?php echo e($product->id); ?>').submit();" title="<?php echo app('translator')->getFromJson('Wishlist'); ?>"> <i class="icon fa fa-heart"></i> </a> <form id="product-favourite-form-<?php echo e($product->id); ?>" class="hidden" action="<?php echo e(route('front.product.favourite.store', $product)); ?>" method="POST"> <?php echo e(csrf_field()); ?> </form> </li> <?php else: ?> <li class="lnk wishlist bg-danger"> <a data-toggle="tooltip" class="add-to-cart" href="<?php echo e(url('/products/wishlist')); ?>" title="Wishlist"> <i class="icon fa fa-heart"></i> </a> </li> <?php endif; ?> <?php endif; ?> <?php endif; ?> </ul> </div> </div>