403Webshell
Server IP : 54.233.248.239  /  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/dbc900f5480341254f5a399be29df2f793c35bdc.php
<?php $__env->startSection('content'); ?>

    <div class="container">

        <style>
            .tabela.prazo th, td{
                padding: 12px 20px;
            }
            .tabela.prazo td,th{
                border-right: 1px solid black;
                border-bottom: 1px solid black;
            }
            .tabela.prazo tr{
                border-bottom: none;
            }
            .relatorio-pedidos{
                padding: 15px;
            }
        </style>
        
        <!-- Main content -->
        <section class="content" style="margin-bottom: 15px; margin-top: 15px;">
            <div class="row">
                <div class="col-xs-12">

                    <div class="box">
                        <!-- /.box-header -->
                        <div class="box-body relatorio-pedidos">

                            <table class="tabela hide-mobile">
                            <tr>
                                <td width="50%">
                                    <img src="<?php echo e(url('/img/site/footer_logo.png')); ?>">
                                </td>
                                <td width="50%" class="text-right">
                                    <p>
                                        <?php if($ordem->empresa_id == 1): ?>
                                            <strong>Vinum Veritas Comércio e Importação Ltda.</strong> <br>
                                            17.723.844/0001-63 <br>
                                        <?php elseif($ordem->empresa_id == 2): ?>
                                            <strong>VD Comércio de Bebidas Eireli</strong> <br>
                                            31.871.141/0001-03 <br>
                                        <?php elseif($ordem->empresa_id == 4): ?>
                                            <strong>SW Curadoria em Vinhos Eireli</strong> <br>
                                            37.765.580/0001-18 <br>
                                        <?php elseif($ordem->empresa_id == 5): ?>
                                            <strong>Cru Classé Comércio de Bebidas Ltda.</strong> <br>
                                            46.839.814/0001-15 <br>
                                        <?php endif; ?>
                                        (54) 3419.6698 <br>
                                        Olavo Bilac, 61 <br>
                                        Rio Branco, Caxias do Sul - RS <br>
                                        95010-080 <br>
                                        <?php echo ($ordem->empresa_id == 1 ? "029/0572720" : ($ordem->empresa_id == 2 ? "029/0641047" : ($ordem->empresa_id == 4 ? "029/0663210" : "029/0697166"))); ?>
                                    </p>
                                </td>
                            </tr>
                            </table>

                            <table class="tabela hide-desktop">
                            <tr>
                                <td width="100%" class="text-center">
                                    <img src="<?php echo e(url('/img/site/footer_logo.png')); ?>">
                                </td>
                            </tr>
                            <tr>
                                <td width="100%" class="text-center">
                                    <p style="font-size: 12px">
                                        <?php if($ordem->empresa_id == 1): ?>
                                            <strong>Vinum Veritas Comércio e Importação Ltda.</strong> <br>
                                            17.723.844/0001-63 <br>
                                        <?php elseif($ordem->empresa_id == 2): ?>
                                            <strong>VD Comércio de Bebidas Eireli</strong> <br>
                                            31.871.141/0001-03 <br>
                                        <?php elseif($ordem->empresa_id == 4): ?>
                                            <strong>SW Curadoria em Vinhos Eireli</strong> <br>
                                            37.765.580/0001-18 <br>
                                        <?php elseif($ordem->empresa_id == 5): ?>
                                            <strong>Cru Classé Comércio de Bebidas Ltda.</strong> <br>
                                            46.839.814/0001-15 <br>
                                        <?php endif; ?>
                                        (54) 3419.6698 <br>
                                        Olavo Bilac, 61 <br>
                                        Rio Branco, Caxias do Sul - RS <br>
                                        95010-080 <br>
                                        <?php echo ($ordem->empresa_id == 1 ? "029/0572720" : ($ordem->empresa_id == 2 ? "029/0641047" : ($ordem->empresa_id == 4 ? "029/0663210" : "029/0697166"))); ?>
                                    </p>
                                </td>
                            </tr>
                            </table>

                            <table class="tabela">
                                <tr>
                                    <td class="text-center">
                                        <h4>Ordem de Compra Nº <?php echo e($ordem->id); ?></h4>
                                    </td>
                                </tr>
                            </table>

                            <table class="tabela">
                                <tr>
                                    <td class="text-center">
                                        <p><strong>Fornecedor</strong></p>
                                        <div class="hide-desktop">
                                            <p><strong><?php echo e($fornecedor->nome); ?></strong></p>
                                        </div>
                                    </td>
                                </tr>
                            </table>

                            <table class="tabela prazo" style="background: white;border: 1px solid black;">
                                <tr>
                                    <td width="60%" class="hide-mobile">
                                        <p>
                                            <strong><?php echo e($fornecedor->nome); ?></strong>
                                        </p>
                                    </td>
                                    <td width="40%" style="padding: 0px">
                                        <table class="tabela prazo" style="background: white;border: 1px solid black;">
                                        <tr>
                                            <td><strong>Número do pedido</strong></td>
                                            <td><?php echo e($ordem->id); ?></td>
                                        </tr>
                                        <tr>
                                            <td><strong>Data</strong></td>
                                            <td><?php echo e(date('d/m/Y')); ?></td>
                                        </tr>
                                        <tr>
                                            <td><strong>Data Prevista</strong></td>
                                            <td id="data-previsao-entrega">
                                                <?php if(!empty($ordem->previsao_entrega)): ?>
                                                    <?php echo e(date('d/m/Y', strtotime($ordem->previsao_entrega))); ?>

                                                <?php else: ?>
                                                    <div class="ordemcompra__previsaoentrega">
                                                        <input type="date" name="previsao_entrega" id="previsao_entrega" class="default-input" placeholder="" value="">
                                                        <a title="Salvar Previsão de Entrega" id="btn-save-previsao-entrega"><i class="fa fa-save" style="font-size: 24px"></i></a>
                                                    </div>
                                                <?php endif; ?>
                                            </td>
                                        </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>

                            <br>

                            <table class="tabela">
                                <tr>
                                    <td class="text-center">
                                        <p><strong>Itens da Compra</strong></p>
                                    </td>
                                </tr>
                            </table>

                            <br>

                            <table class="tabela prazo" style="background: white;border: 1px solid black;">
                                <tr>
                                    <th>Item</th>
                                    <th>Código (SKU)</th>
                                    <th>Qtde</th>
                                    <th>Un</th>
                                    <th>Valor unitário</th>
                                    <th>IPI %</th>
                                    <th>Valor total</th>
                                </tr>
                                <?php $total_produtos = 0; ?>
                                <?php $__currentLoopData = $ordem->produtos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php $total_produtos += $item->valor_total; ?>
                                <tr>
                                    <td><?php echo e($item->produto->nome); ?></td>
                                    <td><?php echo e($item->produto->sku); ?></td>
                                    <td><?php echo e($item->quantidade); ?></td>
                                    <td>Gr</td>
                                    <td><?php echo e(number_format($item->preco_unitario, 2, ',', '.')); ?></td>
                                    <td>0,00</td>
                                    <td><?php echo e(number_format($item->valor_total, 2, ',', '.')); ?></td>
                                </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td colspan="6" class="text-right">
                                        <p>
                                            <strong>Total de produtos</strong> <br>
                                            <strong>Total do IPI</strong> <br>
                                            <strong>Total do pedido</strong>
                                        </p>
                                    </td>
                                    <td>
                                        <p>
                                            <?php echo e(number_format($total_produtos, 2, ',', '.')); ?> <br>
                                            0,00 <br>
                                            <?php echo e(number_format($total_produtos, 2, ',', '.')); ?>

                                        </p>
                                    </td>
                                </tr>
                            </table>

                            <br>

                            <table class="tabela">
                                <tr>
                                    <td class="text-center">
                                        <p><strong>Observações</strong></p>
                                    </td>
                                </tr>
                            </table>

                            <br>

                            <table class="tabela">
                                <tr>
                                    <td class="text-left" style="border: 1px solid #000">
                                        <p><?php echo e($ordem->observacoes); ?></p>
                                    </td>
                                </tr>
                            </table>

                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->
        </section>
        <!-- /.content -->

    </div>

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

            $('#previsao_entrega').focus();

            $(document).on('click', '#btn-save-previsao-entrega', function(){

                var previsao_entrega = $('#previsao_entrega').val();

                if(previsao_entrega == ''){
                    alertUtil.alertWarning('Preencher campo Data Prevista com Previsão de Entrega');
                }else{

                    $.ajax({
                        url:'/ordem-compra/previsao-entrega/<?php echo $ordem->hashkey?>',
                        type:'POST',
                        data:{
                            previsao_entrega : previsao_entrega
                        },
                        beforeSend:function(){
                            $('.carregando').fadeIn();
                        },
                        success:function(data){
                            $('.carregando').fadeOut();
                            if(data.status){
                                $('#data-previsao-entrega').text(data.previsao_entrega);
                                alertUtil.alertSuccess(data.message);
                            }else{
                                alertUtil.alertWarning(data.message);
                            }
                        }
                    });

                }


            });
        });

    </script>

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

Youez - 2016 - github.com/yon3zu
LinuXploit