| 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'); ?>
<?php echo $__env->make('perfil/menu-lateral', ['configMenuLateral' => $configMenuLateral], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div class="minha-conta__right">
<div class="box">
<h2 class="title">Meus Cupons</h2>
<?php if(count($cupons)){ ?>
<?php $tamanho = count($cupons); ?>
<?php foreach ($cupons as $key => $cupom): ?>
<table class="tabela pagamento-item" data-pagamento="<?php echo $cupom->id; ?>">
<?php if ($key == 0): ?>
<tr>
<th class="">Código</th>
<th class="text-center">Validade</th>
<th class="text-center">Desconto</th>
<th class="text-center">Uso</th>
</tr>
<?php endif ?>
<tr style="<?php echo 'border-top:2px solid #e1e1e1;'; ?>">
<td class="" width="30%"><?php echo $cupom->codigo; ?></td>
<td class="text-center" width="20%">
<?php if($cupom->codigo == env('CUPOM_SOCIOS', 'VINUMOFF')): ?>
<p class="green">Vitalício</p>
<?php else: ?>
<?php echo strtoupper(strftime('%d %b %y', strtotime($cupom->data_de_expiracao))); ?>
<?php endif; ?>
</td>
<td class="text-center" width="30%">
<?php $desconto = ($cupom['percentual_desconto'] > 0 ? "{$cupom->percentual_desconto}%" : "R$ " . number_format($cupom->valor_desconto, 2, ',', '.')); ?>
<?php echo ($cupom->codigo == env('CUPOM_SOCIOS', 'VINUMOFF') ? 'Custo Efetivo' : $desconto); ?>
</td>
<td class="text-center" width="20%">
<?php
$uso = '<p class="green">Disponível</p>';
if(!empty($cupom->uso)){
$uso = $cupom->uso;
}elseif(date('Y-m-d') > $cupom->data_de_expiracao){
$uso = '<p class="red">Expirado</p>';
}
echo ($cupom->codigo == env('CUPOM_SOCIOS', 'VINUMOFF') ? '<p class="green">Disponível</p>' : $uso);
?>
</td>
</tr>
</table>
<div class="detalhes-pagamento">
</div>
<?php endforeach ?>
<?php echo $cupons->render(); ?>
<?php }else{ ?>
<div class="spacer">
<h4><i>Você não possui cupons.</i></h4>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.website', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>