MINI MINI MANI MO

Path : /var/www/html/sistemas/saplxi/storage/framework/views/
File Upload :
Current File : /var/www/html/sistemas/saplxi/storage/framework/views/a767a3d1a4f515228bca125ee4c61d4370a05847.php

<?php $__env->startSection('title', 'Diputados - '); ?>

<?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.diputados.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 Diputado</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>Id</span>
                                        </th>
                                        <th>Nombre</th>
                                        <th>Distrito</th>
                                        <th>Partido</th>
                                        <th>Detalles</th>
                                    </tr>
                                </thead>

                                <tbody>

                                    <?php $__currentLoopData = $diputados; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $diputado): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($diputado->id); ?></td>
                                        <td><?php echo e($diputado->completo); ?></td>
                                        <td><?php echo e($diputado->distrito->municipio); ?></td>
                                        <td><?php echo e($diputado->partido->nombre); ?></td>
                                        <td>
                                            <div class="invoice-action">
                                              <a href="<?php echo e(route('mcg.diputados.edit',$diputado->id)); ?>" class="invoice-action-edit">
                                                <i class="material-icons">edit</i>
                                              </a>
                                              <?php echo Form::open(['route' => ['mcg.diputados.destroy', $diputado->id], 'method'=>'DELETE','id' => $diputado->id]); ?>

                                                <a href="javascript:{}" onclick="eliminar(<?php echo e($diputado->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": [[ 1, 'asc' ]]});  
        ///$('select:not(.swal2-select)').formSelect();
        <?php if(session('deleteD') == 'ok'): ?>
            Swal.fire({
                title:  'Eliminado',
                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',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: 'Aceptar'
        }).then((result) => {
            if (result.isConfirmed) {
                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/saplxi/resources/views/Administrador/Diputados/index.blade.php ENDPATH**/ ?>

OHA YOOOO