
    <?php if(isset($journal_list)): ?>
    <?php ($count = 0); ?>
    <?php ($row_balance=0); ?>

    <?php $__currentLoopData = $journal_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

    <?php ($user           = $rows->user); ?>
    <?php ($payment        = $rows->payment); ?>
    <?php ($booking        = $rows->booking); ?>
    <?php ($plot           = $booking->plot); ?>
    <?php ($transaction    = $rows->transaction); ?>

    <tr>
      <?php if($transaction->status == "Approve"|| $transaction->status == "Reversal" ): ?>

      <td><?php echo e(++$count); ?></td>
      <td><?php echo e(EF::dateFormat($rows->created_at)); ?></td>
      <td><?php echo e($transaction->voucher_type); ?>-<?php echo e($transaction->voucher_number); ?></td>
      <td><?php if(isset($user->id)): ?><?php echo e($user->name); ?><?php endif; ?></td>
      <td><?php echo e($rows->narration); ?></td>
      <td><?php echo e($rows->mode); ?></td>
      <td><?php echo e($rows->drawn_on); ?></td>
      <td><?php echo e($rows->instrument); ?></td>
      <td><?php echo e($rows->instrument_date); ?></td>
      
      <td>
        <?php if($transaction->status == "Approve"): ?> 
          <span class="badge badge-success"><?php echo e(EF::getstatus($transaction->status)); ?></span>
        <?php elseif($transaction->status == "Reversal"): ?> 
          <span class="badge badge-primary"><?php echo e(EF::getstatus($transaction->status)); ?></span>
        <?php else: ?>
          <span class="badge badge-warning"> <?php echo e($transaction->status); ?></span>
        <?php endif; ?>
      </td>
      <td><?php echo e(EF::numberFormat($rows->debit)); ?></td>
      <td><?php echo e(EF::numberFormat($rows->credit)); ?></td>
      <td> <?php echo e(EF::numberFormat((($rows->debit)-($rows->credit))+($row_balance))); ?></td>
    
      <?php ($row_balance = (($rows->debit)-($rows->credit))+($row_balance)); ?>
    
            
      <?php if(Auth::user()->hasAnyPermission(['All','Preview Voucher'])): ?>
        <td>
            <a href="<?php echo e(route('document.voucherpreview',['id' => Crypt::encrypt($rows->transaction_id)])); ?>" id="pay" class="dropdown-item" ><i class="dropdown-icon fa fa-print"></i>Print</a>    
        </td>
      <?php endif; ?>
          

     <?php endif; ?>
   </tr>
   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
   <?php endif; ?>
<?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/components/subhead/table_user_subhead_ledger.blade.php ENDPATH**/ ?>