            <table id="_table" width="100%" class="table table-condensed table-bordered ">
                <thead>
                    <tr>
                        <th width='1%'>Id</th>
                        <th width='1%'>Transaction</th>
                        <th width='1%'>Date</th>
                        <th width='1%'>Piece</th> 
                        <th width='1%'>journal</th> 
                        <th width='1%'>Code Compte</th> 
                        <th>Compte</th> 
                        <th width='1%'>Code Compte Aux.</th>
                        <th>Nom Compte AUx.</th>
                        <th>Designation</th>
                        <th width='1%'>Débit</th>
                        <th width='1%'>Crédit</th>
                        <!-- <th width='1%'>Lettrage</th> -->
                        <!-- <th width='1%'>Verrou</th> -->
                        <?php if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")|| $user->canPermissionName("GLI_MAJ")): ?>
                            <th width='1px'>

                            </th>
                        <?php endif; ?> 
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $grandlivre; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ligneGL): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr style="">
                        <td nowrap><?php echo $ligneGL->id; ?></td>
                        <td align="center">
                            <?php if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")|| $user->canPermissionName("GLI_VISU")): ?>
                            <a href="<?php echo url('grand_livre/'.$ligneGL->id); ?>" >
                                <?php echo $ligneGL->IdTransaction; ?></span>
                            </a>
                            <?php else: ?>
                                <?php echo $ligneGL->IdTransaction; ?>

                            <?php endif; ?>
                        </td>
                        <td nowrap><?php echo $ligneGL->date_doc; ?></td>
                        <td nowrap align="center">
                            <?php if(strlen($ligneGL->type)>=7): ?>
                                <?php if(substr($ligneGL->type,0,7)=="SALAIRE"): ?>
                                   <a href="<?php echo url('salaire_fiche_edition'.'/'.$ligneGL->piece); ?>" target="_blank">
                                        <?php echo "Bulletin N° ".str_pad($ligneGL->piece,"0",4,STR_PAD_RIGHT); ?></a>
                                <?php endif; ?>
                                <?php if(substr($ligneGL->type,0,7)=="FACTURE"): ?>
                                    <a href="<?php echo url('achats'.'/'.$ligneGL->piece); ?>" target="_blank">
                                        <?php echo "Achat N° ".str_pad($ligneGL->piece,"0",4,STR_PAD_RIGHT); ?></a>
                                <?php endif; ?>
                            <?php endif; ?>
                        </td>
                        <td nowrap><?php echo $ligneGL->journal; ?></td>
                        <td nowrap><?php echo $ligneGL->compte; ?></td>
                        <td ><?php echo $ligneGL->CompteLabel; ?></td>
                        <td nowrap><?php echo $ligneGL->compte_aux; ?></td>
                        <td ><?php echo $ligneGL->compte_aux_label; ?></td>
                        <td ><?php echo $ligneGL->designation; ?></td>
                        <td align='right' nowrap><?php echo $ligneGL->debit; ?></td>
                        <td align='right' nowrap><?php echo $ligneGL->credit; ?></td>
                        <!-- <td nowrap><?php echo $ligneGL->lettrage_code; ?></td> -->
                        <!-- <td nowrap><?php echo $ligneGL->verrou; ?></td> -->  
                        <?php if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")|| $user->canPermissionName("GLI_MAJ")): ?>
                            <td nowrap>
                            <?php if(($ligneGL->verrou!=1)&&(1==1)): ?>
                                    <?php echo Form::open(['url' => url('grand_livre/' . $ligneGL->id), 'method' => 'DELETE']); ?>                                
                                    <?php echo e(csrf_field()); ?>

                                        <?php if($ligneGL->IsSupprimable): ?> 
                                            <button class="btn btn-danger btn-sm"><span class='fa fa-trash'></span></button>
                                        <?php endif; ?>
                                    <?php echo Form::close(); ?>

                            <?php endif; ?>
                            </td>
                        <?php endif; ?>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/comptabilite/grandlivre/liste_ecritures.blade.php ENDPATH**/ ?>