      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1> Channellimo <small>Preview</small> </h1>

          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Forms</a></li>
            <li class="active">Promotion Code</li>
          </ol>
        </section>

        <section class="content">
        	<div class="col-lg-12">
             <form action="" method="post">
             	<div class="box box-primary col-lg-8">
                	<div class="box-header with-border">
						<h3 class="box-title">FORM EDIT</h3>
					</div>
					
                    <div class="form-group col-lg-8">
                     <label for="code">Code</label>
                     <input id="title" name="code" class="form-control" type="text" placeholder="Enter Code"  value="<?php echo $result->coupon_code;?>">
                    </div>
					
					<div class="form-group col-lg-8">
                     <label for="code">Title</label>
                     <input id="title" name="title" class="form-control" type="text" placeholder="Enter Title" autocomplete="off" value="<?php echo $result->coupon_title;?>">
                    </div>
                    
                    <div class="form-group col-lg-8">
                     <label for="code">Price</label>
                     <input id="price" name="price" class="form-control" type="number" placeholder="Enter Price" value="<?php echo $result->coupon_value;?>">
                    </div>
                    
                    
                    <div class="form-group col-lg-8">
                     <label for="name">From Date</label>
                     <input id="date1" name="from_date" class="form-control" type="text" placeholder="Enter From Date" value="<?php echo date("d-m-Y", strtotime($result->from_date));?>">
                    </div>
                    
                    <div class="form-group col-lg-8">
                     <label for="name">To Date</label>
                     <input id="date2" name="to_date" class="form-control" type="text" placeholder="Enter To Date" value="<?php echo date("d-m-Y", strtotime($result->to_date));?>">
                    </div>
					
					<div class="form-group col-lg-8" style="display:none;">
                     <label for="code">Airline (Only one airline)</label>
     				 <p>Ex MH</p>
                     <input id="airline" name="airline" class="form-control" type="text" placeholder="Enter airline" autocomplete="off" value="<?php echo $result->airline?>"/>
    				</div>
                    
					<div class="form-group col-lg-8">
                     <label for="code">Limited Promo Codes</label>
                     <input id="limited" name="limited" class="form-control" type="text" placeholder="Enter Limited Promo Codes" autocomplete="off" value="<?php echo $result->coupon_limit;?>">
                    </div>
					
					<div class="form-group col-lg-8" style="display:none;">
                     <label for="code">Limited Passenger (Include Child)</label>
                     <select id="passenger" name="passenger" class="form-control">
                          <option value="1" <?php echo $result->adtnum == 1 ? 'selected' : ''?>>1</option>
                          <option value="2" <?php echo $result->adtnum == 2 ? 'selected' : ''?>>2</option>
                          <option value="3" <?php echo $result->adtnum == 3 ? 'selected' : ''?>>3</option>
                          <option value="4" <?php echo $result->adtnum == 4 ? 'selected' : ''?>>4</option>
                          <option value="5" <?php echo $result->adtnum == 5 ? 'selected' : ''?>>5</option>
                          <option value="6" <?php echo $result->adtnum == 6 ? 'selected' : ''?>>6</option>
                          <option value="7" <?php echo $result->adtnum == 7 ? 'selected' : ''?>>7</option>
                          <option value="8" <?php echo $result->adtnum == 8 ? 'selected' : ''?>>8</option>
                          <option value="9" <?php echo $result->adtnum == 9 ? 'selected' : ''?>>9</option>
                     </select>
                    </div>
					
					<!--<div class="form-group col-lg-8" style="display:none;">
                    <label for="code">Payment Method</label>
                    <?php 
						//$payment = json_decode($result->payment_method,true);
					?>
                    <br>
						<label><input type="checkbox" name="payment[]" id="payment[]" value="9168" <?php //if(in_array('9168',$payment)){echo'checked';}  ?>> Pay Way (ABA Pay or QR Code)</label><br>
						<label><input type="checkbox" name="payment[]" id="payment[]" value="9169" <?php //if(in_array('9169',$payment)){echo'checked';}  ?>> Pay Way (ABA Credit Card)</label><br>
						<label><input type="checkbox" name="payment[]" id="payment[]" value="3" <?php //if(in_array('3',$payment)){echo'checked';}  ?>> Acleda</label><br>
						<label><input type="checkbox" name="payment[]" id="payment[]" value="4" <?php //if(in_array('4',$payment)){echo'checked';}  ?>> Pipay</label><br>
						<label><input type="checkbox" name="payment[]" id="payment[]" value="123" <?php //if(in_array('123',$payment)){echo'checked';}  ?>> Wing</label><br>
						<label><input type="checkbox" name="payment[]" id="payment[]" value="9" <?php //if(in_array('9',$payment)){echo'checked';}  ?>> Emoney</label><br>
						<label><input type="checkbox" name="payment[]" id="payment[]" value="234" <?php //if(in_array('234',$payment)){echo'checked';}  ?>> Alipay Barcode</label><br>
						<label><input type="checkbox" name="payment[]" id="payment[]" value="233" <?php //if(in_array('233',$payment)){echo'checked';}  ?>> Alipay QR Code</label><br>
                     </div>-->
					
                    <div class="form-group col-lg-8">
                     <label for="name">Remark</label>
                     <textarea rows="6" id="description" name="description" class="form-control" type="text" placeholder="Enter Description"><?php echo $result->remark;?></textarea>
                    </div>
                    
                    <div class="form-group col-lg-8">
                      <label for="status">Status</label>
                      <div class="col-lg-12">
                          <label><input type="radio" name="status" class="flat-red" value="1" checked> Active</label>&nbsp;&nbsp;
                          <label><input type="radio" name="status" class="flat-red" value="0"> Not active</label> 
                      </div>
                    </div>

                    <div class="form-group col-lg-8" style="margin-bottom:15px;margin-top:15px;">
                     <input type="submit" name="update_promotioncode" value="Update" class="btn btn-primary"/>
                     <button type="reset" class="btn btn-danger">Reset</button>
                    </div><br></br>
                </div>

             </form>
            </div>
        </section>
     </div>

