
<?php $__env->startSection('title','Tax Form'); ?>
<?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>Add Tax</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">Add Tax</li>
              </ol>
            </div>
          </div>
        </div><!-- /.container-fluid -->
      </section>

      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
          <div class="card card-primary">
            <form action="<?php echo e(route('tax.store')); ?>" method="post" enctype="multipart/form-data">
             <input name="_token" type="hidden" value="<?php echo e(csrf_token()); ?>"/>
              <div class="card-body row">
   
                
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Invoice No</label>
                    <input type="text" class="form-control" name="invoice_no" id="invoice_no"  value="<?php echo e(old('invoice_no')); ?>" autocomplete="off" required="">
                     <?php if($errors->has('invoice_no')): ?>
                      <span class="text-danger"><?php echo e($errors->first('invoice_no')); ?></span>
                      <?php endif; ?>
                  </div>

                </div>
    
      <div class="col-md-4">
                <div class="form-group">
                            <label>Customer Name</label>
                           <select class="form-control select2bs4" style="width: 100%;" name="customer_id" required="">
                             <option value="">Select </option>
                             <?php $__currentLoopData = $customer_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <option value="<?php echo e($customer->id); ?>"><?php echo e($customer->company_name); ?></option>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                           
                          </div>

                </div>
                      <div class="col-md-4">
                <div class="form-group">
                            <label>Date From</label>
                           <input type="date" class="form-control" name="datefrom" id="datefrom"  value="<?php echo date('Y-m-d'); ?>" autocomplete="off" required="">
                            <?php if($errors->has('datefrom')): ?>
                            <span class="text-danger"><?php echo e($errors->first('datefrom')); ?></span>
                            <?php endif; ?>
                          </div>

                </div>
                      <div class="col-md-4">
                <div class="form-group">
                            <label>Date To</label>
                           <input type="date" class="form-control" name="dateto" id="dateto"  value="<?php echo date('Y-m-d'); ?>" autocomplete="off" required="">
                            <?php if($errors->has('dateto')): ?>
                            <span class="text-danger"><?php echo e($errors->first('dateto')); ?></span>
                            <?php endif; ?>
                          </div>

                </div>
              </div>
              <div class="card-footer pt-0 mb-5">
                <button class="btn btn-primary" type="submit">Submit</button>
                <a href="<?php echo e(route('admin.index')); ?>" class="btn btn-danger" >Back</a>
              </div>
            </form>
          </div>
        </div>
        <!-- /.container-fluid -->
      </section>
      <!-- /.content -->


    </div>
      <!-- /.content -->
<?php $__env->stopSection(); ?>

<script src='https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js'></script>


<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('js/customer.js')); ?>"></script>
<script>
    $(document).ready(function() {
      $("#tax").addClass('menu-open');
      $("#add-tax").addClass('active');
    });
  </script>
<?php $__env->stopSection(); ?>


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