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/2e2630cea7b8a47a09af2f05302fff53989ea73c.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.sesiones.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 sesión</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>
                                            No. Sesión
                                        </th>
                                        <th>Legislatura</th>
                                        <th>Fecha</th>
                                        <th>Asamblea</th>
                                        <th>Asistencias</th>
                                        <th>Detalles</th>
                                    </tr>
                                    </thead>

                                    <tbody>

                                    <?php $__currentLoopData = $sesiones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($item->sesion); ?></td>
                                            <td><?php echo e($item->legislatura); ?></td>
                                            <td><?php echo e($item->date); ?></td>
                                            <td><?php echo e($item->asamblea); ?></td>
                                            <td>
                                                <?php if(count($item->asistencias)): ?>
                                                    Total asistencias: <?php echo e(count($item->asistencia)); ?><br>
                                                    Total inasistencias justificadas: <?php echo e(count($item->inasistencia)); ?><br>

                                                <?php endif; ?>
                                                <a href="<?php echo e(asset('mcg/sesiones/asistencia/'.base64_encode(base64_encode($item->id)))); ?>"
                                                   class="invoice-action-edit">
                                                    <i class="material-icons">check</i> Capturar asistencia
                                                </a>
                                            </td>
                                            <td>
                                                <div class="invoice-action">
                                                    <a href="<?php echo e(route('mcg.sesiones.edit', base64_encode(base64_encode($item->id)))); ?>"
                                                       class="invoice-action-edit">
                                                        <i class="material-icons">edit</i>
                                                    </a>
                                                    <?php echo Form::open(['route' => ['mcg.sesiones.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']]});
            ///$('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();

                }
            })

        }

        <?php if(session('deleteD') == 'ok'): ?>
        Swal.fire({
            title:  'Eliminado',
            text:  'Registro eliminado correctamente',
            icon: 'success',

        })
        <?php endif; ?>


    </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/sesiones/index.blade.php ENDPATH**/ ?>

OHA YOOOO