<?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 style="background-color:rgba(255,215,0,.2);"  
    class="col-lg-10 col-lg-offset-1 container-fluid">

    <div style="padding-left:0px" class="col-lg-max">
         <div class="row" style="">   
            <div class="col-xs-1" style="padding-left:0px;">
               <?php echo Html::image("img/bordereaux.png", 
                    "Imputations", array( 'width'=>'100%',
                        "style"=>"padding:4px" )); ?> 
            </div>


            <div class="col-xs-8" style="padding-left:0px;">
                <h1 style="margin-top:2px;margin-bottom:0px;">
                    Liste des Bordereaux <?php echo $exercice; ?>

                </h1>
            </div>
        </div> 


        <div class="col-md-12">
            <?php if($nb>0): ?>
                <div class="table-responsive">
                    <table id="_table"  style="background-color:white"  
                        class="table table-condensed table-striped table-hover table-bordered">
                        <thead>
                            <tr>
                                <th nowrap width='5%'>N°Bdx</th>
                                <th>Type</th>
                                <th width='10%'>total_clr</th> 
                                <th width='10%'>total_ccpf</th> 
                                <th width='10%'>total_debit</th> 
                                <th width='10%'>total_credit</th>
                                <th width='10%'>nb_societe</th>
                                <th width='10%'>total_assiette</th>
                                <th width='10%'>total_salaries</th>
                                <th width='1%'></th>
                            </tr>
                        </thead>
                        <tbody>

                        <?php for($i=0;$i<$nb;$i++): ?> 
                            <tr>
                                <td ><?php echo $t_bdx['bdx_id'][$i]; ?></td>
                                <td ><?php echo $t_bdx['type'][$i]; ?></td>
                                <td nowrap align="right"><?php echo number_format($t_bdx['total_clr'][$i],0,","," "); ?></td>
                                <td nowrap align="right"><?php echo number_format($t_bdx['total_ccpf'][$i],0,","," "); ?></td>
                                <td nowrap align="right"><?php echo number_format($t_bdx['total_debit'][$i],0,","," "); ?></td>
                                <td nowrap align="right"><?php echo number_format($t_bdx['total_credit'][$i],0,","," "); ?></td>
                                <td nowrap align="right"><?php echo $t_bdx['nb_societe'][$i]; ?></td>
                                <td nowrap align="right"><?php echo number_format($t_bdx['total_assiette'][$i],0,","," "); ?></td>
                                <td nowrap align="right"><?php echo $t_bdx['total_salaries'][$i]; ?></td>
                                <td nowrap align="right">
                                    <a href="<?php echo url('recouvrement/bordereaux')."/".$exercice.'/'.$t_bdx['bdx_id'][$i].'/'.$t_bdx['type'][$i]; ?>" 
                                        class="btn btn-info pull-left" 
                                        target="_blank" style="margin-right: 3px;">
                                        Détail
                                    </a>
                                </td>
                            </tr>
                        <?php endfor; ?>
                        </tbody>
                    </table>
                </div>
            <?php endif; ?>
        </div>
    </div>
 </div>
</body></html>

<script>
$(document).ready(function() {
   $.fn.dataTable.moment('D/M/YYYY');

    var table =$('#_table').dataTable( {
        bAutoWidth: false,
        bPaginate: false,
        bInfo: true,
        bFilter: true,

        deferRender:    true,
        //scrollY:        400,
        scrollCollapse: false,
        scroller:       false,

        iDisplayLength:10,
        oLanguage: {
            "sZeroRecords": "Aucune ligne",
            "sInfo": "Affichage de _START_ &agrave; _END_ sur _TOTAL_ lignes",
            "sInfoEmpty": "Showing 0 to 0 of 0 records",
            "sInfoFiltered": "(sur un total de _MAX_ lignes)",
            "oPaginate": {"sPrevious": "Pr&eacute;c&eacute;dente","sNext": "Suivante"
                ,"sFirst": "Premi&egrave;re","sLast": "Derni&egrave;re"},
                "sSearch":"Chercher ",
            buttons: {
                colvis: 'Colonnes à afficher',
                copy: 'Copier',
                print: 'Imprimer',
                copyTitle: 'Ajouté au presse-papiers',
                copyKeys: 'Appuyez sur <i>ctrl</i> ou <i>\u2318</i> + <i>C</i> pour copier les données du tableau à votre presse-papiers. <br><br>Pour annuler, cliquez sur ce message ou appuyez sur Echap.',
                copySuccess: {
                    _: '%d lignes copiées',
                    1: '1 ligne copiée'
                }
            }

            },
            dom: "<'row'<'col-sm-4 text-left'f><'col-sm-4'><'col-sm-6 text-right'B>>" +
            "<'row'<'col-sm-12'tr>>" +
            "<'row'<'col-sm-5'i><'col-sm-7'p>>",

            buttons: [ 
                {extend: 'copy',exportOptions: {columns: ':visible'} },
                {extend: 'excel',exportOptions: {columns: ':visible'} },
                {extend: 'print',exportOptions: {columns: ':visible'} },
                'colvis'
            ],

        } );

} );
</script>
<?php /**PATH C:\xampp7422\htdocs\sysinfo\cpswf\sipre9\resources\views/recouvrement/suivi/liste_bordereaux_index.blade.php ENDPATH**/ ?>