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

 

Command :


[ Back ]     

Current File : /var/www/html/vinumday2_0/storage/framework/views/ec3affaa84a93d9630dac5d4e0752029872165a4.php
<?php 
$total            = 0; 
$total_quantidade = 0; 
$total_clientes   = 0; 
?>

<?php $__currentLoopData = $pedidos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pedido): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php $total += $pedido->Valor; ?>
    <?php $total_quantidade += $pedido->Qtd; ?>
    <?php $total_clientes += $pedido->Clientes; ?>
<tr>
    <td class="text-center" width="15%"><?php echo e($pedido->EstadoSigla); ?></td>
    <td class="text-center" width="15%"><?php echo e(number_format($pedido->Qtd, 0, ',', '.')); ?></td>
    <td class="text-right" width="20%">R$ <?php echo e(number_format($pedido->Valor, 2, ',', '.')); ?></td>
    <td class="text-center" width="15%"><?php echo e($pedido->Clientes); ?></td>
    <td class="text-center" width="35%">
        <div class="row pedido-estado">
            <div class="col-md-1"></div>
            <div class="col-md-4">
                <select class="form-control empresa-destino" name="empresa-destino">
                    <?php $__currentLoopData = $empresas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $empresa): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($empresa->id == $empresa_id){ continue; }?>
                    <option value="<?php echo e($empresa->id); ?>"><?php echo e($empresa->sigla); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
            <div class="col-md-4">
                <select class="form-control percentual-empresa" name="percentual-empresa">
                    <?php for($p=100;$p>0;$p++): ?>
                    <option value="<?php echo e($p); ?>"><?php echo e($p); ?>%</option>
                    <?php $p -= 11; ?>
                    <?php endfor; ?>
                </select>
            </div>
            <div class="col-md-2">
                <button type="button" data-estado-sigla="<?php echo e($pedido->EstadoSigla); ?>" data-empresa-id="<?php echo e($origem); ?>" class="btn btn-sm btn-primary btn-transferir" style="margin-bottom: 5px;" title="Transferir Marketplace"><i class="fa fa-fw fa-sync"></i>&nbsp; Transferir </button>
            </div>
            <div class="col-md-1"></div>
        </div>
    </td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<tr>
    <td class="text-center"><strong>Total</strong></td>
    <td class="text-center"><strong><?php echo e(number_format($total_quantidade, 0, ',', '.')); ?></strong></td>
    <td class="text-right"><strong>R$ <?php echo e(number_format($total, 2, ',', '.')); ?></strong></td>
    <td class="text-center"><strong><?php echo e(number_format($total_clientes, 0, ',', '.')); ?></strong></td>
    <td></td>
</tr>

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

        $('.btn-transferir').click(function(e){

            console.log('.btn-transferir');

            var $container   = $(this).closest('.pedido-estado');
            var estado_sigla = $(this).data('estado-sigla');
            var origem       = $(this).data('empresa-id');
            var percentual   = $container.find('.percentual-empresa').val();
            var destino      = $container.find('.empresa-destino').val();

            $.ajax({
                url: '/admin/marketplace-transferir',
                type: 'POST',
                data: {estado_sigla: estado_sigla, percentual : percentual, origem : origem, destino : destino},
                beforeSend:function(){
                    $('.carregando').fadeIn();
                },
                success:function(data){
                    $('.carregando').fadeOut();
                    if(data.status){
                        alertUtil.alertSuccess(data.message);
                        setTimeout(function() {
                            listarPedidos();
                        }, 1500);
                    }else{
                        alertUtil.alertError(data.message);
                    }
                },
                error:function(){
                    $('.carregando').fadeOut();
                    alertUtil.alertError('Erro durante transferĂȘncia!');
                }
            });

        });

    });

</script>

Youez - 2016 - github.com/yon3zu
LinuXploit