<?php //Zend\Debug\Debug::dump($taxFare); ?>
<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>Booking Module</th>
            <th>Booking Type</th>          
            <th>Cancellation</th>
            <th>Type</th>
            <th>Fees</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if($feesFareDetails!=""){
        if (count($feesFareDetails) > 0) {
            $i = 1;
            foreach ($feesFareDetails as $listing) {
                $userName   =   $this->mainMenu()->fetchUserName(isset($listing['created_by'])?$listing['created_by']:'');
                $bookingType   =   $this->mainMenu()->fetchMasterPackaage($listing['booking_type']);
                $cancellationType   =   $this->mainMenu()->fetchCancellationType($listing['cancellation_master_id']);
                $bookingModule   =   $this->mainMenu()->fetchBookingModule($listing['master_booking_type_id']);
                ?>
                <tr>
                    <!--<td class="sorting_1"><input type="checkbox" class="check" rel="<?php echo $listing['id']; ?>"></td>-->
                    <td><?php echo $i; ?></td>
                    <td><?php echo $bookingModule; ?></td>
                    <td><?php echo $bookingType; ?></td>
                    <td><?php echo $cancellationType; ?></td>
                    <td><?php echo $listing['cancellation_type']; ?></td>
                    <td><?php echo $listing['cancellation_value']; ?></td>
                    <td><?php echo $userName; ?></td>
                   <td><div id="changestatus1" class="<?php if($listing['status']==1){ echo "aprovestatus";}else{ echo "unaprovestatus";} ?> iconsize" name="ChangeStatus" onclick="changeRecordStatus('<?php echo $listing['id']; ?>','setting','change-guide-cancelfees-status','<?php echo $listing['status'];?>')"> </div></td>
                    <td>
                        <div class="hidden-sm hidden-xs action-buttons"> <!--<a class="blue" href="#"> <i class="ace-icon fa fa-search-plus bigger-130"></i> </a>-->
                            <a href="<?php echo $this->url('setting', array('action' => 'add-guide-fees'), array('query' => array('id' => $listing['booking_type']))); ?>" class="red pointer edit-form" title="Edit" rel="<?php echo $listing['id']; ?>"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>
                            <a class="red" href="<?php echo $this->url('setting', array('action' => 'delete-guide-cancel-fees-detail'), 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>
</table>
