| Server IP : 54.233.248.239 / Your IP : 172.28.20.13 Web Server : Apache System : Linux ip-172-28-29-189 6.5.0-1014-aws #14~22.04.1-Ubuntu SMP Thu Feb 15 15:27:06 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.2.34-43+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/vinumday2_0/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?>
<script type="text/javascript">
// $('body').addClass('wear-pdp-body');
$(document).on('ready', function(){
// $('body').addClass('wear-pdp-body');
/** Galeria vertical */
$('.galle-vert').owlCarousel({
items: 3,
loop: false,
nav: true,
margin: 0,
});
$('.owl-carousel-vertical').data('owl.carousel').difference = function(first, second) {
return {
x: first.x - second.x + (first.y - second.y),
y: first.y - second.y
};
};
/** Troca de imagem principal */
$(document).on('click', '.galle-vert .foto', function(){
var $this = $(this);
var src = $this.find('img').attr('src');
var img = $this.data('imagem');
$this.closest('.galle-vert').find('.foto').removeClass('active');
$this.addClass('active');
$('.oferta-foto img').attr('src', src);
$('.oferta-foto img').attr('data-imagem', img);
});
/** Galeria abrir */
$(document).on('click', '.oferta-foto img', function(){
var img = $(this).attr('data-imagem');
$('[data-fancybox="gallery"][data-imagem="' + img + '"]')[0].click();
});
});
</script>
<div class="galeria hidden hidden">
<div class="item">
<a data-fancybox="gallery" data-imagem="1" href="<?php echo e($produto->thumbnail_principal); ?>"><img src="<?php echo e($produto->thumbnail_principal); ?>"></a>
</div>
<?php if(count($produto->listaImagens) > 0): ?>
<?php $__currentLoopData = $produto->listaImagens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $imagem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="item">
<a data-fancybox="gallery" data-imagem="<?php echo $key + 2; ?>" href="<?php echo $imagem->thumbnail_principal; ?>"><img src="<?php echo $imagem->miniatura; ?>"></a>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
<section class="vestuario-content">
<div class="container">
<div class="white-content wear">
<h1 class="titulo hide-desktop"><?php echo e($produto->nome); ?></h1>
<div class="left">
<div class="galle-vert owl-carousel owl-carousel-vertical">
<div class="foto active" data-imagem="1">
<figure>
<img src="<?php echo e($produto->thumbnail_principal); ?>" alt="<?php echo $produto->nome; ?>">
</figure>
</div>
<?php if(count($produto->listaImagens) > 0): ?>
<?php $__currentLoopData = $produto->listaImagens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $imagem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="foto" data-imagem="<?php echo $key + 2; ?>">
<figure>
<img src="<?php echo $imagem->thumbnail_principal; ?>" alt="<?php echo $produto->nome; ?>">
</figure>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
<figure class="img-main">
<div class="oferta-foto">
<img src="<?php echo e($produto->thumbnail_principal); ?>" data-imagem="1" alt="<?php echo e($produto->nome); ?>" <?php echo count($produto->listaImagens) > 1 ? 'style="max-width:90%"' : '';?>>
</div>
</figure>
</div>
<div class="right">
<h1 class="titulo hide-mobile"><?php echo e($produto->nome); ?></h1>
</div>
<div class="bottom">
<h4 class="bottom-tit">Descrição:</h4>
<p class="texto"><?php echo $produto->apresentacao_vinumday; ?></p>
</div>
</div>
</div>
</section>
<div class="spacer"></div>
<?php echo $__env->make('oferta._ofertas-relacionadas', ['ofertasRelacionadas' => $ofertasRelacionadas, 'canaisLiberados' => $canaisLiberados], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<script>
gtag('ec:addProduct', {
'id': '<?php echo $produto->id; ?>',
'name': '<?php echo $produto->nome; ?>',
'category': '<?php echo $produto->tipo->nome; ?>',
'brand': '<?php echo $produto->fornecedor->nome; ?>'
//'variant': 'black'
});
gtag('ec:setAction', 'detail');
gtag('send', 'pageview');
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.website', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>