<style>
.modal-dialog{
    width:80% !important;  
}
</style>

<div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Markup Logs</h4>
            </div>
            <div class="modal-body">
                <div class="col-sm-12 no-padding">
                    <table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr role="">
            <th>S.No</th>
            <th>Date</th>
            <th>Category</th>
            <th>User Name</th>
            <th>Country</th>
            <th>City</th>
            <th>Booking Module</th>
            <th>Booking Type</th>
            <th>Grade Type</th>
            <th>Amount</th>
            <th>Base</th>
            <th>Extra Hour</th>
            <th>Extra KM</th>
            <th>Modified By</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if (count($markupListing) > 0) {
            $i = 1;

            foreach ($markupListing as $listing) {
                $userName   =   $this->mainMenu()->fetchUserName($listing['modified_by']);
                $bookingModule   =   $this->mainMenu()->fetchBookingModule($listing['master_booking_type_id']);
                ?>
                <tr class="odd" id="main_markup">
                   
                    <td><?php echo $i; ?></td>
                    <td><?php echo date('d-m-Y H:i:s',strtotime($listing['modified_date'])); ?></td>
                    <td>
                        <?php if($listing['markup_category']==3){
                          echo "Country";
                        }else if($listing['markup_category']==4){
                          echo "City";
                        }else if($listing['markup_category']==2){
                          echo "Booking Type";
                        }else if($listing['markup_category']==1){
                          echo "User";
                        } ?>
                    </td>
                    <td><?php echo $listing['first_name']; ?></td>
                    <td><?php echo $listing['country_name']; ?></td>
                    <td><?php echo $listing['city_name']; ?></td>
                    <td><?php echo $bookingModule; ?></td>
                    <td><?php echo $listing['package_name']; ?></td>
                    <td><?php echo $listing['grade_name']; ?></td>
                    <td><?php if($listing['mark_amt_type']=='Rs'){?><i class="fa fa-inr"></i><?php }?> <?php echo $listing['basic_amt']; ?>&nbsp; <?php if($listing['mark_amt_type']=='%'){ echo $listing['mark_amt_type']; ?> <?php }?></td>

                    <td><?php
                        if ($listing['markup_amt_base'] == 1) {
                            echo "Total";
                        } elseif ($listing['markup_amt_base'] == 2) {
                            echo "Base";
                        } else {
                            echo "NA";
                        }
                        ?></td>
                    <td><?php echo $listing['extra_hr_markup']; ?></td></td>
                    <td><?php echo $listing['extra_km_markup']; ?></td>                   
                    <td><?php echo $userName; ?></td>                   
                </tr>
                <?php
                $i++;
            }
        } else {
            ?>
            <tr><td colspan="13" class="red">No Record Found</td></tr>
<?php } ?>
    </tbody>
</table>


                </div>
                
                
            </div>
            <div class="modal-footer">
               
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>