
    <table id="_table"  width="100%" class="table table-condensed table-bordered ">
        <thead>
            <tr>
                <th width='1px'>Id</th> 
                <th width='1px'>Compte</th> 
                <th>Libelle</th> 
                <th width='1px'>Compte&nbsp;Aux.</th>
                <th>Libelle</th> 
                <th>Designation</th>
                <th width='1px'>Débit</th>
                <th width='1px'>Crédit</th>
                <?php if(($mode!='show') && ($grand_livre_ligne->verrou!="1")): ?>
                <th width='75px'>
                    <?php if(!$is_new): ?>
                        <?php if($user->hasRole("ADMINISTRATEUR") || $user->canPermissionName("GLI_MAJ")): ?>
                        <a href="<?php echo url('ecriture_pop_add/'.$grand_livre_ligne->id); ?>" class="add_ecriture fancybox.iframe btn  btn-sm btn-success">
                            Nouvelle ligne</a> 
                        <?php endif; ?>
                    <?php endif; ?>
                </th>
                <?php endif; ?>
            </tr>
        </thead>
        <tbody>
            <?php $total_debit=0;$total_credit=0;$numligne=0; ?>

            <?php if(count($ecritures)>0): ?> 
                <?php $__currentLoopData = $ecritures; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ecriture): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php
                        $numligne++;
                        $total_debit+=$ecriture->debit;
                        $total_credit+=$ecriture->credit;
                    ?>
                    <tr style="">
                        <td nowrap><?php echo $ecriture->id; ?></td>
                        <td nowrap><?php echo $ecriture->compte; ?></td>
                        <td nowrap><?php echo $ecriture->compte_label; ?></td>
                        <td nowrap><?php echo $ecriture->compte_aux; ?></td>
                        <td nowrap><?php echo $ecriture->compte_aux_label; ?></td>
                        <td><?php echo $ecriture->designation; ?></td>
                        <td nowrap align='right' style='color:darkred'><?php echo $ecriture->debit; ?></td>
                        <td nowrap align='right' style='color:blue'><?php echo $ecriture->credit; ?></td>
                        <?php if(($mode!='show')&&($grand_livre_ligne->verrou!="1")): ?>
                        <td nowrap>
                            <?php if($ecriture->verrou!="1"): ?>
                                <?php if($user->hasRole("ADMINISTRATEUR") || $user->canPermissionName("GLI_MAJ")): ?>
                                    <a href="<?php echo url('ecriture_pop_maj/'.$ecriture->id); ?>" id='btn_maj_<?php echo $ecriture->id; ?>'
                                        class="add_ecriture fancybox.iframe btn btn-info btn-sm" style="margin-right: 3px;">
                                        <span class='fas fa-pencil'></span>
                                    </a>
                                    <?php if($numligne>1): ?>
                                    <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; ?>
                                <?php endif; ?>
                            <?php endif; ?>
                        </td>
                        <?php endif; ?>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            <?php endif; ?>
        </tbody>

        <tfoot style="background-color: white;color: blue;text-align:right" >
            <tr>
                <th colspan="6">TOTAL</th> 
                <th align='right' style="color:darkred"><?php echo $total_debit; ?></th>
                <th align='right' style="color:blue"><?php echo $total_credit; ?></th>
                <?php if(($mode!='show')&&($grand_livre_ligne->verrou!="1")): ?>
                    <th ></th> 
                <?php endif; ?>
            </tr>
        </tfoot>
    </table>

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