<?php echo $__env->make('forms.fbncheader', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('forms.fdatatables', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


<div class='col-lg-10 col-lg-offset-1'>

    <h2></i><?php echo $titre; ?></h2>

    <div class='col-xs-8 col-md-offset-1'>
        <h3>Nombre de bénéficiaires</h3>

<div class="row" style="margin-bottom:40px">   
            <div class="col-xs-3">
                <?php echo Form::label('annes', 'Année :' ); ?>

                <?php echo Form::select('exercice',$exercices,$exercice,
                    [
                        'id' => 'exercice_id','class' => 'form-control selectpicker',
                        'data-width' => "100%",'style' => 'font-weight:bold;'
                    ]
                ); ?>

                <script>
                    $(document).ready(function() {
                        $('#exercice_id').on('change', function() {
                            location.href="<?php echo url('/stats/tdb_nbenfant/A/'); ?>/"
                                +$('#exercice_id').val()+"/"+$('#mois_id').val();
                        });
                    });
                </script>
            </div>
            <div class="col-xs-2">
                <?php echo Form::label('mois', 'Mois :' ); ?>

                <?php echo Form::select('mois',$moiss,$mois,
                    [
                        'id' => 'mois_id','class' => 'form-control selectpicker',
                        'data-width' => "100%",'style' => 'font-weight:bold;'
                    ]
                ); ?>

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

        <div class="table-responsive">
            <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 Form::text($t_table[$zone]['nom'].'_'.$ref, $t_table[$zone]["value_".$ref], 
                                    ['placeholder' => '', 'class' => 'form-control', 'readonly']); ?>

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






</div>
<?php /**PATH C:\xampp7422\htdocs\sysinfo\cpswf\sipre9\resources\views/stats/index_tdb_periode.blade.php ENDPATH**/ ?>