MINI MINI MANI MO
<?php $__env->startSection('title', 'MCG - Gaceta'); ?>
<?php $__env->startSection('vendor-style'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('vendors/data-tables/css/jquery.dataTables.min.css')); ?>">
<link rel="stylesheet" type="text/css"
href="<?php echo e(asset('vendors/data-tables/extensions/responsive/css/responsive.dataTables.min.css')); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('vendors/data-tables/css/select.dataTables.min.css')); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('vendors/sweetalert/sweetalert.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-style'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('css/pages/app-invoice.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- invoice list -->
<section class="invoice-list-wrapper section">
<!-- create invoice button-->
<!-- Options and filter dropdown button-->
<div class="seaction">
<div class="row">
<div class="col s12 m12 l12">
<div id="button-trigger2" class="card card card-default scrollspy">
<div class="card-content">
<!-- create invoice button-->
<div class="invoice-create-btn">
<a href="<?php echo e(route('mcg.gaceta.create')); ?>"
class="btn waves-effect waves-light invoice-create border-round z-depth-4">
<i class="material-icons">add</i>
<span class="hide-on-small-only">Registrar Iniciativa</span>
</a>
</div>
<br>
<div class="responsive-table">
<table class="table invoice-data-table white border-radius-4 pt-1" id="tableservicios">
<thead>
<tr>
<th>
<span>#</span>
</th>
<th>Fecha</th>
<th>Número</th>
<th>Documento</th>
<th>Opciones</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($key+1); ?></td>
<td><?php echo e($item->date); ?></td>
<td><?php echo e($item->numero); ?></td>
<td><a href="<?php echo e(asset("storage/documentos/gaceta/".$item->documento)); ?>"><i class="material-icons">visibility</i></a></td>
<td>
<div class="invoice-action">
<a href="<?php echo e(route('mcg.gaceta.edit',base64_encode(base64_encode($item->id)))); ?>"
class="invoice-action-edit">
<i class="material-icons">edit</i>
</a>
<?php echo Form::open(['route' => ['mcg.gaceta.destroy', base64_encode(base64_encode($item->id))], 'method'=>'DELETE','id' => base64_encode(base64_encode($item->id))]); ?>
<a href="javascript:{}"
onclick="eliminar('<?php echo e(base64_encode(base64_encode($item->id))); ?>')"><i
class="material-icons">delete</i></a>
<?php echo Form::close(); ?>
</div>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('vendor-script'); ?>
<script src="<?php echo e(asset('vendors/data-tables/js/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('vendors/data-tables/extensions/responsive/js/dataTables.responsive.min.js')); ?>"></script>
<script src="<?php echo e(asset('vendors/data-tables/js/dataTables.select.min.js')); ?>"></script>
<script src="<?php echo e(asset('vendors/sweetalert/sweetalert.min.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page-script'); ?>
<script>
$(document).ready(function () {
$("#tableservicios").dataTable().fnDestroy();
$('#tableservicios').DataTable({
language: datatable_esp,
"ordering": true,
"order": [[0, 'desc']],
"columnDefs": [
{"width": "20%", "targets": 4}
]
});
<?php if(session('delete') == 'ok'): ?>
Swal.fire({
title: 'Operación exitosa',
text: 'Registro eliminado correctamente',
icon: 'success',
})
<?php endif; ?>
});
function eliminar(id) {
Swal.fire({
title: "¿Está seguro?",
text: "Al oprimir el botón de aceptar se eliminará el registro",
icon: 'warning',
buttons: {
cancel: true,
delete: 'Aceptar'
}
}).then(function (willDelete) {
if (willDelete) {
document.getElementById(id).submit();
}
});
}
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('../Administrador/layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/legislaedomex/public_html/legislativoedomex/resources/views/Administrador/gaceta/index.blade.php ENDPATH**/ ?>
OHA YOOOO