<div class="share-button" data-controller="components/share-button">
    <?php if(isset($type) && $type == 'square-button'): ?>
        <button class="square-button square-button--outline" data-action="toggle">
            <?php echo $__env->make('frontend.svg.icon-share', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <span><?php echo app('translator')->get('frontend.share'); ?></span>
        </button>
    <?php else: ?>
        <a href="#" class="share-button__open" title="Share..." data-action="toggle"></a>
    <?php endif; ?>
    <div class="share-button__share-box">
        <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo e(empty($shareUrl) ? url()->current() : $shareUrl); ?>" target="_blank" class="share-button__share-icon">
            <?php echo $__env->make('frontend.svg.facebook', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </a>
        <a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo e(empty($shareUrl) ? url()->current() : $shareUrl); ?>" target="_blank" class="share-button__share-icon">
            <?php echo $__env->make('frontend.svg.linkedin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </a>
        <a href="https://twitter.com/share?url=<?php echo e(empty($shareUrl) ? url()->current() : $shareUrl); ?>" target="_blank" class="share-button__share-icon">
            <?php echo $__env->make('frontend.svg.x_twitter', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </a>
        <a href="mailto:?subject=Look at this!&body=Hi, I found this page and thought you might like it <?php echo e(empty($shareUrl) ? url()->current() : $shareUrl); ?>" class="share-button__share-icon">
            <?php echo $__env->make('frontend.templates.icons.email', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </a>
        <div class="share-button__box-tip"></div>
    </div>
</div>
<?php /**PATH /var/www/html-staging/resources/views/frontend/templates/components/share_button_small.blade.php ENDPATH**/ ?>