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

<script>
	$('.carregando').fadeIn();
</script>

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

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

				<div class="box">
					<div class="box-header">
						
					</div>
					<!-- /.box-header -->
					<div class="box-body">
						<div class="row">
							<div class="col-md-3 col-md-offset-9">
								
							</div>
						</div>
						<table class="table table-bordered table-striped">
							<thead>
								<tr>
									<th class="text-center">ID</th>
									<th class="text-center">Data</th>
									<th>Oferta</th>
									<th class="text-center">Qtd. Produtos</th>
									<th class="text-center">Qtd. Pedidos</th>
									<th class="text-center">Tipo</th>
									<th>Ação</th>
								</tr>
							</thead>
							<tbody>
								<?php $__currentLoopData = $ofertas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<tr>
									<td class="text-center"><?php echo e($item->id); ?></td>
									<td class="text-center"><?php echo date('d/m/Y', strtotime($item->data)); ?></td>
									<td><?php echo e($item->titulo); ?> <?php echo e($item->sub_titulo); ?></td>
									<td class="text-center"><?php echo number_format($item->qtd_produtos, 0, '',''); ?></td>
									<td class="text-center"><?php echo number_format($item->qtd_pedidos, 0, '',''); ?></td>
									<td class="text-center"><?php echo tipo_oferta($item); ?></td>
									<td width="10%">
                                        <button type="button" class="btn btn-primary btn-mover-adega" data-id="<?php echo e($item->id); ?>">Mover para Adega</button>
									</td>
								</tr>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							</tbody>
						</table>
					</div>
					<!-- /.box-body -->
					<div class="box-footer">
						
					</div>
				</div>
				<!-- /.box -->
			</div>
			<!-- /.col -->
		</div>
		<!-- /.row -->
	</section>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>

	$(document).on('click', '.btn-mover-adega', function(e){
		
        if(!confirm('Você tem certeza? Todos pedidos em Pré-Venda serão movidos para Adega')){
            e.preventDefault();
        }else{

            $.ajax({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                },
                url: '/admin/oferta/mover-pedidos-adega/' + $(this).data('id'),
                type: 'POST',
                datayep : 'JSON',
                
                beforeSend:function(){
                    $('.carregando').fadeIn();
                },
                success:function(data){

                    $('.carregando').fadeOut();

                    if (data.status) {
                        alertUtil.alertSuccess(data.message);
                        setTimeout(function(){
                            window.location.href = '/admin/oferta/pre-venda';
                        }, 1500);
                    }else{
                        alertUtil.alertWarning(data.message);
                    }
                }

            });

        }

    });

    $(document).ready(function(){
		$('.carregando').fadeOut();
    });
</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