  <h3><i class="fa fa-inbox"></i> <?php echo $this->translate('Recent Booking');?></h3>
  <div>
<div class="nav-tabs-custom">
    <!--<ul class="nav nav-tabs pull-right">
        <li class="pull-left header"><i class="fa fa-inbox"></i> <?php echo $this->translate('Recent Booking');?></li>
    </ul>-->
    <div class="tab-content">
        <div>
            <div class="listingTableContainer">
                <div class="table-responsive">
                    <table id="recent-booking-tbl" class="table table-bordered with-pager table-striped" style="color:#333;">
                        <thead>
                            <tr>
                                <th>S.No</th>
                                <th>Id</th>
                                <th>PickupDate</th>
                                <th>Vehicle</th>
                                <th>BookingType</th>
                                <th>Partner</th>
                                <th>Departure</th>
                                <th>DropArea</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php //echo '<pre>';print_r($recentBookings);//die();?>
                            <?php if($recentBookings){
                                    $i=1;
                            foreach($recentBookings as $recent){ ?>
                            <tr>
                                <td><?php echo $i;?></td>
                                <td><?php echo $recent['ref'];?></td>
                                <td><?php echo $recent['ordertime'];?></td>
                                <td><?php echo $recent['vehicle'];?></td>
                                <td><?php echo $recent['booking_type'];?></td>
                                <td><?php echo (isset($recent['partner']))? $recent['partner']:''; ?></td>
                                <td><?php echo $recent['pickup_area'];?><br/><?php echo $recent['departure'];?></td>
                                <td><?php echo $recent['drop_area'];?></td>
                                <td><?php echo $recent['status'];?></td>
                                <td><a href="javascript: void(0);" onclick="claimBooking('<?php echo $recent['ref'];?>');">Claim</td>
                            </tr>
                            <?php $i++;} }else{?>
                               <tr></tr>
                        <?php }?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
  </div>
