<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h2 class="modal-title">Cancellation Policy</h2>
</div>
<div class="modal-body" style="height:auto;width:auto;">      
    <div id="home" class="tab-pane fade in active">
        <div style="height:auto;width:auto;">
            <table class="table table-bordered">    
            <tr>
                <th colspan="4">Cancellation Rule</th>
            </tr>
            <?php
            $cancellation_rule = json_decode($cancellation_rule, true);
            if (count($cancellation_rule) > 0) {
                ?>                                     
                        <?php foreach ($cancellation_rule as $key => $value) {  ?> 
                        <tr>
                            <td><strong><?php echo $value['name']; ?></strong></td> 
                              <?php if(!empty($value['cancellation_last_date'])){ 
                                foreach($value['cancellation_last_date'] as $canceldate){  ?>
                                    <td><?php echo $canceldate ?></td> 
                               <?php  }}?>
                            <td><i class="<?php echo $value['currency_icon']; ?>"></i><?php echo $value['cancellation_charge']; ?></td>
                        <?php } ?>
                      </tr>    
                   <?php  } ?>
            </table>  
        </div>
    </div>       
   
</div>
<div class="modal-footer" style="padding-top:2px !important;">
    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
