
<div class="modal fade" id="md_add_product" tabindex="-1" role="dialog" aria-labelledby="exampleModallabel" aria-hidden="true">
  <?php echo e(Form::open(array('route' => 'product.store', 'id' => 'form_add_product', 'class' => 'cls_from ', 'enctype' => 'multipart/form-data'))); ?>

  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header header-margin">
        <h5 class="modal-title" id="exampleModallabel">Add Product</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
      <div class="modal-body">
        <div class="card">

         <div class="card-body form-fieldset">
          <div class="row">
            <!-- <div class = "col-md-12">
               <label class="label-color"><?php echo e(ucwords(str_replace('_',' ',$label_list['branch']))); ?>: <i style = "color:red;">*</i></label>
<small class="form-errors pull-right req" value="*"><?php echo e($errors->first($label_list['branch'],":message")); ?></small>

<div class="input-group mb-3">

      <?php echo $__env->make('layouts.common.branch', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
            </div> -->
            <div class="col-sm-4">
               <label class="label-color">Category:<i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('product_category',":message")); ?></small>

            <div class="input-group mb-3">

           <select class="form-control form-control-sm cls_selection product_category" name= "product_category">
              <option value = "<?php echo e(Crypt::encrypt(0)); ?>">Select Category</option>
               <?php $__currentLoopData = $product_category_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <option value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->category_code); ?> | <?php echo e($rows->name); ?></option>
               <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
             </select>
                <small class="btn-sm btn-primary" onclick="showInventoryModal('form_add_category','md_add_category','Product')"><i class="fa fa-plus"> </i></small>


            </div>
          </div>


          <!-- <div class="col-sm-4">
            <label class="label-color">Code: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('product_code',":message")); ?></small>

            <div class="input-group mb-3">
              <?php echo e(Form::Text('product_code', '', ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'Product Code' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div> -->

          <div class="col-sm-4">
           <label class="label-color"> Name: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('product_name',":message")); ?></small>
            <div class="input-group mb-3">
              <?php echo e(Form::Text('product_name', '', ['class' => 'form-control form-control-sm', 'placeholder' => 'Product Name' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>



                     <div class="col-sm-4">
               <label class="label-color">Unit: <i style = "color:red;">*</i></label>
            <small class="form-errors pull-right req" value="*"><?php echo e($errors->first('product_unit',":message")); ?></small>

            <div class="input-group mb-3">

           <select class="form-control form-control-sm cls_selection product_unit" name= "product_unit">
              <option value = "<?php echo e(Crypt::encrypt(0)); ?>">Select Unit</option>
               <?php $__currentLoopData = $unit_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <option value="<?php echo e(Crypt::encrypt($rows->id)); ?>"><?php echo e($rows->name); ?></option>
               <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
             </select>
               <small class="btn-sm btn-primary" onclick="showModal('form_add_unit','md_add_unit')"><i class="fa fa-plus"> </i></small>

            </div>
          </div>

            <div class="col-sm-4">
                <label class="label-color">Minimum Quantity:</label>
           <small class="form-errors pull-right req" value=""><?php echo e($errors->first('product_minimum',":message")); ?></small>
            <div class="input-group mb-3">

              <?php echo e(Form::Text('product_minimum', '', ['class' => 'form-control form-control-sm ', 'placeholder' => 'Product Minimum Quantity' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>

                    <div class="col-sm-4">
                <label class="label-color">Maximum Quantity:</label>
           <small class="form-errors pull-right req" value=""><?php echo e($errors->first('product_maximum',":message")); ?></small>
            <div class="input-group mb-3">

              <?php echo e(Form::Text('product_maximum', '', ['class' => 'form-control form-control-sm cls_required ', 'placeholder' => 'Product Maximum Quantity' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])); ?>

            </div>
          </div>
          


           <div class="col-sm-12">
                <label class="label-color">Description:</label>
            <small class="form-errors pull-right req" value=""><?php echo e($errors->first('product_description',":message")); ?></small>

            <div class="input-group mb-3">
              <?php echo e(Form::textarea('product_description', '', ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'Product Description' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default','rows' => 2])); ?>

            </div>
          </div>

       </div>

         </div>
       </div>


      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button  type="submit"  class="btn btn-primary cls_submit" content="add product">Add Product</button>
      </div>
    </div>
  </div>
  <?php echo e(Form::close()); ?>

</div>
<?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/inventory_module/item/modals/add_product.blade.php ENDPATH**/ ?>