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

 <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> Payment</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"> Payment</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>
              <div class="card-footer">
                <button class="btn btn-primary" onclick="report();">Search</button>
              </div>
      
          </div>
          <div class="card">

            <!-- /.card-header -->
            <div class="card-body ">
              <!-- END -->
              <div class="table-responsive">
              <table id="payment-table" class="table table-bordered table-striped  w-100">
                <thead>
                  <tr>
                    <th >Sl.no</th>
                    <th >Customer</th>
                    <!--<th>Total Amount</th>-->
                  
                    <th>Due</th>
                    
                    <th>Actions</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>
              </tr>
              </tfoot>
              </table>
              </div>
            </div>
            <!-- /.card-body -->
          </div>
        </div>
        <!-- /.container-fluid -->
   <!-- /.container-fluid -->
        <div class="modal fade" id="payment_modal">
                    <div class="modal-dialog modal-lg">
                      <div class="modal-content">
                        <div class="modal-body">
                            <div class="modal-header modal-heading">
                              <h4>Pay Now</h4>
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                  <span aria-hidden="true"><i class="las la-times" style="color: #007be8;"></i></span>
                                </button>
                              </div>
                            <section class="content">
                                <div class="container-fluid">
                                  
                                  <div class="card card-primary" style="box-shadow: none;">
                                      <form id="payment_form" method="post">
                                        <?php echo csrf_field(); ?>
                                        <div class="card-body row">
                                        <div class="col-md-4">
                                                <div class="form-group">
                                                    <label for="exampleInputEmail1">Balance Amount</label>
                                                    <input type="text" class="form-control" id="balance_amount"  readonly="">
                                                         <input type="hidden" class="form-control" id="balance_amount1"  >
                                                  </div>
                                            </div>
                                            <div class="col-md-4">
                                                <div class="form-group">
                                                    <label for="exampleInputEmail1">Date</label>
                                                    <input type="date" class="form-control" name="transaction_date" placeholder="Date" required="">
                                                  </div>
                                            </div>
                                            <div class="col-md-4">
                                                <div class="form-group">
                                                    <label for="exampleInputEmail1">Amount</label>
                                                    <input type="number" class="form-control" id="Amount" name="Amount" step="any" required="" onchange="getvalue(this.value)">
                                                  </div>
                                            </div>
                                                 <div class="col-md-4">
                <div class="form-group">
                            <label>Payment Mode</label>
                       
                            <select class="form-control" style="width: 100%;" id="payment_type" name="payment_type" required="">
                              <option value="cash" >CASH</option>
                              <option value="cheque">CHEQUE</option>
                            </select>
                             <?php if($errors->has('payment_type')): ?>
                            <span class="text-danger"><?php echo e($errors->first('payment_type')); ?></span>
                            <?php endif; ?>
                          </div>

                </div>
                                            </div>

                                        <div class="card-footer">
                                          <button  id="pay_button"class="btn btn-primary">Submit</button>
                                          <button data-dismiss="modal" aria-label="Close" type="submit" class="btn btn-danger">Cancel</button>
                                        </div>
                                      </form>
                                    </div>
                                </div>
                                <!-- /.container-fluid -->
                              </section>
                        </div>
                      </div>
                      <!-- /.modal-content -->
                    </div>
                    <!-- /.modal-dialog -->
                  </div>
      </section>
      <!-- /.content -->
    </div>



<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('js/payment.js')); ?>"></script>
<?php $__env->stopSection(); ?>

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