

        <div class="form-group row">
            <div class="col-md-12">
                <div class="form-group row">
                    <div class='col-md-4'>
                        {!! html()->label( 'Référence : ','releve_ref') !!}
                        {!! html()->text('releve_ref', '', ['class' => 'form-control']) !!}
                    </div>
                </div>
            </div>


        </div>



<table id="_table" class="table table-striped table-hover dataTable dtr-inline" role="grid">
    <thead>
        <tr>
            <th width="1px" nowrap>Sel.
                <input id="box_all" class="form-control" name="sel" type="checkbox" value="1" onchange='select_all();'>
            </th>
            <th width='1%' title="Numéro du règlement">IdReg.</th>
            <th >Créancier</th>
            <th >Compte Aux.</th>
            <th >Compte Enc.</th>
            <th >Date</th>
            <th >DateEncaiss.</th>
            <th >Designation</th>
            <th width='1%'>Montant</th>
            <th width='1%'>Bord</th>
            <th width='1%'>TypeOpe.</th>
        </tr>
    </thead>

    <tbody>
        @foreach ($t_lignes as $reglement)
        @php
            $libelle_compt_enc=$reglement->LibellCompteEnc;
        @endphp
        <tr>
            <td style='margin:0px'>
                @if($libelle_compt_enc && $reglement->CompteAuxEmployeur)
                    <input id="box_{!! $reglement->id !!}" class="form-control" name="box_{!! $reglement->id !!}" type="checkbox" value="1" onchange='calcul_select();'>
                @endif
            </td>
            <td nowrap>{!! $reglement->id !!}</td>
            <td><a href="{{ url('/employeurs').'/'.$reglement->sonum }}" target="_blank">{!! $reglement->NomEmployeur !!}</a></td>
            <td>
                @if($reglement->CompteAuxEmployeur)
                    &nbsp;{!! $reglement->CompteAuxEmployeur !!}
                @else
                    <span class="right badge badge-danger">Compte innexistant</span>
                @endif
            </td>
            <td nowrap>
                {!! $reglement->encais_compte !!}
                @if($libelle_compt_enc!="")
                    &nbsp;{!! $libelle_compt_enc !!}
                @else
                    <span class="right badge badge-danger">Compte innexistant</span>
                @endif
            </td>
            <td>{!! $reglement->date !!}</td>
            <td>{!! $reglement->encais_date !!}</td>
            <td>{!! $reglement->observation !!}</td>
            <td nowrap>{!!  number_format($reglement->credit,0, ',', ' '); !!}</td>
            <td nowrap>{!! $reglement->bdx_prive !!}</td>
            <td nowrap>{!! $reglement->type_ope !!}</td>
        </tr>
        @endforeach
    </tbody>
</table>

@if($t_lignes->count()>0)
<div class='form-group row'>
    <div class="col-md-12">
        <button type="submit" class="btn btn-success"
            onclick='if(!confirm("Voulez-vous vraiment générer les écritures ?")) return false;'>Transférer les lignes sélectionnées</a>
    </div>
</div>
@endif







