<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox" class="selectall">All</th>
            <th>Id</th>
            <th>Name</th>
            <th>City</th>           
            <th>Address</th>
            <th>Is Unique</th>
            <th>Covers</th>
            <th>Coverage Km</th>
            <th>Coverage Hrs</th>
            <th>Popularity</th>
            <th>Difficulty Level</th>
            <th>Meeting Point</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']);
                ?>
        <tr>
            <td><input type="checkbox" class="check" rel="<?php echo $listing['s_id']; ?>"></td>
            <td><?php echo $i; ?></td>
            <td><label title="Click Here" rel='<?php echo $listing['s_id']; ?>' class="activity_clickme text-green pointer"><?php echo $listing['name']; ?></label></td>
            <td><?php echo $listing['city_name']; ?></td>
            <td><?php echo $listing['address']; ?></td>
            <td><?php if($listing['is_unique']==1){ echo "Yes";}else{ echo "No";} ?></td>
            <td><?php echo $listing['sightseeing_cover']; ?></td>
            <td><?php echo $listing['coverage_km']; ?></td>
            <td><?php echo $listing['coverage_hrs']; ?></td>
            <td><?php echo $listing['popularity']; ?></td>
            <td><?php echo $listing['difficulty_level']; ?></td>
            <td><?php echo $listing['meeting_point']; ?></td>
            <td><?php echo $userName; ?></td>
            <td>
                <div id="changestatus-<?php echo $listing['s_id']; ?>" status="<?php echo $listing['status']; ?>"  class="iconsize <?php echo ($listing['status'] == '1' ? 'aprovestatus' : 'unaprovestatus'); ?>" name="ChangeStatus" onclick="changeRecordStatus('<?php echo $listing['s_id']; ?>', 'sightseeing', 'change-record-status', '<?php echo $listing['status']; ?>')">
                </div>
                        </td>
            <td>
                <div class="hidden-sm hidden-xs action-buttons"> 
                    <a href="<?php echo $this->url('sightseeing', array('action' => 'edit-general-information'), array('query' => array('id' => $listing['s_id']))); ?>" class="red pointer edit-form" title="Edit Sightseeing Details"> <i class="ace-icon fa fa-edit bigger-130"></i> 
                    </a>  
                    <a class="red" href="<?php echo $this->url('sightseeing', array('action' => 'upload-images'), array('query' => array('id' => $listing['s_id']))); ?>" title="Scheduler Detail" > <i class="ace-icon fa fa-calendar bigger-130"></i></a>
                    <a class="red" href="<?php echo $this->url('sightseeing', array('action' => 'delete-sightseeing-details'), array('query' => array('data' => $listing['s_id']))); ?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a>
                </div>
            </td>
        </tr>
        <?php $i++;
            }
        } else { ?>
            <tr></tr>                               
<?php } ?>
    </tbody>    
</table>