<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_advertisement" class="form-material">
          <div class="form-body">
              <input type="hidden" id="id" name="id" value="<?php echo $advertisement[0]->productheaderid; ?>">
              <input type="hidden" id="advertisementid" name="advertisementid" value="<?php echo $advertisement[0]->advertisementid; ?>">
              
                        <div class="row">
                           
                           <div class="col-md-12 form-group">
                                <label class="control-label"><strong>Title <span>*</span></strong></label>
                                <input type="text" id="advertisetitle" name="advertisetitle" class="form-control"   autocomplete="off" maxlength="255" value="<?php echo $advertisement[0]->productname;?>">
                                <label for="advertisetitle" 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($advertisement[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($advertisement[0]->validto));?>">
                                <label for="to_date" class="error"></label>
                            </div>
                           
                            <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 $advertisement[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 $advertisement[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 $advertisement[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 $advertisement[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 $advertisement[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 $advertisement[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 $advertisement[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="advertisementspace" name="advertisementspace" class="form-control"   autocomplete="off" maxlength="100" value="<?php echo $advertisement_detail[0]->advertisementspace;?>" >
                                <label for="advertisementspace" 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(); ?>advertisement/list'">CANCEL</button>  
          </div>
        </form>
      </div>
    </div>
  </div>
</div>