
         <?php ($transaction_count = 0); ?>


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

          <tr>

              <?php ($journal_list = $rows->journals); ?>
              <?php ($journal_count = @count($journal_list)); ?>

              <?php ($count = 0); ?>

              <?php $__currentLoopData = $journal_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $journal_rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <?php ($uniqId = uniqId()); ?>
                <?php ($other_info = $journal_rows->payment->showGenericTypeDetail($journal_rows->payment)); ?>
                <tr class="row_<?php echo e($uniqId); ?>">
                 <?php if($count == 0): ?>
                      
                    <td rowspan="<?php echo e($journal_count); ?>"><?php echo e(++$transaction_count); ?></td>
                    <td rowspan="<?php echo e($journal_count); ?>"><input type="checkbox"  name="transaction[]" class="checkbox_transaction" onclick="show_approve_selected(this,event,'row_<?php echo e($uniqId); ?>')" value="<?php echo e(Crypt::encrypt($rows->id)); ?>"></td>

                    <td rowspan="<?php echo e($journal_count); ?>"><?php echo e(EF::dateFormat($rows->created_at)); ?></td>
                    <td rowspan="<?php echo e($journal_count); ?>">
                      <input disabled type="date" name="date[]" class="form-control form-control-sm">
                    </td>
                    <td rowspan="<?php echo e($journal_count); ?>">
                      <select disabled name="status[]">
                        <option value="Approve">Approve</option>
                        <option value="Reject">Reject</option>

                     </select>
                  </td>


                    <td rowspan="<?php echo e($journal_count); ?>"><a target="_blank" href="<?php echo e(route('document.voucherpreview',['id' => Crypt::encrypt($rows->id)])); ?>" > VR / <?php echo e(sprintf('%04d', $rows->id)); ?> </a></td>
                    <td rowspan="<?php echo e($journal_count); ?>"><?php echo e($rows->getBranch($rows->id)); ?></td>

                    <td rowspan="<?php echo e($journal_count); ?>"><?php echo e($rows->compound_type); ?></td>
                    <td rowspan="<?php echo e($journal_count); ?>">
                      <?php if($rows->status == "Unapprove"): ?>
                         <span class="badge badge-danger"><?php echo e(EF::getstatus($rows->status)); ?></span>
                      <?php endif; ?>
                    </td>
                 <?php endif; ?>
                    <td><?php echo wordwrap($rows->description,50,'<br>'); ?> </td>
                    <td><?php echo e(EF::numberFormat($journal_rows->debit)); ?></td>
                    <td><?php echo e(EF::numberFormat($journal_rows->credit)); ?></td>

                    <?php if($count == 0): ?>
                    <td rowspan="<?php echo e($journal_count); ?>">
                      <?php if(Auth::user()->hasAnyPermission(['All','Update Voucher'])): ?>
                      <span onclick="showVoucher(event,this)"  href="<?php echo e(route('voucher.show',['id' => Crypt::encrypt($rows->id) ])); ?>" class="btn btn-sm btn-primary">Edit</span>
                      <?php endif; ?>
                    </td>
                    <?php endif; ?>

                 <?php ($count++); ?>
                </tr>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         <?php endif; ?><?php /**PATH /var/www/skylite/resources/views/components/voucher/table_voucher.blade.php ENDPATH**/ ?>