<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall">All</th>
            <th>Id</th>
            <th>Code</th>
            <th>City</th>
            <th>Name</th>
            <th>Property Type</th>
            <th>Category</th>
            <th>Currency</th>
            <th>Interconnected Rooms</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    
    <tbody>
        <?php
        if ($packageListing) {
            $i = 1;
            foreach ($packageListing as $listing) {
                $userName = $this->mainMenu()->fetchUserName($listing['created_by']);
                $currency = $this->mainMenu()->fetchCurrencyCode($listing['currency']);
                ?>
        <tr>
            <td><input type="checkbox" class="check" rel="<?php echo $listing['id']; ?>"></td>
            <td><?php echo $i; ?></td>
            <td><?php echo $listing['code']; ?></td>
            <td><?php echo $listing['city_name']; ?></td>
            <td><?php echo $listing['name']; ?></td>
            <td><?php echo $listing['hotel_property_type']; ?> </td>
            <td><?php echo $listing['hotel_category_name']; ?> </td>
            <td><?php echo $currency; ?> </td>
            <td><?php echo $listing['interconnected_total_rooms']; ?> </td>
            <td><?php echo $userName; ?></td>
            <td>
                <div id="changestatus-<?php echo $listing['id']; ?>" status="<?php echo $listing['status']; ?>"  class="iconsize <?php echo ($listing['status'] == '1' ? 'aprovestatus' : 'unaprovestatus'); ?>" name="ChangeStatus" onclick="changeRecordStatus('<?php echo $listing['id']; ?>', 'hotel', 'change-record-status', '<?php echo $listing['status']; ?>')">
                </div>
                        </td>
            <td>
                <div class="hidden-sm hidden-xs action-buttons"> 
                    <a href="<?php echo $this->url('hotel', array('action' => 'edit-payment-feature-hotel'), array('query' => array('id' => $listing['id']))); ?>" class="red pointer edit-form" title="Edit Hotel Details"> <i class="ace-icon fa fa-edit bigger-130"></i></a>  
                </div>
            </td>
        </tr>
        <?php $i++;
            }
        } else { ?>
            <tr></tr>                               
<?php } ?>
    </tbody>    
</table>