<?php $__env->startSection('title','Due Payment Bills'); ?>

<?php $__env->startSection('content'); ?>
<style>
    .md-5{
        margin-bottom:10px;
    }
</style>
 <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <section class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6">
              <h1>Due Payment Bills</h1>
            </div>
            <div class="col-sm-6">
              <ol class="breadcrumb float-sm-right">
                <li class="breadcrumb-item"><a href="#">Home</a></li>
                <li class="breadcrumb-item active">Due Payment Bills</li>
              </ol>
            </div>
          </div>
        </div><!-- /.container-fluid -->
      </section>

      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
        <div class="card card-primary">
            <?php if(session()->has('success')): ?>
            <div class="alert alert-success">
                <?php echo e(session()->get('success')); ?>

            </div>
        <?php endif; ?>
         
              <div class="card-body row pb-0">
                  <?php if(auth()->user()->role == 'admin' || auth()->user()->role == 'users'): ?>
                  <div class="col-md-4">
                    <div class="form-group mb-1">
                                <label>Company Name</label>
                                <select class="form-control select2bs4" style="width: 100%;" id="company_id">
                                  <option value="">All</option>
                                  <?php $__currentLoopData = $company_listing; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company_list): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                  <option value="<?php echo e($company_list->id); ?>"><?php echo e($company_list->company_name); ?></option>
                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                              </div>
                    </div>
                  <?php endif; ?>

                <!--<div class="col-md-4">-->
                <!--  <div class="form-group mb-1">-->
                <!--    <label for="exampleInputEmail1">Date From</label>-->
        
                  <!--  <input type="date" class="form-control" id="datefrom"  value="<?php echo date('Y-m-d'); ?>" >-->
                  <!--</div>-->
                <!--       <div class="input-group date datepicker" id="datepicker">-->
                <!--    <input type="text" class="form-control" id="datefrom" value="<?php echo date('m/d/Y'); ?>">-->
                <!--    <span class="input-group-append">-->
                <!--      <span class="input-group-text bg-light d-block">-->
                <!--        <i class="fa fa-calendar"></i>-->
                <!--      </span>-->
                <!--    </span>-->
                <!--  </div>-->
                <!--  </div>-->
               <!--</div>-->
      <!--          <div class="col-md-4">-->
                  <!--<div class="form-group mb-1">-->
      <!--              <label for="exampleInputEmail1">Date To</label>-->
                     <!--<input type="input" class="form-control inputDate" id="dateto" value="<?php echo date('d-m-Y'); ?>">-->
                  <!--  <input type="date" class="form-control" id="dateto"  value="<?php echo date('Y-m-d'); ?>"> -->
                    
                  <!--</div>-->
      <!--             <div class="input-group date datepicker" id="datepicker">-->
      <!--  <input type="text" class="form-control" id="dateto" value="<?php echo date('m/d/Y'); ?>">-->
      <!--  <span class="input-group-append">-->
      <!--    <span class="input-group-text bg-light d-block">-->
      <!--      <i class="fa fa-calendar"></i>-->
      <!--    </span>-->
      <!--  </span>-->
      <!--</div>-->
      <!--          </div>-->
                 
                  <div class="col-md-4">
                    <div class="form-group mb-1">
                                <label>ledger </label>
                                <select class="form-control select2bs4" style="width: 100%;" id="ledger_id">
                                  <option value="">All</option>
                                 <option value="CashMemo">Cash Memo</option>
                                  <option value="DoNo">D.O No.</option>
                                </select>
                              </div>
                    </div>
              </div>
              <div class="card-footer">
                <button class="btn btn-primary" onclick="due_bill_report();">Search</button>
                  <button class="btn btn-success" onclick="export_due_pdf();">Export to PDF</button>
              </div>
      
          </div>
          <div class="card">

            <!-- /.card-header -->
            <div class="card-body ">
              <!-- END -->
              <div class="table-responsive">
              <table id="report-table" class="table table-bordered table-striped  w-100">
                <thead>
                  <tr>
                    <th >Sl.no</th>
                   <th>Company Name</th>
                    <th>Date</th>
                    <th>Ledger</th>
                    <th>Invoice No</th>
                    <th>Vehicle Number</th>
                    <th>Driver Number</th>
                    <th>Kilometer</th>
                    <th>Quantity</th>
                    <th>Total</th>
                    <th>Balance Due</th>
            
                  </tr>
                </thead>
                <tbody>
               </tbody>
                    <tfoot>

              <tr class="bg-gray font-17  footer-total">
              <td  ><strong>Total:</strong></td>
       
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
               <td></td>
             
              </tr>
              </tfoot>
              </table>
              </div>
            </div>
            <!-- /.card-body -->
          </div>
        </div>
      
      </section>
      <!-- /.content -->
    </div>



<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('js/payment.js')); ?>"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js'></script>
<script>
    $(function(){
  $('.datepicker').datepicker();
});

</script>

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

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/mc25vp7ttt60/public_html/srkdiesel-trading.in/resources/views/duePaymentBills.blade.php ENDPATH**/ ?>