<?php $__env->startSection('page_title'); ?>
Voucher
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_header_title'); ?>
Manage Voucher
<?php $__env->stopSection(); ?>



<?php $__env->startSection('page_body'); ?>
<?php echo e(Breadcrumbs::render('reject_voucher')); ?>


<div class="row row-cards row-deck mt-4">

  <div class="col-12">
    <div class="card">
         <?php echo Form::open(array('route' =>    'approve.multiple.vouchers')); ?>


      <div class="card-header">



       <h3 class="card-title">Reject Voucher </h3> &nbsp; &nbsp;

     
     </div>


     <div class="card-status card-status-left bg-blue"></div>
     <div class="table-responsive table-height">
      <table class="table table-hover table-sm table-outline table-vcenter text-nowrap card-table cls_datatable">
        <thead>
          <tr>
            <th>#</th>
            <th>Date</th>

            <th>Temp Voucher#</th>
            <th><?php echo e(ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))); ?></th>
            <th>Type</th>
            <th>debit</th>
            <th>credit</th>
          </tr>
        </thead>
        <tbody id="show_vouchers">
            
         <?php ($transaction_count = 0); ?>


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

          <tr>

              <?php ($journal_list = $rows->getRejectedJournalListByTransaction($rows->id)); ?>
              
              <?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); ?>"><?php echo e(EF::dateFormat($rows->created_at)); ?></td>

                    
                   


                    <td rowspan="<?php echo e($journal_count); ?>"><a target="_blank" href="<?php echo e(route('document.voucherrejectpreview',['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->getRejectedBranch($rows->id)); ?></td>

                    <td rowspan="<?php echo e($journal_count); ?>"><?php echo e($rows->compound_type); ?></td>
                    
                 <?php endif; ?>
                    
                    <td><?php echo e(EF::numberFormat($journal_rows->debit)); ?></td>
                    <td><?php echo e(EF::numberFormat($journal_rows->credit)); ?></td>

                    

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



         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
         <?php endif; ?>
       </tbody>
     </table>
   </div>

 </div>
</div>
</div>
<?php $__env->stopSection(); ?>





<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/voucher/reject_voucher.blade.php ENDPATH**/ ?>