
<?php $__env->startSection('title','Receivable'); ?>
<?php $__env->startSection('main'); ?>
<center><h1>Receivables</h1></center>
<hr>
<div class="container">
    <div class="row">
        
<?php $runningTotal = 0; ?>
    <table class="table">
      <thead>
        <tr>
          <th scope="col">#</th>
          <th scope="col">Project</th>
          <th scope="col">Acc-Code</th>
          <th scope="col">Account Name</th>
          <th class="text-end" scope="col">Total</th>
        </tr>
      </thead> 
      <tbody>
          <?php $__currentLoopData = $report; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
         <?php $runningTotal =+ $data->Total ?>
        <tr>
          <th scope="row"><?php echo e($loop->iteration); ?></th>
          <td><?php echo e($data->project_name); ?></td>
          <td><?php echo e($data->header_code . "-" . $data->account_id); ?></td>
          <td><?php echo e($data->account_name); ?></td>
          <td class="text-end" ><?php echo e(number_format($data->Total,0)); ?></td>
          
          
        </tr>
     
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </tbody>
    </table>

    </div>
</div>
<hr>
<center><h1><?php echo e(number_format($total,0)); ?></h1></center>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/imtiazir/public_html/resources/views//reports/receivable.blade.php ENDPATH**/ ?>