<tr class="remove" >
    <td colspan="20">
        <h5 class="h4text" style="background: #E2E2E2;padding:7px;margin: 0; font-weight: bold;">Tax Details</h5>
        <table class="table table-bordered table-striped table-responsive left">          
            <tbody>
                 <thead>
                     <tr>
                        <th>S.NO</th>
                        <th>Tax Type</th>
                        <th>Valid From</th>
                        <th>Valid To</th>
                        <th>SGST</th>
                        <th>CGST</th>
                        <th>IGST</th>
                        <th>Created By</th>
                    </tr>
                </thead>
                
                <?php if(!empty($roomTaxData)) { 
                             $i=1;
                    foreach($roomTaxData as $fare) {
            $userName = $this->mainMenu()->fetchUserName($fare['created_by']);
                ?>
                
            <tr>
                <td><?php echo $i;?></td>
                <td><?php echo $fare['tax_type']; ?></td>
                <td><?php echo date('d-m-Y',strtotime($fare['valid_from'])); ?></td>
                <td><?php echo date('d-m-Y',strtotime($fare['valid_to'])); ?></td>
                <td><?php echo $fare['sgst'] ?></td>
                <td><?php echo $fare['cgst'] ?></td>
                <td><?php echo $fare['igst'] ?></td>
                <td><?php echo $userName; ?></td>
            </tr>
                         <?php $i++;} } else {?>
                         <tr><td colspan="8" class="red">No Record Found</td></tr>
                         <?php } ?>
            </tbody>
        </table>
        <h5 class="h4text" style="background: #E2E2E2;padding:7px;margin: 0; font-weight: bold;">Commission Details</h5>
        <table class="table table-bordered table-striped table-responsive left">            
            <tbody>
                 <thead>
                     <tr>
                        <th>S.NO</th>
                        <th>Currency</th>
                        <th>Valid From</th>
                        <th>Valid To</th>
                        <th>Net / Commissionable Rate</th>
                        <th>Commission Rate Type</th>
                        <th>Commission Rate Value</th>
                        <th>Created By</th>
                    </tr>
                </thead>
                
                <?php if(!empty($roomCommissionData)) { 
                             $i=1;
                    foreach($roomCommissionData as $fare) {
            $currency = $this->mainMenu()->fetchCurrencyCode($fare['currency_id']);
            $userName = $this->mainMenu()->fetchUserName($fare['created_by']);
                ?>
                
            <tr>
                <td><?php echo $i;?></td>
                <td><?php echo $currency; ?></td>
                <td><?php echo date('d-m-Y',strtotime($fare['valid_from'])); ?></td>
                <td><?php echo date('d-m-Y',strtotime($fare['valid_to'])); ?></td>
                <td><?php echo $fare['comission_type'] ?></td>
                <td><?php echo $fare['commission_rate_type'] ?></td>
                <td><?php echo $fare['commission_rate_value'] ?></td>
                <td><?php echo $userName; ?></td>
            </tr>
                         <?php $i++;} } else {?>
                         <tr><td colspan="8" class="red">No Record Found</td></tr>
                         <?php } ?>
            </tbody>
        </table>
        
        <h5 class="h4text" style="background: #E2E2E2;padding:7px;margin: 0; font-weight: bold;">Service Charge Details</h5>
        <table class="table table-bordered table-striped table-responsive left">            
            <tbody>
                 <thead>
                     <tr>
                        <th>S.NO</th>
                        <th>Currency</th>
                        <th>Valid From</th>
                        <th>Valid To</th>
                        <th>Service Charge Type</th>
                        <th>Service Charge Value</th>
                        <th>Created By</th>
                    </tr>
                </thead>
                
                <?php if(!empty($roomServiceData)) { 
                             $i=1;
                    foreach($roomServiceData as $fareService) {
            $currency = $this->mainMenu()->fetchCurrencyCode($fareService['currency_id']);
            $userName = $this->mainMenu()->fetchUserName($fareService['created_by']);
                ?>
                
        <tr>
            <td><?php echo $i;?></td>
            <td><?php echo $currency; ?></td>
            <td><?php echo date('d-m-Y',strtotime($fareService['valid_from'])); ?></td>
            <td><?php echo date('d-m-Y',strtotime($fareService['valid_to'])); ?></td>
            <td><?php echo $fareService['service_charge_type'] ?></td>
            <td><?php echo $fareService['service_charge_value'] ?></td>
            <td><?php echo $userName; ?></td>
        </tr>
                         <?php $i++;} } else {?>
                         <tr><td colspan="8" class="red">No Record Found</td></tr>
                         <?php } ?>
            </tbody>
        </table>     
        
        
        <h5 class="h4text" style="background: #E2E2E2;padding:7px;margin: 0; font-weight: bold;">Discount Details</h5>
        <table class="table table-bordered table-striped table-responsive left">            
            <tbody>
                 <thead>
                     <tr>
                        <th>S.NO</th>
                        <th>Currency</th>
                        <th>Valid From</th>
                        <th>Valid To</th>
                        <th>Net / Commissionable Rate</th>
                        <th>Discount Rate Type</th>
                        <th>Discount Rate Value</th>
                        <th>Created By</th>
                    </tr>
                </thead>
                
    <?php if(!empty($roomDiscountData)) { 
                 $i=1;
        foreach($roomDiscountData as $fareDiscount) {
    $currency = $this->mainMenu()->fetchCurrencyCode($fareDiscount['currency_id']);
    $userName = $this->mainMenu()->fetchUserName($fareDiscount['created_by']);
    ?>

    <tr>
    <td><?php echo $i;?></td>
    <td><?php echo $currency; ?></td>
    <td><?php echo date('d-m-Y',strtotime($fareDiscount['discount_valid_from'])); ?></td>
    <td><?php echo date('d-m-Y',strtotime($fareDiscount['discount_valid_to'])); ?></td>
    <td><?php echo $fareDiscount['discount_commission_rate_type'] ?></td>
    <td><?php echo $fareDiscount['discount_comission_type'] ?></td>
    <td><?php echo $fareDiscount['discount_commission_rate_value'] ?></td>
    <td><?php echo $userName; ?></td>
    </tr>
             <?php $i++;} } else {?>
             <tr><td colspan="8" class="red">No Record Found</td></tr>
             <?php } ?>
            </tbody>
        </table>
    </td>
</tr>