<tr>
    <th colspan="2">In</th>
    <th colspan="2">Out</th>
    <th colspan="2">Driver</th>
    <th colspan="2">Client</th>
</tr>
<tr>
    <td style="width:15%;">Booking Id</td>
    <td style="width:15%;"><?php echo $data['data']['booking_id']; ?></td>
    <th style="width:20%;">External Booking Reference</th>
    <td style="width:12.5%;">N/A</td>
    <th style="width:10%;">Rating</th>
    <td style="width:10%;"><?php echo $data['data']['driver_rating']; ?></td>
    <th style="width:12.5%;">Rating</th>
    <td style="width:12.5%;"><?php echo $data['data']['client_rating']; ?></td>
</tr>
<tr>
    <th>UserAgent</th>
    <td><?php echo $data['data']['useragent']; ?></td>
    <th>Arrival Time Pre</th>
    <td><?php echo $data['data']['arrival_time_pre']; ?></td>
    <th>Reason</th>
    <th>N/A</th>
    <th>Reason</th>
    <th>N/A</th>
</tr>
<tr>
    <th>Comments for the client</th>
    <td>N/A</td>
    <th>Arrival Time Post</th>
    <td><?php echo $data['data']['arrival_time_post']; ?></td>
    <th>Comment</th>
    <td>N/A</td>
    <th>Comment</th>
    <td>N/A</td>
</tr>
<tr>
    <th>Comment For the driver</th>
    <td>N/A</td>
    <th>Arrival Time Actual</th>
    <td><?php echo $data['data']['arrival_time_actual']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Drivers Note</th>
    <td><?php echo $data['data']['driver_note']; ?></td>
    <th>Expiration Time</th>
    <td><?php echo isset($data['data']['expiration_time'])?date('Y-m-d h:i:s',strtotime($data['data']['expiration_time'])):''; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Clients Note</th>
    <td><?php echo $data['data']['client_note']; ?></td>
    <th>Actual Driving Duration</th>
    <td><?php echo $data['data']['actual_driven_duration']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Features</th>
    <td><?php echo $data['data']['features']; ?></td>
    <th>Actual Waiting Distance</th>
    <td><?php echo $data['data']['actual_waiting_distance']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Vehicle Type</th>
    <td><?php echo $data['data']['cabtype']; ?></td>
    <th>Actual Distance</th>
    <td><?php echo $data['data']['total_distance']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Is account booking</th>
    <td><?php echo $data['data']['is_account_booking']; ?></td>
    <th>Booking Type</th>
    <td><?php echo $data['data']['bookingtype']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Is Corporate Booking</th>
    <td>N/A</td>
    <th>Booking Date</th>
    <td><?php echo date('Y-m-d H:i:s',strtotime($data['data']['bookingdate'])); ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Is account booking</th>
    <td><?php echo $data['data']['is_account_booking']; ?></td>
    <th>Pickup Date</th>
    <td><?php echo $data['data']['pickupdate']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Is credit card Available</th>
    <td>N/A</td>
    <th>Pickup Area</th>
    <td><?php echo $data['data']['pickuparea']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Voucher Id</th>
    <td><?php echo $data['data']['voucher_id']; ?></td>
    <th>Pickup Address</th>
    <td><?php echo $data['data']['pickupaddress']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Voucher Type</th>
    <td><?php echo $data['data']['voucher_type']; ?></td>
    <th>Drop Address</th>
    <td><?php echo $data['data']['dropaddress']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Voucher Amount</th>
    <td>N/A</td>
    <th>Drop Area</th>
    <td><?php echo $data['data']['droparea']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Voucher Download</th>
    <td><?php $bookingyear = date('Y',strtotime($data['data']['bookingdate'])); 
              $bookingmonth = date('m',strtotime($data['data']['bookingdate'])); 
               $invoicePath = "/invoice/$bookingyear/$bookingmonth/" . $data['data']['booking_id'].".pdf";
              ?> 
            <a download target='_blank' href="<?php echo $invoicePath;?>" class="label label-success">Download Voucher</a></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Estimated Distance</th>
    <td><?php echo $data['data']['estimated_distance']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Estimated Time</th>
    <td><?php echo $data['data']['estimated_time']; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Estimated Price</th>
    <td><?php echo isset($data['data']['estimated_final_price']) ? $data['data']['estimated_final_price'] : ''; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>
<tr>
    <th>Remark</th>
    <td><?php echo isset($data['data']['remark']) ? $data['data']['remark'] : ''; ?></td>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
</tr>