
    <table id="_table"  width="100%" class="table table-condensed table-bordered ">
        <thead>
            <tr>
                <th>Id</th> 
                <th>Compte</th> 
                <th>Compte Aux.</th>
                <th>Designation</th>
                <th width='100px'>Débit</th>
                <th width='100px'>Crédit</th>
                <th width='75px'>
                    <?php if($user->hasRole("ADMINISTRATEUR") || $user->can("ajouter ecriture")): ?>
                    <a href="<?php echo url('grand_livre_add/'.$grand_livre_ligne->id); ?>" class="btn  btn-sm btn-success">
                        Nouvelle ligne</a> 
                    <?php endif; ?>
                </th>
            </tr>
        </thead>
        <tbody>
            <?php $total_debit=0;$total_credit=0; ?>

            <?php if(count($transaction_lignes)>0): ?> 
                <?php $__currentLoopData = $transaction_lignes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ecriture): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $total_debit+=$ecriture->debit;
                        $total_credit+=$ecriture->credit;
                    ?>
                    <tr style="">
                        <td nowrap><?php echo $ecriture->id; ?></td>
                        <td nowrap><?php echo $ecriture->CompteNomComplet; ?></td>
                        <td nowrap><?php echo $ecriture->CompteAuxiliaireNomComplet; ?></td>
                        <td><?php echo $ecriture->designation; ?></td>
                        <td nowrap><?php echo $ecriture->debit; ?></td>
                        <td nowrap><?php echo $ecriture->credit; ?></td>
                        <td nowrap>
                            <?php if($user->hasRole("ADMINISTRATEUR") || $user->can("modifier grand livre")): ?>
                                <a href="<?php echo url('grand_livre_maj/'.$grand_livre_ligne->id.'/'.$ecriture->id); ?>" 
                                    class="btn btn-info btn-sm" style="margin-right: 3px;">
                                    <span class='fas fa-pencil'></span>
                                </a>
                                <a href="<?php echo url('grand_livre_del/'.$ecriture->id); ?>" 
                                    class="btn btn-danger btn-sm" 
                                    onclick="return confirm('voulez-vous vraiement supprimer la ligne ?');" style="margin-right: 3px;">
                                    <span class='fas fa-trash'></span>
                                </a>
                            <?php endif; ?>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>
        </tbody>

        <tfoot style="background-color: white;color: blue;text-align:center" >
            <tr>
                <th colspan="4">TOTAL</th> 
                <th style="color:red"><?php echo $total_debit; ?></th>
                <th style="color:green"><?php echo $total_credit; ?></th>
                <th colspan="1"><?php echo $total_credit-$total_debit; ?></th>
            </tr>
        </tfoot>
    </table>

<?php /**PATH C:\xampp7422\htdocs\sysinfo\cpswf\sipre_new\resources\views/comptabilite/grandlivre/lignes_transaction.blade.php ENDPATH**/ ?>