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

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			Noticia
			<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">Noticia</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/noticia/add')); ?>" class="table-add"><i class="fa fa-plus"></i> Adicionar</a>
						<?php } ?>
						<hr>
					</div>
					<!-- /.box-header -->
					<div class="box-body">

						<table id="list-data-table" class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>ID</th>
									<th>Nome (Preview)</th>
									<?php foreach ($fields_listagem as $field): ?>
										<th><?php echo $field->label; ?></th>
									<?php endforeach ?>
									<th>Publicado</th>
									<th>Data Agendamento</th>
									<th>Categorias</th>
									<th>Ação</th>
								</tr>

							</thead>
							<tbody>
								<?php foreach ($noticias as $item): ?>
									<tr>
										<td><?php echo $item->id; ?></td>
										<td><a href="<?php echo e(url('/vinumteca/preview/' . $item->slug)); ?>" target="_blank" title="Preview"><?php echo $item->nome; ?></a></td>
										<?php foreach ($fields_listagem as $field): ?>
											<?php if(get_class($field) == 'App\CampoModulo'){ ?>
												<?php $campo = $field->nome; ?>
												<td>
													<?php switch ($field->tipo_campo) {
														case 'S':
															$valor = ($item->$campo) ? 'Sim' : 'Não';
															break;
														case 'N':
															$valor = number_format($item->$campo,2,',','.');
															break;
														case 'D':
															$valor = date('d/m/Y',strtotime($item->$campo));
															break;
														case 'DT':
															$valor = date('d/m/Y H:i:s',strtotime($item->$campo));
															break;
														case 'SI':
															$valor = '<i class="fa '.$item->$campo.'"></i>';
															break;
														case 'E':
															$valor = '';
															foreach ($field->options as $campoOption) {
																if($item->$campo == $campoOption->chave){
																	$valor = $campoOption->valor;
																	break;
																}
															}
															break;
														default:
															$valor = $item->$campo;
															break;
													} ?>
													<?php echo $valor; ?>
												</td>
											<?php }else{ ?>
												<td>
													<?php $nomeVariavel = 'fk'.$field->id; ?>
													<?php echo $item->$nomeVariavel; ?>
												</td>
											<?php } ?>
										<?php endforeach ?>
										<td>
											<strong><?php echo $item->publicado == 1 ? 'Sim' : 'Não'; ?></strong>
										</td>
										<td>
											<?php echo !empty($item->data_agendamento) ? date('d/m/Y H:i', strtotime($item->data_agendamento)) : ''?>
										</td>
										<td>
											<?php
											$categorias = [];
											foreach ($item->categorias as $c) {
												$categorias[] = $c->categoria->titulo;
											}
											echo implode(", ", $categorias);
											?>
										</td>
										<td>
											<?php if($current_role->hasAccess($current_module->nome_tabela.'.update')){ ?>
												<a href="/admin/noticia/edit/<?php echo $item->slug; ?>" class="btn btn-primary"><i class="fa fa-pencil-alt"></i></a>
											<?php } ?>
											<?php if($current_role->hasAccess($current_module->nome_tabela.'.delete')){ ?>
												<a href="/admin/noticia/delete/<?php echo $item->slug; ?>" class="btn btn-danger deletar"><i class="fa fa-trash"></i></a>
											<?php } ?>
										</td>
									</tr>
								<?php endforeach ?>
							</tbody>
							<tfoot>
								<tr>
									<th>ID</th>
									<th>Nome (Preview)</th>
									<?php foreach ($fields_listagem as $field): ?>
										<th><?php echo $field->label; ?></th>
									<?php endforeach ?>
									<th>Publicado</th>
									<th>Data Agendamento</th>
									<th>Categorias</th>
									<th>Ação</th>
								</tr>
							</tfoot>
						</table>

					</div>
					<!-- /.box-body -->
					<div class="box-footer">
						<?php if($current_role->hasAccess($current_module->nome_tabela.'.create')){ ?>
							<a href="<?php echo e(url('admin/noticia/add')); ?>" class="table-add"><i class="fa fa-plus"></i> Adicionar</a>
						<?php } ?>
					</div>
				</div>
				<!-- /.box -->
			</div>
			<!-- /.col -->
		</div>
		<!-- /.row -->
	</section>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php $__env->stopSection(); ?>

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

Youez - 2016 - github.com/yon3zu
LinuXploit