

<?php $__env->startSection('title','Purchase 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 Purchase</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 Purchase</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('purchase.store')); ?>" 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>Date</label>
                           <input type="date" class="form-control" name="date" id="date"  value="<?php echo date('Y-m-d'); ?>" autocomplete="off">
                            <?php if($errors->has('date')): ?>
                            <span class="text-danger"><?php echo e($errors->first('date')); ?></span>
                            <?php endif; ?>
                          </div>

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

                </div>
             
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Voucher No </label>
                    <input type="text" class="form-control" id="voucher_no" name="voucher_no" value="<?php echo e(old('voucher_no')); ?>" >
                    <?php if($errors->has('voucher_no')): ?>
                      <span class="text-danger"><?php echo e($errors->first('voucher_no')); ?></span>
                      <?php endif; ?>
                  </div>
                </div>
                   <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Delivery No </label>
                    <input type="text" class="form-control" id="delivery_no" name="delivery_no" value="<?php echo e(old('delivery_no')); ?>" >
                    <?php if($errors->has('delivery_no')): ?>
                      <span class="text-danger"><?php echo e($errors->first('delivery_no')); ?></span>
                      <?php endif; ?>
                  </div>
                </div>
                        <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Invoice No </label>
                    <input type="text" class="form-control" id="invoice_no" name="invoice_no" value="<?php echo e(old('invoice_no')); ?>" >
                    <?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 for="exampleInputEmail1">QTY</label>
                    <input type="number" class="form-control" min="1" id="qty" name="qty" step="any" value="<?php echo e(old('qty')); ?>" placeholder="Enter QTY ">
                    <?php if($errors->has('qty')): ?>
                      <span class="text-danger"><?php echo e($errors->first('qty')); ?></span>
                      <?php endif; ?>
                  </div>

                </div>
       
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Unit Price </label>
                    <input type="number" class="form-control" id="price" name="price" step="any" value="<?php echo e(old('price')); ?>">
                     <?php if($errors->has('price')): ?>
                      <span class="text-danger"><?php echo e($errors->first('price')); ?></span>
                      <?php endif; ?>
                  </div>
                </div>
        
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Tax VAT</label>
                    <input type="number" class="form-control" id="tax_new" name="tax" step="any" value="<?php echo e(old('tax')); ?>" >
                  </div>
                </div>
                <div class="col-md-4">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Total</label>
                    <input type="text" class="form-control" id="final_amount" name="final_amount"  readonly>
                  </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(); ?>
<?php $__env->startSection('script'); ?>
<script src="<?php echo e(asset('js/purchase.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/add-purchase.blade.php ENDPATH**/ ?>