| Server IP : 54.233.248.239 / 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 : |
<?php $__env->startSection('content'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Instituição
<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">Instituição</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/instituicao/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>
<?php foreach ($fields_listagem as $field): ?>
<th><?php echo $field->label; ?></th>
<?php endforeach ?>
<th class="th-action">Ação</th>
</tr>
</thead>
<tbody>
<?php foreach ($registros as $item): ?>
<tr>
<td><?php echo $item->id; ?></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>
<?php if($current_role->hasAccess($current_module->nome_tabela.'.update')){ ?>
<a href="/admin/instituicao/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/instituicao/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>
<?php foreach ($fields_listagem as $field): ?>
<th><?php echo $field->label; ?></th>
<?php endforeach ?>
<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/instituicao/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(); ?>