
<?php $__env->startSection('title','Vacant List'); ?>
<?php $__env->startSection('main'); ?>
<center><h1>Vacant List</h1></center>
<hr>
<div class="container">
    <form>
                         <datalist id="all_accounts_options">
                                <?php $__currentLoopData = $projects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $datass): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option  value="<?php echo e($datass->project_name); ?>"> 
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </datalist>

                        <input list="all_accounts_options" autocomplete="off" class="form-control form-control-sm " name="search" type="search" placeholder="Search here!" >
                        
                                            <div class="col-auto">
                    <a href="<?php echo e(url('/report/payable')); ?>">
                        
                    </a>
                    </div>
                    </form>
    <div class="row">
        
<?php $runningTotal = 0; ?>
    <table class="table">
      <thead>
        <tr>
          <th scope="col">#</th>
          <th scope="col">Project</th>
          <th scope="col">Category</th>
          <th scope="col">Account Name</th>
          <th class="text-end" scope="col">Total Cost</th>
        </tr>
      </thead> 
      <tbody>
          <?php $__currentLoopData = $record->sortBy('project_id'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

          <?php if($data->total_cost<>0): ?>
        <tr>
          <th scope="row"><?php echo e($loop->iteration); ?></th>
          <td><?php echo e($data->project_name); ?></td>
          <td><?php echo e($data->category); ?></td>
          <td><?php echo e($data->customer_name); ?></td>
          <td class="text-end" ><?php echo e(number_format($data->total_cost,0)); ?></td>
        </tr>
        <?php endif; ?>
            
          <?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/alameenb/public_html/resources/views/reports/Vacants.blade.php ENDPATH**/ ?>