<?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="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>


<?php if($benef_type=="S"): ?> 
    <div class='col-xs-8 col-md-offset-1'>
        <h3>Nombre de bénéficiaire par nombre d'enfants avec allocations</h3>
        <div class="table-responsive">
            <table id="_table" class="table table-condensed">
                
                <theader>
                    <tr>
                        <th rowspan=2 style='vertical-align:middle'>Zone</th>
                        <th colspan="<?php echo $maxenfant; ?>" style='text-align:center'>Nb Enfants</th>
                    </tr>
                    <tr>

                        <?php for($i=1;$i<=$maxenfant;$i++): ?>
                            <th style='text-align:center'><?php echo $i; ?></th>
                        <?php endfor; ?>
                    </tr>
                </theader>    
                <tbody>
                    <?php $__currentLoopData = $zones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $zone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr class='<?php echo $t_famille[$zone]["classe"]; ?>' style='<?php echo $t_famille[$zone]["style"]; ?>'>
                        <td><?php echo $t_famille[$zone]['nom']; ?></td>
                        <?php for($i=1;$i<=$maxenfant;$i++) { ?>
                            <td class='<?php echo $t_famille[$zone]["classe"]; ?>' style='<?php echo $t_famille[$zone]["style"]; ?>'>
                                <?php echo Form::text($t_famille[$zone]['nom'].'_'.$i, $t_famille[$zone][$i], 
                                    ['placeholder' => '', 'class' => 'form-control', 'readonly']); ?>

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



</div>
<?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre\resources\views/stats/index_tdb.blade.php ENDPATH**/ ?>