| Server IP : 54.233.248.239 / Your IP : 172.28.1.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'); ?>
<section class="banner" data-parallax data-src="<?php echo (isset($tema) && $tema) ? config('filesystems.path') . "/tema/{$tema->thumbnail_principal}" : url('img/site/banner.jpg'); ?>">
<?php if (isset($oferta) && $oferta != ''): ?>
<a href="<?php echo e(url('oferta/'.$oferta->slug)); ?>"><img class="vinho animated fadeInDown <?php echo $oferta->resolucao_imagem ;?>" src="<?php echo (!empty($oferta->thumbnail_principal) ? url($oferta->thumbnail_principal) : ''); ?>" alt="Vinho do Dia"></a>
<div class="box"></div>
<div class="box-action__left bal-<?php echo $oferta->resolucao_imagem ;?>">
<p class="data"><?php echo date('j',strtotime($oferta->data)); ?>/<?php echo strftime('%b',strtotime($oferta->data)); ?></p>
<a href="<?php echo e(url('oferta/'.$oferta->slug)); ?>"><h2 class="nome-oferta1"><?php echo $oferta->titulo; ?></h2></a>
<?php if (isset($oferta->sub_titulo)) { ?>
<a href="<?php echo e(url('oferta/'.$oferta->slug)); ?>"><h2 class="nome-oferta3"><?php echo $oferta->sub_titulo; ?></h2></a>
<?php } ?>
<?php if($oferta->estoque > 0 && $oferta->estoque < $oferta->poucas_unidades){ ?>
<button type="button" class="btn-ultimas-unidades">Últimas Unidades</button>
<?php } ?>
</div>
<?php if (isset($oferta->preco_oferta) && (isset($oferta->preco_mercado))) { ?>
<div class="box-action__right bar-<?php echo $oferta->resolucao_imagem ;?>">
<p class="desconto"><?php echo number_format($oferta->percentual_desconto,0);?>%</p>
<p class="de">de R$ <?php echo number_format($oferta->preco_mercado,2,',','.'); ?></p>
<?php $preco_oferta = explode('.',$oferta->preco_oferta); ?>
<p class="preco">
R$ <span class="numero"><?php echo $preco_oferta[0]; ?></span>,<?php echo $preco_oferta[1] ?>
<input type="hidden" id="quantidade_oferta_by_client" value="<?php echo $oferta->quantidade_maxima_por_cliente; ?>">
</p>
<div class="inline">
<?php if($oferta->estoque && $oferta->estoque > 0){ ?>
<input type="number" id="quantidade_oferta" class="quantidade" value="1">
<button class="btn-comprar add-oferta-dia btn-comprar--disable" disabled="disabled">Comprar</button>
<?php }else{ ?>
<button type="button" class="btn-esgotado">Oferta Esgotada</button>
<?php } ?>
</div>
</div>
<?php } ?>
<?php endif ?>
</section>
<?php if($oferta && count($oferta->produtos) && $oferta->produtos[0]->produto){ ?>
<?php $vinho = $oferta->produtos[0]->produto; ?>
<section class="origem">
<div class="container">
<?php if (count($oferta->produtos) == 1): ?>
<div class="flex-between" style="padding-top: 40px;">
<div class="origem__item">
<img src="<?php echo e(config('filesystems.path') . '/tipo-de-produto/' . $vinho->tipo->thumbnail_principal); ?>" alt="<?php echo $vinho->tipo->nome; ?>">
<div class="texto">
<p class="title">Tipo</p>
<p class="subtitle"><?php echo $vinho->tipo->nome; ?></p>
</div>
</div>
<?php if($vinho->paisOrigem){ ?>
<div class="origem__item">
<img src="uploads/pais/<?php echo $vinho->paisOrigem->thumbnail_principal; ?>" alt="<?php echo $vinho->paisOrigem->nome; ?>">
<div class="texto">
<p class="title">País</p>
<p class="subtitle"><?php echo $vinho->paisOrigem->nome; ?></p>
</div>
</div>
<?php } ?>
<div class="origem__item">
<img src="img/site/safra.svg" alt="Safra">
<div class="texto">
<p class="title">Safra</p>
<p class="subtitle"><?php echo $vinho->caracteristicas->safra; ?></p>
</div>
</div>
<div class="origem__item">
<img src="img/site/teor.svg" alt="Teor Alcoólico">
<div class="texto">
<p class="title">Teor</p>
<p class="subtitle"><?php echo $vinho->caracteristicas->teor_alcoolico; ?></p>
</div>
</div>
</div>
<?php endif ?>
<p class="origem__description hide-mobile <?php echo (count($oferta->produtos) > 1) ? 'padding-combo' : '' ?>"><?php echo formata_tags_texto($oferta->texto); ?></p>
<p class="origem__description hide-desktop <?php echo (count($oferta->produtos) > 1) ? 'padding-combo' : '' ?>">
<?php echo substr(formata_tags_texto($oferta->texto),0,655); ?><span id="ler-mais">... <a class="ler-mais">ler mais</a></span><span class="ler-mais-hidden"><?php echo substr(formata_tags_texto($oferta->texto),655,strlen(formata_tags_texto($oferta->texto))) ?></span>
<script>
$(document).ready(function(){
$('#ler-mais').click(function(){
$(this).fadeOut();
setTimeout(function(){ $('.ler-mais-hidden').fadeIn(); }, 500);
});
})
</script>
</p>
<?php if($oferta->estoque && $oferta->estoque > 0){ ?>
<p class="quero-na-minha-adega">
<button class="btn-comprar add-oferta-dia btn-comprar--disable" disabled="disabled">QUERO NA MINHA ADEGA!</button>
</p>
<?php }?>
<?php if(isset($oferta->url_video) && !empty($oferta->url_video)): ?>
<div class="video-box">
<h3 class="title">Assista ao vídeo</h3>
<div class="video-embed">
<iframe src="<?php echo e($oferta->url_video); ?>" frameborder="0"></iframe>
</div>
</div>
<?php endif; ?>
<a class="ver-ficha-completa" href="<?php echo url('oferta/'.$oferta->slug); ?>"><i class="fa fa-plus fa-fw"></i>VER FICHA TÉCNICA COMPLETA</a>
</div>
</section>
<?php } ?>
<section class="como-funciona">
<div class="container">
<img src="<?php echo url('img/site/como-funciona_logo.png'); ?>" alt="Como Funciona" class="como-funciona__logo">
<h2 class="como-funciona__como">como</h2>
<h2 class="como-funciona__funciona">funciona</h2>
<div class="flex-container">
<div class="como-funciona__item">
<img src="img/site/vinho-grey-icon.png" alt="Icone Cinza Vinho" class="imagem">
<h2 class="title">Um por dia</h2>
<p class="description">
A cada dia oferecemos um vinho por um preço super especial (em 99% dos casos é o melhor preço que você irá encontrar no mercado online).
</p>
</div>
<div class="como-funciona__item">
<img src="img/site/adega-grey-icon.png" alt="Icone Cinza Adega" class="imagem">
<h2 class="title">Adega Virtual</h2>
<p class="description">
Todas as compras que você realiza na VinumDay são enviadas para a sua adega virtual. Esse sistema exclusivo lhe permite acumular compras feitas em datas diferentes para obter frete reduzido ou gratuito.
</p>
</div>
<div class="como-funciona__item">
<img src="img/site/frete-grey-icon.png" alt="Icone Cinza Frete" class="imagem">
<h2 class="title">Frete Grátis</h2>
<p class="description">
Ao acumular compras na adega virtual acima de um determinado valor (que
varia de R$ 400 a R$ 800 - dependendo da sua região) você pode solicitar a entrega com frete
gratuito.
</p>
</div>
<div class="como-funciona__item">
<img src="img/site/cartoes-grey-icon.png" alt="Icone Cinza Cartoes" class="imagem">
<h2 class="title">Pagamento</h2>
<p class="description">
O pagamento pode ser realizado através de cartão de crédito ou então via
depósito bancário/DOC/TED.
</p>
</div>
</div>
</div>
</section>
<div class="spacer"></div>
<?php if(isset($ofertasRelacionadas) && isset($canaisLiberados)): ?>
<?php echo $__env->make('oferta.ofertas-relacionadas', ['ofertasRelacionadas' => $ofertasRelacionadas, 'canaisLiberados' => $canaisLiberados, 'veja_tambem' => FALSE, 'top' => '70px', 'align' => 'space-between'], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php endif; ?>
<section class="quem-passou-aqui">
<?php echo $htmlPassouAqui; ?>
</section>
<section class="banner-dinamico">
<img class="banner-dinamico__background" src="<?php echo url('uploads/banner-footer/'.$bannerFooter->thumbnail_principal); ?>" alt="<?php echo $bannerFooter->nome; ?>">
<img src="<?php echo url('img/site/como-funciona_logo.png'); ?>" alt="Logo VinumDay" class="banner-dinamico__logo">
<h2 class="banner-dinamico__title">
<?php echo $bannerFooter->nome; ?>
</h2>
<p class="banner-dinamico__compartilhe">
<i class="fa-fa-thumbs-up-o fa-fw"></i>
Compartilhe com seus amigos
</p>
</section>
<script>
$(document).on('click', '.add-cart', function(){
var id = $(this).data('oferta');
var quantidade = $(this).closest('.outlet-item').find('.quantidade').val();
var quantidade_by_client = $(this).closest('.outlet-item').find('.quantidade_by_client').val();
if(parseInt(quantidade) > parseInt(quantidade_by_client)){
alertUtil.alertError('Esta oferta possui um limite máximo de ' + quantidade_by_client + ' gr. por cliente.');
}else{
$.ajax({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
url:'/add-oferta-cart',
type:'POST',
data:{
oferta_id: id,
quantidade: quantidade
},
beforeSend:function(){
//$('.carregando').fadeIn();
},
success:function(data){
if(data.status){
//reloadListagem();
$('#listagem-cart').html(data.html);
$('#cart-empty').addClass('hidden');
$('#cart-section').removeClass('hidden');
$('#pagamento-section').removeClass('hidden');
$('[name="parcelas"]').html(data.parcelas);
alertUtil.alertSuccess(data.message);
reloadCart();
}else{
alertUtil.alertError(data.message);
}
//$('.carregando').fadeOut();
}
});
}
});
</script>
<?php if($cadastroSuccess){ ?>
<script>
$(document).ready(function(){
alertUtil.alertSuccess('Cadastro realizado com sucesso!');
});
</script>
<script>
fbq('track', 'CompleteRegistration');
</script>
<?php } ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.website', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>