403Webshell
Server IP : 54.94.228.101  /  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/81fa1844b911a5e902930003372300a7ee8bbd96.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 Canais</li>
		</ol>
	</section>

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

				<div class="box">
					<div class="box-header">
						<?php if($current_role->hasAccess($current_module->nome_tabela.'.create')){ ?>
							<a href="<?php echo e(url('admin/oferta/add')); ?>" class="table-add add-oferta"><i class="fa fa-plus"></i> Adicionar</a>
						<?php } ?>
						<hr>
					</div>
					<!-- /.box-header -->
					<div class="box-body">
						<div class="row">
							<div class="col-md-3 col-md-offset-9">
								<form action="<?php echo url('admin/oferta/canal'); ?>" method="GET">
									<input value="<?php echo (isset($_GET['term'])) ? $_GET['term'] : '' ?>" type="text" name="term"><button class="btn btn-primary">Buscar</button>
								</form>
							</div>
						</div>
						<table class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>ID</th>
									<th>Título</th>
									<th>Subtítulo</th>
									<th>Canal</th>
									<th>Data inicial</th>
									<th>Data final</th>
									<th>Preço Mercado</th>
									<th>Preço Oferta</th>
									<th>Disponibilidade</th>
									<th>Ação</th>
								</tr>
							</thead>
							<tbody>
								<?php foreach ($ofertas as $item): ?>
									<tr>
										<td><?php echo $item->id; ?></td>
										<td><?php echo $item->titulo; ?></td>
										<td><?php echo $item->sub_titulo; ?></td>
										<td><?php echo isset($item->canalHasOferta) ? $item->canalHasOferta->canal->slug : ''; ?></td>
										<td><?php echo isset($item->canalHasOferta) ? date('d/m/Y', strtotime($item->canalHasOferta->data_inicial)) : ''; ?></td>
										<td><?php echo isset($item->canalHasOferta) ? date('d/m/Y', strtotime($item->canalHasOferta->data_final)) : ''; ?></td>
										<td class="text-right">R$ <?php echo number_format($item->preco_mercado,2,',','.'); ?></td>
										<td width="12%" class="text-right">R$ <?php echo number_format($item->preco_oferta,2,',','.'); ?></td>
										<td class="text-center"><?php echo $item->estoque; ?></td>
										<td width="10%">
											<?php if($current_role->hasAccess($current_module->nome_tabela.'.update')){ ?>
												<a data-slug="<?php echo $item->slug; ?>" href="/admin/oferta/edit/<?php echo $item->slug; ?>" class="btn btn-primary open-offer"><i class="fa fa-pencil-alt"></i></a>
											<?php } ?>
											<?php if($current_role->hasAccess($current_module->nome_tabela.'.delete')){ ?>
												<a href="/admin/oferta/delete/<?php echo $item->slug; ?>" class="btn btn-danger deletar"><i class="fa fa-trash"></i></a>
											<?php } ?>
										</td>
									</tr>
								<?php endforeach ?>
							</tbody>
						</table>
						<div class="text-center">
							<?php echo $ofertas->appends(['term' => (isset($_GET['term'])) ? $_GET['term'] : ''])->links(); ?>
						</div>
					</div>
					<!-- /.box-body -->
					<div class="box-footer">
						<?php if($current_role->hasAccess($current_module->nome_tabela.'.create')){ ?>
							<a href="<?php echo e(url('admin/oferta/add')); ?>" class="table-add add-oferta"><i class="fa fa-plus"></i> Adicionar</a>
						<?php } ?>
					</div>
				</div>
				<!-- /.box -->
			</div>
			<!-- /.col -->
		</div>
		<!-- /.row -->
	</section>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->

<div id="modal-evento" class="modal fade">
    <form method="/" id="formEvento" type="POST">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 id="time-label"></h4>
            </div>
            
                <div class="modal-body" id="conteudo-modal-evento">
                    
                    
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Fechar</button>
                </div>
            
        </div>
    </div>
    </form>
</div>
<script>

	$(document).on('click', '.open-offer', function(e){
		e.preventDefault();
        $.ajax({
            url: '/admin/oferta/edit/'+$(this).data('slug'),
            type: 'GET',
            
            beforeSend:function(){
                $('.loading').fadeIn();
            },
            success:function(data){
                $('.loading').fadeOut();
                $('#conteudo-modal-evento').html(data);
                $('#modal-evento').modal('show');
            }
        });
    });

    $(document).on('click', '.add-oferta', function(e){
    	e.preventDefault();
        $.ajax({
            url: 'admin/oferta/add',
            type: 'GET',
            
            beforeSend:function(){
                $('.loading').fadeIn();
            },
            success:function(data){
                $('.loading').fadeOut();
                $('#conteudo-modal-evento').html(data);
                
                if(data.status){    
                    //bf2Util.alertSuccess(data.message);
                    //$('#fullcalendar').fullCalendar('removeEvents', calEvent._id);
                }else{
                    //bf2Util.alertError(data.message);
                }
            }
        });

        $('#modal-evento').modal('show');
    });

    $(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