<?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>Hotel</th>
            <th>From Date</th>
            <th>To Date</th>
            <th>Room</th>
            <th>Rate Name</th>
            <th>Currency</th>
            <th>Vendor Type</th>
            <th>Vendor</th>          
            <th>Cancellation</th>
            <th>Type</th>
            <th>Fees</th>
            <th>Created By</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        //echo "<pre>";        print_r($feesFareDetails); die;
        if($feesFareDetails!=""){
        if (count($feesFareDetails) > 0) {
            $i = 1;
            foreach ($feesFareDetails as $listing) {
                $userName   =   $this->mainMenu()->fetchUserName($listing['created_by']);
                $vendor   =   $this->mainMenu()->fetchUserName($listing['vendor_id']);
                //$bookingType   =   $this->mainMenu()->fetchMasterPackaage($listing['booking_type']);
                $cancellationType   =   $this->mainMenu()->fetchCancellationType($listing['cancellation_master_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 $listing['hotel_name']; ?></td>
                    <td><?php echo date('d-m-Y',strtotime($listing['cancel_date_from'])); ?></td>
                    <td><?php echo date('d-m-Y',strtotime($listing['cancel_date_to'])); ?></td>
                    <td><?php echo $listing['room']; ?></td>
                    <td><?php echo $listing['rate_name']; ?></td>
                    <td><?php echo $listing['currency']; ?></td>
                    <td><?php echo $listing['user_role']; ?></td>
                    <td><?php echo $vendor; ?></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="changeHotelRecordStatus('<?php echo $listing['id']; ?>','hotel','change-normal-cancelfees-status','<?php echo $listing['status'];?>','<?php echo $listing['hotel_id'];?>')"> </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('hotel', array('action' => 'add-normal-cancel-fare'), array('query' => array('id' => $listing['hotel_id'],'rate_type'=>$listing['rate_type'],'room_id'=>$listing['room_id'],'currency_id'=>$listing['currency_id'],'vendor_type'=>$listing['vendor_type'],'vendor_id'=>$listing['vendor_id'],'rate_type_id'=>$listing['rate_type_id'],'rate_name_id'=>$listing['rate_name_id'],'cancel_date_from'=>date('Y-m-d',strtotime($listing['cancel_date_from'])),'cancel_date_to'=>date('Y-m-d',strtotime($listing['cancel_date_to']))))); ?>" 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="javascript:void(0)" title="Delete" onclick="changeHotelRecordStatus('<?php echo $listing['id']; ?>','hotel','delete-normal-cancelfees-status','2','<?php echo $listing['hotel_id'];?>')"> <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>
