

<?php $__env->startSection('title'); ?>
All Balloting Map Files 
<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumb'); ?>
<ol class="breadcrumb pull-right">
        <li><a href="<?php echo e(route('home')); ?>"><i class="fa fa-dashboard"></i> Home</a></li>

        <li class="active">All Balloting Map Files</li>
      </ol>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('css'); ?>
<style type="text/css">
    .bg-color{
        background-color: #1c3752;
    }
    
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>


            <div class="container-fluid">
                <!-- /row -->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="white-box">
                        	<div class="pull-right">
                                
							</div>
                            <h3 class="box-title">File Detail</h3>

                            <div class="table-responsive">
                                

                                <table id="myTable" class="table table-bordered table-hover">
                                    <thead class="bg-color"> 
                                        <tr style="text-align: center">
                                            <?php for($i=0; $i < sizeof($data[1]);$i++): ?>
                                                
                                                <th style="color: #fff;font-size: 13px;"><?php echo e($data[0][$i]); ?></th>
                                                  
                                                <?php endfor; ?>
                                        </tr>
                                         
                                    </thead>
                                    <tbody>
                                        

                                        <?php for($i=1; $i < sizeof($data);$i++): ?>
                                        <tr>
                                          <?php for($j=0; $j < sizeof($data[$i]);$j++): ?>
                                       
                                            <td>
                                                <?php echo e($data[$i][$j]); ?>

                                            </td>

                                       
                                          <?php endfor; ?>
                                        </tr>
                                          <?php endfor; ?>

                                    </tbody>
                                     
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /.row -->
              </div>
            <!-- /.container-fluid -->

<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>
<script>
    $(function() {
        // $('#myTable').DataTable({

        //     "displayLength": 25000,
        // });

        var table = $('#example').DataTable({
            "columnDefs": [{
                "visible": false,
                "targets": 2
            }],
            "order": [
                [2, 'asc']
            ],
            "displayLength": 25,
            "drawCallback": function(settings) {
                var api = this.api();
                var rows = api.rows({
                    page: 'current'
                }).nodes();
                var last = null;
                api.column(2, {
                    page: 'current'
                }).data().each(function(group, i) {
                    if (last !== group) {
                        $(rows).eq(i).before('<tr class="group"><td colspan="5">' + group + '</td></tr>');
                        last = group;
                    }
                });
            }
        });
        // Order by the grouping
        $('#example tbody').on('click', 'tr.group', function() {
            var currentOrder = table.order()[0];
            if (currentOrder[0] === 2 && currentOrder[1] === 'asc') {
                table.order([2, 'desc']).draw();
            } else {
                table.order([2, 'asc']).draw();
            }
        });
    });
    $('#example23').DataTable({
        dom: 'Bfrtip',
        buttons: [
            'copy', 'csv', 'excel', 'pdf', 'print'
        ]
    });
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\erpv7\resources\views/balloting/setting/view.blade.php ENDPATH**/ ?>