            <table id="_table" width="100%" class="table table-condensed table-bordered ">
                <thead>
                    <tr>
                        <th width='1%'>Transaction</th>
                        <th width='1%'>Date</th>
                        <th >Référence</th> 
                        <th width='1%'>journal</th> 
                        <th width='1%'>Débit</th>
                        <th width='1%'>Crédit</th>
                    </tr>
                </thead>
                <tbody>
                    <?php 
                        $total_credit=0;
                        $total_debit=0; 
                    ?>
                    <?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $equilibre=(abs($transaction->debit-$transaction->credit)==0);
                            $total_credit+=intVal($transaction->credit);
                            $total_debit+=intVal($transaction->debit);
                        ?>
                        <tr style="">
                            <td align="center">
                                <?php if($user->hasRole("ADMINISTRATEUR") || $user->hasRole("COMPTABILITE") || $user->hasRole("CHEF_COMPTABILITE")|| $user->canPermissionName("GLI_VISU")): ?>
                                <a href="<?php echo url('transaction/'.$transaction->transaction); ?>" >
                                    <?php echo str_pad($transaction->transaction,5,"0",STR_PAD_LEFT); ?>

                                </a>
                                <?php else: ?>
                                    <?php echo str_pad($transaction->transaction,5,"0",STR_PAD_LEFT); ?>

                                <?php endif; ?>
                            </td>
                            <td nowrap><?php echo $transaction->date_doc; ?></td>
                            <td nowrap>
                                <?php echo $transaction->ref_doc; ?>

                                <?php if(!$equilibre): ?>
                                    <span class="right badge badge-danger">TRANSACTION PARIELLE (non équilibrée)</span>
                                <?php endif; ?>
                            </td>
                            <td nowrap><?php echo $transaction->journal; ?></td>
                            <td align='right' nowrap style="<?php echo (!$equilibre)?'color:red':''; ?>"><?php echo $transaction->debit; ?></td>
                            <td align='right' nowrap style="<?php echo (!$equilibre)?'color:red':''; ?>"><?php echo $transaction->credit; ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
                <tfoot>
                    <tr style="background-color:lightgrey">
                        <th></th>
                        <th></th>
                        <th></th>
                        <th style="text-align:left">SOLDE:</th>
                        <th style="border-right:0px;text-align:right"><?php echo e($total_credit-$total_debit); ?></th>
                        <th></th>
                    </tr>
                </tfoot>

            </table><?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/comptabilite/grandlivre/liste_transactions.blade.php ENDPATH**/ ?>