  <h3><i class="fa fa-inbox"></i> <?php echo $this->translate('Unassigned 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('Unassigned Booking');?></li>
    </ul>-->
    <div class="tab-content">
        <div>
            <div class="listingTableContainer">
                <div class="table-responsive">
                    <table id="unassigned-booking-tbl" class="table table-bordered with-pager table-striped" style="color:#333;">
                        <thead>
                            <tr>
                                <th>S.No.</th>
                                <th>Id</th>
                                <th>PickupTime</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($unassignedBookings);die();
                            if($unassignedBookings){
                                    $i=1;
                            foreach($unassignedBookings as $unassigned){ ?>
                            <tr>
                                <td><?php echo $i;?></td>
                                <td><?php echo $unassigned['ref'];?></td>
                                <td><?php echo $unassigned['ordertime'];?></td>
                                <td><?php echo $unassigned['vehicle'];?></td>
                                <td><?php echo $unassigned['booking_type'];?></td>
                                <td><?php echo (isset($unassigned['partner']))? $unassigned['partner']:''; ?></td>
                                <td><?php echo $unassigned['pickup_area'];?><br/><?php echo $unassigned['departure'];?></td>
                                <td><?php echo $unassigned['drop_area'];?></td>
                                <td><?php echo $unassigned['status'];?></td>
                                <td><a href="<?php echo $this->url('dashboard', array('action'=>'accept-booking'),['query'=>['booking_id'=>$unassigned['id']]]);?>">Accept</td>
                            </tr>
                            <?php $i++;} }else{?>
                               <tr></tr>
                        <?php }?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
  </div>