| 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 if (isset($listaOfertas) && count($listaOfertas) > 0) { ?>
<?php $ofertas_esgotadas = 0; ?>
<?php foreach ($listaOfertas as $objOferta) { ?>
<?php
if($objOferta->estoque <= 0 && $ofertas_esgotadas == $canal->qtde_ofertas_encerradas && empty($objOferta->oferta_reserva)){
continue;
}
?>
<div class="outlet-item">
<div class="overlay">
<a href="<?php echo url('oferta/'.$objOferta->slug); ?>" class="detalhes">Detalhes</a>
<button type="button" class="comprar-modal" data-slug="<?php echo $objOferta->slug; ?>">Comprar</button>
</div>
<?php if($objOferta->percentual_desconto > 0):?>
<span class="ribbon oferta-premium">
<span><?php echo number_format($objOferta->percentual_desconto,0);?>% OFF</span>
</span>
<?php endif;?>
<figure>
<a href="<?php echo url('oferta/'.$objOferta->slug); ?>">
<img class="outlet-item__vinho" src="<?php echo $objOferta->thumbnail_principal; ?>" alt="<?php echo $objOferta->titulo;?> <?php echo $objOferta->sub_titulo;?>">
</a>
</figure>
<h2 class="outlet-item__title"><a href="<?php echo url('oferta/'.$objOferta->slug); ?>"><?php echo $objOferta->titulo;?> <?php echo $objOferta->sub_titulo;?></a></h2>
<div class="outlet-item__absolute-bottom">
<div class="flex-between">
<div class="outlet-item__preco-velho">
<?php if($objOferta->preco_mercado != $objOferta->preco_oferta):?>
R$ <?php echo number_format($objOferta->preco_mercado,2,',','.');?>
<?php endif;?>
</div>
<div class="outlet-item__preco">
R$ <?php echo number_format($objOferta->preco_oferta,2,',','.');?>
</div>
</div>
</div>
</div>
<?php if($objOferta->estoque <= 0 && empty($objOferta->oferta_reserva)){ $ofertas_esgotadas++; } ?>
<?php } // endforeach ?>
<?php }else{ // else first if ?>
<div class="outlet-result">
<p>Nehum produto encontrado!</p>
</div>
<?php } // endif ?>