<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >
<div class="row">
    <div class="col-md-6 margin-bottom-30">
        <div class="hs_heading medium">
            <h3> Update Table</h3>
        </div>
		<form method="post" id="update_tableform">
        <div class="hs_input">
            <label>Table Name</label>
            <input type="text" class="form-control" placeholder="Table Name" name="t_name" id="t_name" value="<?php if(!empty($tabledetails)){ echo $tabledetails[0]->table_name; } ?>">
        </div>
        <div class="hs_input">
            <label>Table No.</label>
            <input type="text" class="form-control" placeholder="Number" name="t_number" id="t_number" value="<?php if(!empty($tabledetails)){ echo $tabledetails[0]->table_no; } ?>">
		</div>
          <div class="hs_input">
            <label>Table capacity</label>
            <input type="text" class="form-control" placeholder="Capacity" name="t_capacity" id="t_capacity" value="<?php if(!empty($tabledetails)){ echo $tabledetails[0]->table_capacity; } ?>">
		</div>
		<div class="hs_input">
            <label>Table Image</label>
            <input type="file" class="form-control"   id="t_image" name="t_image">
		</div>
		<input type="hidden" class="form-control" id="t_id" name="t_id"  value="<?php if(!empty($tabledetails)){ echo $tabledetails[0]->table_id; } ?>">
        <button type="submit" class="btn">Update</button>
		</form>
    </div>
</div>