

<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 de l'imputation">Imput</th>
            <th width='1%' title="Numéro du Mandat">Mandat</th>
            <th width='1%' title="Type d'imputation">Imput</th>
            <th width='1%' title="Compte">CompteImput.</th>
            <th width='1%' title="Contrepartie">Contrepartie</th>
            <th width='1%' title="Date du Mandat">DateMandat</th>
            <th width='1%' title="Type Mandat">TypeMandat</th>
            <th title="Designation">Designation</th>
            <th width='1%'>Montant</th>
        </tr>
    </thead>

    <tbody>
        @php


        @endphp
        @foreach ($t_lignes as $imputation)
        @php
            $compte_dest=App\Models\MyApp::getCompteImputation($imputation->type_imp);
        @endphp
        <tr>
            <td style='margin:0px'>
                <input id="box_{!! $imputation->id !!}" class="form-control" name="box_{!! $imputation->id !!}" type="checkbox" value="1" onchange='calcul_select();'>
            </td>
            <td nowrap>{!! $imputation->id !!}</td>
            <td><a href="{{ url('mandats/'.$imputation->idmandat) }}" target='_blank'>{!! $imputation->idmandat !!}</a></td>
            <td nowrap>{!! $imputation->type_imp !!}</td>
            <td nowrap>{!! $imputation->cpt_imp !!}</td>
            <td nowrap>{!! $compte_dest !!}</td>
            <td>{!! $imputation->MandatDate !!}</td>
            <td nowrap>{!! $imputation->MandatType !!}</td>
            <td>{!! $imputation->designation !!}</td>
            <td nowrap>{!!  number_format($imputation->montant,0, ',', ' '); !!}</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







