
<?php $__env->startSection('main-container'); ?>
<?php echo $__env->make('cdn', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<main id="main" class="main">
  
 <div style="margin-top:15px ;">
    <h4 class="text-uppercase mb-3">Service Invoice</h4>
 </div>
     <table class="table table-striped display nowrap" id="tabl" style="width:100%;">
                <thead>
                    <tr>
                        <th> </th>
                        <th>S.No</th>
                        <th>Name</th>
                        <th>Amount Due($)</th>
                        <th>Amount($)</th> 
                        <th>Description</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody> 
                 <?php $__currentLoopData = $serviceinv; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <tr>
                    <td></td>
                    <td><?php echo e(++$key); ?></td>
                    <td><?php echo e($value->ServiceLead->name); ?></td>               
                    <td>$ <?php echo e($value->amtdue); ?></td>
                    <td>$ <?php echo e($value->amount); ?></td>
                    <td><?php echo e($value->descript); ?></td>
                    <td>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Invoice.View')): ?>
                        <a href="<?php echo e(route('admin.index',['id'=>$value->id])); ?>"><button class="btn btn-warning rounded-pill">View Invoice</button></a>
                        <?php endif; ?>
                    </td>
                  </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
      </table>      
</main>
<script type="text/javascript">  
   $(document).ready(function () {
     var table = $('#tabl').DataTable({
      order: [],
      columnDefs: [ { orderable: false, targets: [0,1,2,3,4,5,6] } ], 
      responsive: true
    });

    new $.fn.dataTable.FixedHeader( table );
}); 
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('frontend.layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\TADA\resources\views/frontend/serviceinvoicepage.blade.php ENDPATH**/ ?>