<div class="favorite-button m-t-10"> <?php if(Auth::check()): ?> <?php if(!$product->favouritedBy(Auth::user())): ?> <a class="btn btn-primary" onclick="event.preventDefault(); document.getElementById('product-favourite-form').submit();" data-toggle="tooltip" data-placement="right" title="<?php echo app('translator')->getFromJson('Wishlist'); ?>" href="#"> <i class="fa fa-heart"></i> <form id="product-favourite-form" class="hidden" action="<?php echo e(route('front.product.favourite.store', $product)); ?>" method="POST"> <?php echo e(csrf_field()); ?> </form> </a> <?php else: ?> <a class="btn btn-danger" data-toggle="tooltip" data-placement="right" title="<?php echo app('translator')->getFromJson('Wishlist'); ?>" href="<?php echo e(url('/products/wishlist')); ?>"> <i class="fa fa-heart"></i> </a> <?php endif; ?> <?php endif; ?> <?php if(config('settings.social_share_enable')): ?> <a class="btn btn-primary" data-toggle="tooltip" target="_blank" data-placement="right" title="<?php echo app('translator')->getFromJson('Facebook'); ?>" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(urlencode(Request::fullUrl())); ?>"> <i class="fa fa-facebook"></i> </a> <a class="btn btn-primary" data-toggle="tooltip" target="_blank" data-placement="right" title="<?php echo app('translator')->getFromJson('Twitter'); ?>" href="https://twitter.com/intent/tweet?url=<?php echo e(urlencode(Request::fullUrl())); ?>"> <i class="fa fa-twitter"></i> </a> <a class="btn btn-primary" data-toggle="tooltip" target="_blank" data-placement="right" title="<?php echo app('translator')->getFromJson('Google'); ?>" href="https://plus.google.com/share?url=<?php echo e(urlencode(Request::fullUrl())); ?>"> <i class="fa fa-google"></i> </a> <a class="btn btn-primary" data-toggle="tooltip" data-placement="right" title="<?php echo app('translator')->getFromJson('E-mail'); ?>" href="mailto:?subject=<?php echo e($product->name); ?>&amp;body=<?php echo e(Request::fullUrl()); ?>"> <i class="fa fa-envelope"></i> </a> <?php endif; ?> </div>