<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 EXHIBITION / SEMINAR / WEBINAR</h4>
      </div>
      <div class="card-body">
        <form id="update_exhibitionseminarwebinar" class="form-material">
          <div class="form-body">
              <input type="hidden" id="id" name="id" value="<?php echo $exhibitionseminarwebinar[0]->productheaderid; ?>">
              <input type="hidden" id="exhibitionid" name="exhibitionid" value="<?php echo $exhibitionseminarwebinar[0]->exhibitionid; ?>">
              <input type="hidden" id="seminarid" name="seminarid" value="<?php echo $exhibitionseminarwebinar[0]->seminarid; ?>">
              
                        <div class="row">
                            
                            <div class="col-md-6 form-group">
                                <label class="control-label"><strong>SELECT OPTION <span>*</span></strong></label> <br>
                                <?php if($exhibitionseminarwebinar[0]->exhibitionid > 0){echo '<label class="form-control">Exhibition</label>';} ?>
                                <?php if($exhibitionseminarwebinar[0]->seminarid > 0){echo '<label class="form-control">Seminar</label>';} ?>
                                <?php if($exhibitionseminarwebinar[0]->webinarid > 0){echo '<label class="form-control">Webinar</label>';} ?>
                            </div>
                            
                            <div class="col-md-6 form-group">
                                <label class="control-label"><strong>SELECT YEAR <span>*</span></strong></label>
                                <select name="year" id="year" class="form-control">
                                    <option value="">SELECT YEAR</option>
                                    <?
                                        foreach($years_master as $val)
                                        {
                                    ?>     
                                        <option value="<? echo $val->year;?>" <?php if($exhibitionseminarwebinar[0]->year == $val->year){ echo 'selected=""';}?> ><? echo $val->year; ?></option>
                                    <?        
                                        }
                                    ?>
                                </select>
                                <label for="year" class="error"></label>
                            </div>
                           
                            <div class="col-md-12 form-group">
                                <label class="control-label"><strong>NAME <span>*</span></strong></label>
                                <input type="text" id="name" name="name" class="form-control" value="<?php echo $exhibitionseminarwebinar[0]->productname;?>">
                                <label for="name" class="error"></label>
                            </div> 
                            
                            <div class="col-md-12 form-group">
                                <label class="control-label"><strong>OVERVIEW <span>*</span></strong></label>
                                <input type="text" id="overview" name="overview" class="form-control" value="<?php echo $exhibitionseminarwebinar[0]->productdescription;?>">
                                <label for="overview" class="error"></label>
                            </div> 
                            
                            <div class="col-md-12 form-group">
                                <label class="control-label"><strong>VENUE <span>*</span></strong></label>
                                <input type="text" id="venue" name="venue" class="form-control" value="<?php echo $exhibitionseminarwebinar[0]->venue;?>">
                                <label for="venue" class="error"></label>
                            </div>
                           
                            <div class="col-md-6 form-group ">
                                <label class="control-label"><strong>START DATE <span>*</span></strong></label>
                                <input type="text" id="from_date" name="from_date" class="form-control" value="<?php echo date("d-m-Y",strtotime($exhibitionseminarwebinar[0]->validfrom));?>">
                                <label for="from_date" class="error"></label>
                            </div> 
                           
                            <div class="col-md-6 form-group notforseminar">
                                <label class="control-label"><strong>END DATE <span>*</span></strong></label>
                                <input type="text" id="to_date" name="to_date" class="form-control" value="<?php echo date("d-m-Y",strtotime($exhibitionseminarwebinar[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">
                                <label> Note : image size ( 250 x 180 pixels )</label>
                                <label for="image" class="error"></label> 
                            </div>
                            
                            <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">
                                    <label> Max file size : 10 mb allowed. </label>
                                    <label for="pdf" class="error"></label> 
                             </div>
                            
                            <div class="col-md-12 form-group">
                                <label class="control-label"><strong>ADD LINK</strong></label>
                                <input type="text" id="url" name="url" class="form-control" value="<?php echo $exhibitionseminarwebinar_detail[0]->seminarwebinarlink;?>">
                                <label for="url" 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" value="<?php echo $exhibitionseminarwebinar[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" value="<?php echo $exhibitionseminarwebinar[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" value="<?php echo $exhibitionseminarwebinar[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" value="<?php echo $exhibitionseminarwebinar[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" value="<?php echo $exhibitionseminarwebinar[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" value="<?php echo $exhibitionseminarwebinar[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" value="<?php echo $exhibitionseminarwebinar[0]->nonmembertotalprice;?>" readonly>
                                <label for="nonmembertotalprice" class="error"></label> 
                            </div>
                            <!-- For Non Members End -->
                            
                            <div class="col-md-4 form-group notforexhibition notforwebinar">
                                <label class="control-label"><strong>Max no. of Participants <span>*</span> </strong></label>
                                <input type="text" id="maxnoofparticipants" name="maxnoofparticipants" class="form-control" value="<?php echo $exhibitionseminarwebinar_detail[0]->maxnoofparticipants;?>">
                                <label for="maxnoofparticipants" class="error"></label> 
                            </div>
                            <div class="col-md-4 form-group notforseminar notforwebinar">
                                <label class="control-label"><strong>Advertisement Space <span>*</span> </strong></label>
                                <input type="text" id="advertisementspace" name="advertisementspace" class="form-control" value="<?php echo $exhibitionseminarwebinar_detail[0]->advertisementspace;?>" >
                                <label for="advertisementspace" class="error"></label> 
                            </div>
                            <div class="col-md-4 form-group notforseminar notforwebinar">
                                <label class="control-label"><strong> Area Sq. Mt. <span>*</span> </strong></label>
                                <!--<input type="text" id="areasqmt" name="areasqmt" class="form-control" value="<?php //echo $exhibitionseminarwebinar_detail[0]->areasqmt;?>"> -->
                                <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"  value="<?php echo $exhibitionseminarwebinar[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"  value="<?php echo $exhibitionseminarwebinar[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"  value="<?php echo $exhibitionseminarwebinar[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(); ?>exhibitionseminarwebinar/list'">CANCEL</button>  
          </div>
        </form>
      </div>
    </div>
  </div>
</div>