<table id="myTable" class="table table-bordered table-striped">
    <thead>
        <tr role="">
            <th><input type="checkbox" class="selectall" /><span class="lbl"></span> All</th>
            <th>S.No</th>
            <th>Category</th>
            <th>User Name</th>
            <th>Country</th>
            <th>State</th>
            <th>City</th>
            <th>Booking Module</th>
            <th>Booking Type</th>
            <th>Currency</th>
            <th>Grade Type</th>
            <th>Amount</th>
            <th>Base</th>
            <th>Extra Hour</th>
            <th>Extra KM</th>
            <th>Status</th>
            <th>Action</th>
        </tr>
    </thead>
    <tbody>
        <?php
        if (count($markupListing) > 0) {
            $i = 1;

            foreach ($markupListing as $listing) {
                $bookingModule   =   $this->mainMenu()->fetchBookingModule($listing['master_booking_type_id']);
                ?>
                <tr class="odd" id="main_markup">
                    <td class="sorting_1"><input type="checkbox" rel="<?php echo $listing['comp_markup_id'].'-'.$listing['master_booking_type_id']; ?>" class="check" /></td>
                    <td><?php echo $i; ?></td>
                    <td>
                        <?php if($listing['markup_category']==3){
                          echo "Country";
                        }else if($listing['markup_category']==4){
                          echo "City";
                        }else if($listing['markup_category']==5){
                          echo "State";
                        }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['state_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['currency']; ?></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><div id="changestatus1" class="<?php if($listing['status']==1){ echo "aprovestatus";}else{ echo "unaprovestatus";} ?> iconsize" name="ChangeStatus" onclick="changeRecordStatus('<?php echo $listing['comp_markup_id'].'-'.$listing['master_booking_type_id']; ?>','markup','change-record-status','<?php echo $listing['status'];?>')"> </div></td>
                    <td>
                        <div class="hidden-sm hidden-xs action-buttons">
                            <a class="red pointer " title="Edit" href="<?php echo $this->url('markup', array('action' => 'edit-markup-user'), ['query' => ['id' => $listing['comp_markup_id'], 'company_id' => $listing['company_id'], 'type' => $type]]);
                        ?>" id="markup_edit"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>
                        <a class="red" href="<?php echo $this->url('markup', array('action' => 'delete-markup'), array('query' => array('data' => $listing['comp_markup_id'],  'type' => $type))); ?>" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a>
                        <a class="markup_log" href="javascript:void(0)" rel="<?php echo $listing['comp_markup_id']; ?>" title="Contributors History" data-toggle="modal" data-target="#markup-history"><i class="ace-icon fa fa-history bigger-130"></i> </a>
                             </div>
                    </td>
                </tr>
                <?php
                $i++;
            }
        } else {
            ?>
            <tr><td colspan="13" class="red">No Record Found</td></tr>
<?php } ?>
    </tbody>
</table>


<div class="modal fade" id="markup-history" role="dialog">
    <div class="modal-dialog modal-dialogprint">
        <div class="modal-content">
            <div class="modal-dialog">
        <!-- Modal content-->
        <div class="modal-content">  
        </div>
    </div>
        </div>
    </div>
</div>