@include('forms.fbncheader_nomenu')
@include('forms.fdatatables')



<div class="col-lg-max col-lg-offset-1">
    <h2><i class="fa fa-employeurs"></i><small>Versements de l'Employeur </small>{!! $employeur->nom !!}</h2>
    <br/>
    <div class="table-responsive">
        <table id="_table" class="table table-condensed table-striped table-bordered">
            <thead>
                <tr>
                        <th width='1%'>benum</th>
                        <th width='1%'>nom</th>
                        <th >nb_enfants_avant_2018</th>
                        <th width='5%'>nb_enfants_2018</th> 
                        <th width='1%'>mois_naiss_2018</th>
                        <th width='1%'>montant_anciencalcul</th>
                        <th width='1%'>rappel_2018</th>
                        <th width='120px'>total</th>
                </tr>
            </thead>
 
            <tbody>
                @foreach ($t_benef as $t_value)
                <tr>
                    <td>{!! $t_value['benum'] !!}</td>
                    <td>{!! $t_value['benum'] !!}</td>
                    <td>{!! $t_value['benum'] !!}</td>
                    <td>{!! $t_value['benum'] !!}</td>
                    <td>{!! $t_value['benum'] !!}</td>
                    <td>{!! $t_value['benum'] !!}</td>
                    <td>{!! $t_value['benum'] !!}</td>
                </tr>
                @endforeach
            </tbody>
 
        </table>
    </div>

@if($user->can("COT_AJO") || $user->HasRole("ADMINISTRATEUR"))
     <div>
        <h4><a href="{!! url('recouvrement/versement_annee/'.$employeur->id) !!}" 
            class="btn btn-success"
            target="_blank">Gestion des Versements</a></h4>
    </div> 
@endif

</div>

</body></html>


<script>
$(document).ready(function() {
    $('#_table').dataTable( {
        "bAutoWidth": false,
        "bPaginate": false,
        "bInfo": true,
        "bFilter": true,
        "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)",
             "sSearch":"Chercher",
            },

        "order": [[ 1, "desc" ]]

        } );
</script>