<div class="row">
  <div class="col-lg-12 mt-4">
    <div class="card">
      <div class="card-header form-card-header">
        <h4 class="m-b-0 text-light">UPDATE </h4>
      </div>
      <div class="card-body">
        <form id="update_education" class="form-material">
          <div class="form-body">
              <input type="hidden" id="id" name="id" value="<?php echo $education[0]->productheaderid; ?>">
              <input type="hidden" id="educationid" name="educationid" value="<?php echo $education[0]->educationid; ?>">
              
                        <div class="row">
                           
                           <div class="col-md-12 form-group">
                                <label class="control-label"><strong>Title <span>*</span></strong></label>
                                <input type="text" id="educationtitle" name="educationtitle" class="form-control"   autocomplete="off" maxlength="255"  value="<?php echo $education[0]->productname;?>">
                                <label for="educationtitle" class="error"></label>
                            </div> 
                            
                            <div class="col-md-6 form-group">
                                <label class="control-label"><strong>START DATE </strong></label>
                                <input type="text" id="from_date" name="from_date" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo date("d-m-Y",strtotime($education[0]->validfrom));?>">
                                <label for="from_date" class="error"></label>
                            </div> 
                           
                            <div class="col-md-6 form-group">
                                <label class="control-label"><strong>END DATE </strong></label>
                                <input type="text" id="to_date" name="to_date" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo date("d-m-Y",strtotime($education[0]->validto));?>">
                                <label for="to_date" class="error"></label>
                            </div>
                           <div class="col-md-6 form-group notforwebinar">
                                <label class="control-label"><strong>UPLOAD IMAGE <span>*</span></strong></label>
                                <input type="file" id="image" name="image" class="form-control"   autocomplete="off"  >
                                <label> Note : image size ( 250 x 180 pixels )</label>
                                <label for="image" class="error"></label> 
                            </div>
                            <div class="col-md-3 offset-3">
                                <div class="form-group">
                                  <a class="btn btn-block btn-info" target="_blank" href="<?php echo base_url().$maineducation[0]->filepath; ?>"><i class="fa fa-file-pdf-o" aria-hidden="true">  VIEW FILE</i></a>
                                </div>
                              </div>
                              <input type="hidden" id="id" name="id" value="<?php echo $maineducation[0]->id; ?>">
                            <input type="hidden" id="image_path" name="image_path" value="<?php echo $maineducation[0]->filepath; ?>">
                            <div class="col-md-6 form-group notforseminar notforwebinar">
                                <label class="control-label"><strong>UPLOAD PDF </strong></label>
                                    <input type="file" id="pdf" name="pdf" class="form-control"   autocomplete="off"  >
                                    <label> Max file size : 10 mb allowed. </label>
                                    <label for="pdf" class="error"></label> 
                             </div>
                             
                             <div class="col-md-3 offset-3">
                                <div class="form-group">
                                  <a class="btn btn-block btn-info" target="_blank" href="<?php echo base_url().$maineducation[0]->filepath_forpdf; ?>"><i class="fa fa-file-pdf-o" aria-hidden="true">  VIEW FILE</i></a>
                                </div>
                              </div>
                               <input type="hidden" id="pdf_path" name="pdf_path" value="<?php echo $maineducation[0]->filepath_forpdf; ?>">
                            <div class="col-md-12 form-group">
                                <label class="control-label"><strong>GST <span>*</span></strong></label>
                                <input type="text" id="gst" name="gst" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo $education[0]->gst;?>">
                                <label for="gst" class="error"></label> 
                            </div>
                            
                            <!-- For Members Start -->
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>DISCOUNT FOR MEMBERS</strong></label>
                                <input type="text" id="memberdiscount" name="memberdiscount" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo $education[0]->memberdiscount;?>">
                                <label for="memberdiscount" class="error"></label> 
                            </div>
                            
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>PRICE FOR MEMBERS</strong></label>
                                <input type="text" id="memberprice" name="memberprice" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo $education[0]->memberprice;?>">
                                <label for="memberprice" class="error"></label> 
                            </div>
                            
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>TOTAL AMOUNT FOR MEMBERS</strong></label>
                                <input type="text" id="membertotalprice" name="membertotalprice" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo $education[0]->membertotalprice;?>" readonly>
                                <label for="membertotalprice" class="error"></label> 
                            </div>
                            <!-- For Members End -->
                            
                            <!-- For Non Members Start -->    
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>DISCOUNT FOR NON-MEMBERS</strong></label>
                                <input type="text" id="nonmemberdiscount" name="nonmemberdiscount" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo $education[0]->nonmemberdiscount;?>">
                                <label for="nonmemberdiscount" class="error"></label> 
                            </div>
                            
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>PRICE FOR NON-MEMBERS</strong></label>
                                <input type="text" id="nonmemberprice" name="nonmemberprice" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo $education[0]->nonmemberprice;?>">
                                <label for="nonmemberprice" class="error"></label> 
                            </div>
                            
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>TOTAL AMOUNT FOR NON-MEMBERS</strong></label>
                                <input type="text" id="nonmembertotalprice" name="nonmembertotalprice" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo $education[0]->nonmembertotalprice;?>" readonly>
                                <label for="nonmembertotalprice" class="error"></label> 
                            </div>
                            <!-- For Non Members End -->
                            
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>ADVERTISEMENT SPACE <span>*</span> </strong></label>
                                <input type="text" id="educationspace" name="educationspace" class="form-control"   autocomplete="off" maxlength="100"  value="<?php echo $education_detail[0]->educationspace;?>" >
                                <label for="educationspace" class="error"></label> 
                            </div>
                            <!--
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong> AREA Sq. Mt. <span>*</span> </strong></label>
                               <input type="checkbox" name="areasqmt[]" value="9" <? echo $areasqmt_9;?>>9
                                <input type="checkbox" name="areasqmt[]" value="12" <? echo $areasqmt_12;?>>12
                                <input type="checkbox" name="areasqmt[]" value="18" <? echo $areasqmt_18;?>>18
                                <input type="checkbox" name="areasqmt[]" value="24" <? echo $areasqmt_24;?>>24
                                <input type="checkbox" name="areasqmt[]" value="36" <? echo $areasqmt_36;?>>36
                                <label for="areasqmt" class="error"></label> 
                            </div>
                            
                            <div class="col-md-12 form-group">
                            </div>
                            -->
                            <!-- For INSTALLMENT Start -->
                            <!--<div class="col-md-4 form-group">
                                <label class="control-label"><strong>INSTALLMENT 1</strong></label>
                                <input type="text" id="installment1" name="installment1" class="form-control"   autocomplete="off" maxlength="100"   value="<?php //echo $advertisement[0]->installment1;?>">
                                <label for="installment1" class="error"></label> 
                            </div>
                            
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>INSTALLMENT 2</strong></label>
                                <input type="text" id="installment2" name="installment2" class="form-control"   autocomplete="off" maxlength="100"   value="<?php //echo $advertisement[0]->installment2;?>">
                                <label for="installment2" class="error"></label> 
                            </div>
                            
                            <div class="col-md-4 form-group">
                                <label class="control-label"><strong>INSTALLMENT 3</strong></label>
                                <input type="text" id="installment3" name="installment3" class="form-control"   autocomplete="off" maxlength="100"   value="<?php //echo $advertisement[0]->installment3;?>">
                                <label for="installment3" class="error"></label> 
                            </div>-->
                            <!-- For INSTALLMENT End -->
                            
                        </div>
                    </div>

          <div class="form-actions">
            <button type="submit" class="btn btn-rounded btn-outline-success col-md-3">SAVE</button>  
            <button type="button" class="btn btn-rounded btn-outline-danger col-md-3" onclick="window.location.href='<?php echo base_url(); ?>education/list'">CANCEL</button>  
          </div>
        </form>
      </div>
    </div>
  </div>
</div>