Viewing file: 285f63005ef6b75622073cac755c3699.php (14.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="details-footer p-6"> <h2 class="text-gray-900 dark:text-white text-lg font-medium mb-2"><?php echo e(__('share_ads')); ?>:</h2> <div x-data="{ copyText: '<?php echo e(url()->current()); ?>', copyNotification: false, copyToClipboard() { navigator.clipboard.writeText(this.copyText); this.copyNotification = true; let that = this; setTimeout(function() { that.copyNotification = false; }, 3000); } }">
<div class="input-group mb-3"> <input type="text" class="tc-input" x-model="copyText" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="button-addon2"> <button @click="copyToClipboard();" class="btn btn-outline-secondary py-3 px-6 rounded-md bg-gray-100 hover:bg-gray-200 transition-all duration-300" type="button" id="button-addon2"> <span x-show="!copyNotification" x-cloak><?php echo e(__('copy')); ?></span> <span x-show="copyNotification" x-cloak>✓ <?php echo e(__('copied')); ?></span> </button>
</div>
</div>
<div class="flex flex-wrap gap-3 items-center"> <!-- <span>Share ad</span> --> <ul class="flex flex-wrap gap-2 items-center"> <li> <a href="javascript:void(0);" onclick="openPopUp('<?php echo e(socialMediaShareLinks(url()->current(), 'whatsapp')); ?>')" class="btn-social"> <?php if (isset($component)) { $__componentOriginalc1a50ae9d99329e7d16af928a58af8ea = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc1a50ae9d99329e7d16af928a58af8ea = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.whatsapp-icon','data' => ['fill' => '#555B61']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.whatsapp-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['fill' => '#555B61']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc1a50ae9d99329e7d16af928a58af8ea)): ?> <?php $attributes = $__attributesOriginalc1a50ae9d99329e7d16af928a58af8ea; ?> <?php unset($__attributesOriginalc1a50ae9d99329e7d16af928a58af8ea); ?> <?php endif; ?> <?php if (isset($__componentOriginalc1a50ae9d99329e7d16af928a58af8ea)): ?> <?php $component = $__componentOriginalc1a50ae9d99329e7d16af928a58af8ea; ?> <?php unset($__componentOriginalc1a50ae9d99329e7d16af928a58af8ea); ?> <?php endif; ?> </a> </li> <li> <a href="javascript:void(0);" onclick="openPopUp('<?php echo e(socialMediaShareLinks(url()->current(), 'facebook')); ?>')" class="btn-social"> <?php if (isset($component)) { $__componentOriginaladf8d905a87cf139c4f14915e1eb2834 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginaladf8d905a87cf139c4f14915e1eb2834 = $attributes; } ?> <?php $component = App\View\Components\Svg\FacebookIcon::resolve(['fill' => '#555B61'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.facebook-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Svg\FacebookIcon::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginaladf8d905a87cf139c4f14915e1eb2834)): ?> <?php $attributes = $__attributesOriginaladf8d905a87cf139c4f14915e1eb2834; ?> <?php unset($__attributesOriginaladf8d905a87cf139c4f14915e1eb2834); ?> <?php endif; ?> <?php if (isset($__componentOriginaladf8d905a87cf139c4f14915e1eb2834)): ?> <?php $component = $__componentOriginaladf8d905a87cf139c4f14915e1eb2834; ?> <?php unset($__componentOriginaladf8d905a87cf139c4f14915e1eb2834); ?> <?php endif; ?> </a> </li> <li> <a href="javascript:void(0);" onclick="openPopUp('<?php echo e(socialMediaShareLinks(url()->current(), 'twitter')); ?>')" class="btn-social"> <?php if (isset($component)) { $__componentOriginalfd96a379163ede1ee9cee0a002b923b3 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalfd96a379163ede1ee9cee0a002b923b3 = $attributes; } ?> <?php $component = App\View\Components\Svg\TwitterIcon::resolve(['fill' => '#555B61'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.twitter-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Svg\TwitterIcon::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalfd96a379163ede1ee9cee0a002b923b3)): ?> <?php $attributes = $__attributesOriginalfd96a379163ede1ee9cee0a002b923b3; ?> <?php unset($__attributesOriginalfd96a379163ede1ee9cee0a002b923b3); ?> <?php endif; ?> <?php if (isset($__componentOriginalfd96a379163ede1ee9cee0a002b923b3)): ?> <?php $component = $__componentOriginalfd96a379163ede1ee9cee0a002b923b3; ?> <?php unset($__componentOriginalfd96a379163ede1ee9cee0a002b923b3); ?> <?php endif; ?> </a> </li> <li> <a href="javascript:void(0);" onclick="openPopUp('<?php echo e(socialMediaShareLinks(url()->current(), 'linkedin')); ?>')" class="btn-social"> <?php if (isset($component)) { $__componentOriginal12b43f7f7c39513567e6141a5b993d04 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal12b43f7f7c39513567e6141a5b993d04 = $attributes; } ?> <?php $component = App\View\Components\Svg\LinkedinIcon::resolve(['fill' => '#555B61'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.linkedin-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Svg\LinkedinIcon::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal12b43f7f7c39513567e6141a5b993d04)): ?> <?php $attributes = $__attributesOriginal12b43f7f7c39513567e6141a5b993d04; ?> <?php unset($__attributesOriginal12b43f7f7c39513567e6141a5b993d04); ?> <?php endif; ?> <?php if (isset($__componentOriginal12b43f7f7c39513567e6141a5b993d04)): ?> <?php $component = $__componentOriginal12b43f7f7c39513567e6141a5b993d04; ?> <?php unset($__componentOriginal12b43f7f7c39513567e6141a5b993d04); ?> <?php endif; ?> </a> </li> <li> <a href="javascript:void(0);" onclick="openPopUp('<?php echo e(socialMediaShareLinks(url()->current(), 'gmail')); ?>')" class="btn-social"> <?php if (isset($component)) { $__componentOriginal65631cd207c9eb2bb852091a649dbb63 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal65631cd207c9eb2bb852091a649dbb63 = $attributes; } ?> <?php $component = App\View\Components\Svg\EnvelopeIcon::resolve(['fill' => '#555B61'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.envelope-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Svg\EnvelopeIcon::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal65631cd207c9eb2bb852091a649dbb63)): ?> <?php $attributes = $__attributesOriginal65631cd207c9eb2bb852091a649dbb63; ?> <?php unset($__attributesOriginal65631cd207c9eb2bb852091a649dbb63); ?> <?php endif; ?> <?php if (isset($__componentOriginal65631cd207c9eb2bb852091a649dbb63)): ?> <?php $component = $__componentOriginal65631cd207c9eb2bb852091a649dbb63; ?> <?php unset($__componentOriginal65631cd207c9eb2bb852091a649dbb63); ?> <?php endif; ?> </a> </li> <li> <a href="javascript:void(0);" onclick="openPopUp('<?php echo e(socialMediaShareLinks(url()->current(), 'skype')); ?>')" class="btn-social"> <?php if (isset($component)) { $__componentOriginal3b5a42ba91b61a17c5190c1e3633a710 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3b5a42ba91b61a17c5190c1e3633a710 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.skype-icon','data' => ['fill' => '#555B61']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.skype-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['fill' => '#555B61']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal3b5a42ba91b61a17c5190c1e3633a710)): ?> <?php $attributes = $__attributesOriginal3b5a42ba91b61a17c5190c1e3633a710; ?> <?php unset($__attributesOriginal3b5a42ba91b61a17c5190c1e3633a710); ?> <?php endif; ?> <?php if (isset($__componentOriginal3b5a42ba91b61a17c5190c1e3633a710)): ?> <?php $component = $__componentOriginal3b5a42ba91b61a17c5190c1e3633a710; ?> <?php unset($__componentOriginal3b5a42ba91b61a17c5190c1e3633a710); ?> <?php endif; ?> </a> </li> <li> <a href="javascript:void(0);" onclick="openPopUp('<?php echo e(socialMediaShareLinks(url()->current(), 'telegram')); ?>')" class="btn-social"> <?php if (isset($component)) { $__componentOriginal463509b2fcf781f29ae2db7f21948bf7 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal463509b2fcf781f29ae2db7f21948bf7 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.telegram-icon','data' => ['fill' => '#555B61']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.telegram-icon'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['fill' => '#555B61']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal463509b2fcf781f29ae2db7f21948bf7)): ?> <?php $attributes = $__attributesOriginal463509b2fcf781f29ae2db7f21948bf7; ?> <?php unset($__attributesOriginal463509b2fcf781f29ae2db7f21948bf7); ?> <?php endif; ?> <?php if (isset($__componentOriginal463509b2fcf781f29ae2db7f21948bf7)): ?> <?php $component = $__componentOriginal463509b2fcf781f29ae2db7f21948bf7; ?> <?php unset($__componentOriginal463509b2fcf781f29ae2db7f21948bf7); ?> <?php endif; ?> </a> </li>
</ul> </div> </div>
<?php $__env->startPush('css'); ?> <style> .tc-input { width: 30% !important; } </style> <?php $__env->stopPush(); ?>
<?php $__env->startPush('js'); ?> <script> function openPopUp(link) { var popupWidth = 600; var popupHeight = 400;
var left = (window.innerWidth - popupWidth) / 2 + window.screenX; var top = (window.innerHeight - popupHeight) / 2 + window.screenY;
window.open(link, 'popup', 'width=' + popupWidth + ',height=' + popupHeight + ',left=' + left + ',top=' + top); } </script> <?php $__env->stopPush(); ?> <?php /**PATH E:\add listing 8-9-25\addListing\resources\views/components/frontend/ad-card/details/footer.blade.php ENDPATH**/ ?>
|