
<?php $__env->startSection('title'); ?> Analyses <?php $__env->stopSection(); ?>
<?php $__env->startSection('title_card',""); ?>
<?php $__env->startSection('subtitle_card',""); ?>


<?php $__env->startSection('content'); ?>
    <div class="col-lg-12">
        <div class="card">
            <div class="card-header bg-info">
                <?php echo $titre; ?>

                <div class="card-tools">
                    <button type="button" class="btn btn-tool" data-card-widget="collapse">
                        <i class="fas fa-minus"></i>
                    </button>
                    <button type="button" class="btn btn-tool" data-card-widget="remove">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
            </div>
            <div class="card-body ">
                <h3>Nombre de bénéficiaires</h3>
                <div class="row  form-group" style="margin-bottom:40px">   
                    <div class="col-md-2">
                        <?php echo html()->label( 'Année :','annes' ); ?>

                        <?php echo html()->select('exercice',$exercices,$exercice)->attributes(['id' => 'exercice_id','class' => 'form-control']); ?>


                    </div>
                    <div class="col-xs-2">
                        <?php echo html()->label( 'Mois :','mois' ); ?>

                        <?php echo html()->select('mois',$moiss,$mois)->attributes([
                                'id' => 'mois_id','class' => 'form-control']); ?>

                    </div>
                </div>

                <div class="row">  
                    <table id="_table" class="table table-condensed">
                        <tbody>
                            <th></th>
                            <?php $__currentLoopData = $t_header; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ref=>$libelle): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <th><?php echo $libelle; ?></th>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                            <?php $__currentLoopData = $zones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $zone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr  class='<?php echo $t_table[$zone]["classe"]; ?>'  style='<?php echo $t_table[$zone]["style"]; ?>'>
                                <td><?php echo $t_table[$zone]['nom']; ?></td>
                                <?php foreach($t_header as $ref=>$libelle) { ?>
                                    <td class='<?php echo $t_table[$zone]["classe_".$ref]; ?>'  style='<?php echo $t_table[$zone]["style_".$ref]; ?>'>
                                        <?php echo html()->text($t_table[$zone]['nom'].'_'.$ref, $t_table[$zone]["value_".$ref])->attributes(['placeholder' => '', 'class' => 'form-control', 'readonly']); ?>

                                    </td>
                                <?php } ?>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>




<?php $__env->startSection('scripts'); ?>
    <script>
        $(document).ready(function() {
            $('#exercice_id').on('change', function() {
                location.href="<?php echo url('/stats/tdb_nbenfant/A/'); ?>/"
                    +$('#exercice_id').val()+"/"+$('#mois_id').val();
            });


            $('#mois_id').on('change', function() {
                location.href="<?php echo url('/stats/tdb_nbenfant/A/'); ?>/"
                    +$('#exercice_id').val()+"/"+$('#mois_id').val();
            });
        });
    </script>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.dash', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/stats/index_tdb_periode.blade.php ENDPATH**/ ?>