<?php //Zend\Debug\Debug::dump($mvehicleList);  ?>
<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr role="">
            <th><input type="checkbox" class="selectall">All</th>
            <th>S.No</th>
            <th>Image</th>
            <th>Country</th>
            <th>Booking Type</th>
            <th>Title</th>
            <th>Description</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if ($pStrtuctureList != "") {
            if (count($pStrtuctureList) > 0) {
                $i = 1;
                foreach ($pStrtuctureList as $listing) {
                    $userName = $this->mainMenu()->fetchUserName($listing['created_by']);
                    ?>
                    <tr>
                        <td><input type="checkbox" class="check" rel="<?php echo $listing['id']; ?>"></td>
                        <td><?php echo $i; ?></td>
                        <?php if(isset($listing['image_path'])&& $listing['image_path']!=""){ ?>
                <td><img src="/upload/transfer_master_image/<?php echo $listing['image_path']; ?>" style="height:50px; width: 50px;"></td>
                <?php } else {?>
                <td><img src="/images/default.png" style="height:50px; width: 50px;"></td>
                <?php }?>
                        <td><?php echo $listing['country_name']; ?></td>
                        <td><?php echo $listing['package_name']; ?></td>
                        <td><?php echo $listing['title']; ?></td>
                        <td><?php echo $listing['description']; ?></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']; ?>', 'transfer-master', 'change-record-status', '<?php echo $listing['status']; ?>')">
                            </div>
                        </td>
                        <td>
                            <div class="hidden-sm hidden-xs action-buttons"> 
                                <a href="<?php echo $this->url('transfer-master', array('action' => 'edit-transfer-master'), array('query' => array('id' => $listing['id']))); ?>" class="red pointer edit-form" title="Edit Cancellation Policy"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>                            
                                <a class="red" href="<?php echo $this->url('transfer-master', array('action' => 'delete-transfer-master'), array('query' => array('data' => $listing['id']))); ?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a>
                            </div>
                        </td>
                    </tr>
                    <?php
                    $i++;
                }
            }
        } else {
            ?>
            <tr>
                <td colspan="8" style="text-align: center;">No Records Found</td>
            </tr>
<?php } ?>
    </tbody>
    <tfoot>
        <tr>
            <th><input type="checkbox"> All</th>
            <th>S.No</th>
            <th>Country</th>
            <th>Booking Type</th>
            <th>Title</th>
            <th>Description</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </tfoot>
</table>
