<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >

<!-- add product form start -->
<div class="row">
    <div class="col-md-6 margin-bottom-30">
        <div class="hs_heading medium">
            <h3> Add Products</h3>
        </div>
	  <form id="addproduct" enctype="multipart/form-data">
		<div class="hs_input">
            <label>Product Name</label>
            <input type="text"  class="form-control" placeholder="Name" id="p_name" name="p_name">
        </div>
        
        <div class="hs_input">
            <label>Products Category</label>
            <select class="form-control" id="p_category" name="p_category">
		       <option value="0">Select Category</option>
			   <?php if(!empty($category)){foreach($category as $cate){ ?>
				<option value="<?php echo $cate->category_id; ?>"><?php echo $cate->category_name;?></option>
			<?php 
			   }
			  }
			?>
                
            </select>
        </div>
		 
		<div class="hs_input">
            <label>Quantity</label> 
             <input type="number"  class="form-control" placeholder="Quantity" id="p_quantity" name="p_quantity" min="1">
			 <span class="product_note">Note - If remaining blank,product quantity will be unlimited</span> 
        </div>
        <div class="hs_input">
            <label>Short Description</label>
            <textarea rows="4" class="form-control" placeholder="Description" id="p_description" name="p_description"></textarea>
        </div>
		<div class="hs_input">
            <label>Long Description</label>
            <textarea rows="10" class="form-control" placeholder="Description" id="p_longdescription" name="p_longdescription"></textarea>
        </div>
		<div class="hs_input">
            <label for="exampleInputFile">Add Image</label>
            <input type="file" id="exampleInputFile" class="form-control" name="file_uploade">
            <p class="help-block">Example block-level help text here.</p>
        </div>
		<div class="hs_input">
            <label>Price</label>
            <input type="text" class="form-control" placeholder="Price" id="p_price" name="p_price">
        </div>
	    <button type="submit" id="add"  class="btn">Submit</button>
	 </form>
    </div>
</div>
<!-- add product form end -->
