
<?php $__env->startSection('title','Customer 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 Customer</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 Customer</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(url('insert-customer')); ?>" method="post" enctype="multipart/form-data">
              <?php echo csrf_field(); ?>
              <div class="card-body row">
   
                
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Company Name</label>
                    <input type="text" class="form-control" name="company_name" id="company_name"  value="<?php echo e(old('company_name')); ?>" autocomplete="off">
                     <?php if($errors->has('company_name')): ?>
                      <span class="text-danger"><?php echo e($errors->first('company_name')); ?></span>
                      <?php endif; ?>
                  </div>

                </div>
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Email Address</label>
                    <input type="email" class="form-control" id="email" value="<?php echo e(old('email')); ?>" name="email"  autocomplete="off">
             
                    <?php if($errors->has('email')): ?>
                      <span class="text-danger"><?php echo e($errors->first('email')); ?></span>
                      <?php endif; ?>
                  </div>

                </div>
                   <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">TRN NO(Tax Number)</label>
                    <input type="text" class="form-control" name="trn_no" id="trn_no"  value="<?php echo e(old('trn_no')); ?>" autocomplete="off">
                     <?php if($errors->has('trn_no')): ?>
                      <span class="text-danger"><?php echo e($errors->first('trn_no')); ?></span>
                      <?php endif; ?>
                  </div>

                </div>
                    <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Logo</label>
                <input type="file" class="form-control" id="image" name="image" autocomplete="off">
              
                  </div>

                </div>
                <div class="col-md-6">
                	              <div class="card-body">
                <div class="row" x-data="handler()">
                  <table class="table table-bordered table-striped" id="vehicle_table">
                    <thead class="thead-light">
                      <tr>
                        <th>Vehicle No</th>
                        <th>Driver Name</th>
                        <th>Action</th>
                      </tr>
                    </thead>
                    <tbody>
            
                    </tbody>
                    <tfoot>
                      <tr>
                        <td colspan="8" class="text-right"><button type="button" class="btn btn-info" onclick="addNewField(1)"><i class="las la-plus"></i> Add More vehicles</button></td>
                      </tr>
                    </tfoot>
                  </table>
                </div>
          
              </div>
                </div>
        <div class="col-md-2">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Activate(same cash memo number daily)</label>
                <input type="checkbox" class="form-control" id="memo_status" name="memo_status" value="1">
              
                  </div>

                </div>
                 <div class="col-md-2">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Activate(same DO number daily)</label>
                <input type="checkbox" class="form-control" id="dono_status" name="dono_status" value="1">
              
                  </div>

                </div>
                             <div class="col-md-2">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Activate(Liter)</label>
                <input type="checkbox" class="form-control" id="litr_status" name="litr_status" value="1">
              
                  </div>

                </div>
                      <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Sale Amount</label>
                    <input type="number" class="form-control" name="amount" id="amount" step="any"  value="<?php echo e(old('amount')); ?>" autocomplete="off">
                     <?php if($errors->has('amount')): ?>
                      <span class="text-danger"><?php echo e($errors->first('amount')); ?></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() {
      $("#customer").addClass('menu-open');
      $("#add-customer").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-customer.blade.php ENDPATH**/ ?>