<table id="example1" class="table table-bordered table-striped">
    <thead>
        <tr>
            <th><input type="checkbox"> S. No </th>
            <th>Car Type</th>
            <th>Booking Type</th>
            <th>State</th>
            <th>City</th>

            <th>Price/KM</th>
            <th>Beyond/KM</th>

            <th>Charges/Min</th>

            <th>Type of Dispatch</th>

            <th>Status</th>

            <th>Action</th>

        </tr>
    </thead>
    <tbody>
        <?php
        if ($guidefareListing) {
            $i = 1;
            foreach ($guidefareListing as $listing) {
                ?>
                <tr>
                    <td><input type="checkbox"></td>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $listing['car_type']; ?></td>
                    <td><?php echo $listing['booking_type']; ?></td>
                    <td><?php echo $listing['state_name']; ?></td>
                    <td><?php echo $listing['city_name']; ?></td>
                    <td><?php echo $listing['price_km']; ?></td>
                    <td><?php echo $listing['beyond_km']; ?></td>
                    <td><?php echo $listing['charges_min']; ?></td>
                    <td><?php echo $listing['type_of_dispatch']; ?></td>
                    <td><?php echo $listing['status']; ?></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 class="red " title="Edit Cab" href="#"> <i class="ace-icon fa fa-edit bigger-130"></i> </a>  <a class="red" href="#" title="Delete"> <i class="ace-icon fa fa-trash-o bigger-130"></i> </a> </div></td>
                </tr>
                <?php $i++;
            }
        } else { ?>
            <tr></tr>                               
<?php } ?>
    </tbody>
</table>