     <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">Car Location</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-5">
					   <label for="type">Type</label>
					   <select class="form-control" name="type" id="type">
                        	<option value="1">Location</option>
                            <option value="2">Hotel</option>
                       </select>
					</div>
                    
                    <div class="form-group col-lg-8">
					   <label for="code">Location Code</label>
					   <input id="code" name="code" class="form-control" type="text" placeholder="Enter Location" value="<?php echo $location->locationcode?>">
					</div>
                    
                    <div class="form-group col-lg-8">
					   <label for="name">Name</label>
					   <input id="name" name="name" class="form-control" type="text" placeholder="Enter Location" value="<?php echo $location->locationname?>">
					</div>
                    
                    <?php 
			  		if($location->status == 1){
					 	$authorize = "active";
					}elseif($location->status == 0){
					 	$authorize = "disactive";	
					}else{
					 	$authorize = "null";	
					}
			        ?>

                    <div class="form-group col-lg-8">
                    	<label for="status">Status</label>
						<div class="col-lg-12">
                        <input type="radio" name="status" class="flat-red" value="1" <?php echo $authorize == 'active' ? 'checked' : '' ?>> Active 
                        <input type="radio" name="status" class="flat-red" value="0" <?php echo $authorize == 'disactive' ? 'checked' : '' ?>> DisActive
                        </div> 
                    </div>
                    
                    
                    
                    <div class="form-group col-lg-8">
                     <input type="submit" name="update_location" value="Update" class="btn btn-primary"/>
                     <button type="reset" class="btn btn-danger">Reset</button>
                    </div>
                    
                    
                </div>
             </form>
            </div>
        </section>
     </div>
	
    <script>
    	document.getElementById("type").value = "<?php echo $location->type;?>";
	</script>