<?php
/*
Template Name: Contract Thanks
*/
get_header();
require("customfunction.php");  
require("chklogin.php");  
require("islogin.php"); 
$auth=$_REQUEST["auth"];
$guid=$_REQUEST["guid"];
$rfid=$_REQUEST["rfid"];

$apiUrl=$apiBaseUrl."/api/customers/contract.php?apikey=".$apiKey."&time=".$time;
$postdata=$postdata.'&auth='.$auth.'';
$postdata=$postdata.'&guid='.$guid.'';
$postdata=$postdata.'&rfid='.$rfid.'';
//echo $apiUrl;
$resp=GetApiData($apiUrl,$postdata);
$responseAPI=json_decode($resp);
?>
<div class="leadRateInquiryForm bgGray">

 <div class="container">

 <div class="thankyouPage">

 <div class="thankyouContent">
<table border="0" cellspacing="1" cellpadding="3" width="90%">
	<tr><td colspan="2" align="center"><h2>Thank You! Your Reservation is complete.</h2><br /></td></tr>
	<tr style="background-color:#F2F2F2; color:#000000;">
        <td colspan="2" align="center" nowrap="nowrap"><font color="#FF0000" size="+1">Your Credit Card Authorization Form has been authorized.</font></td>
        </tr>
      <tr style="background-color:#FFFFFF; color:#000000;">
        <td colspan="2" align="left" nowrap="nowrap"><font color="#FF0000" size="+1">Trip Details:</font></td>
        </tr>
       <tr style="background-color:#FFFFFF; color:#000000;">
        <td colspan="2" align="center" nowrap="nowrap">
		<table border="0" cellspacing="1" cellpadding="3" width="100%">
		<tr style="background-color:#F2F2F2; color:#000000;">
        <td width="1%" align="left" nowrap="nowrap"><strong>Reservation #:</strong></td>
        <td><?=$responseAPI->reservation_id?></td>
      </tr>
      <tr >
        <td><strong>Pick Up Date:</strong></td>
        <td><?=date('l, F d Y', strtotime($responseAPI->pickup_date))?></td>
      </tr>
      
      <tr style="background-color:#F2F2F2; color:#000000;">
        <td><strong>Pick Time:</strong></td>
        <td><?=date('h:i A', strtotime($responseAPI->pickup_time))?></td>
      </tr>
      <tr>
        <td><strong>Drop of time:</strong></td>
        <td><?=date('h:i A', strtotime($responseAPI->dropoff_time))?></td>
      </tr>
      <tr style="background-color:#F2F2F2; color:#000000;">
        <td><strong>Type of Vehicle:</strong></td>
        <td><?=$responseAPI->Type_of_Vehicle?></td>
      </tr>
      <tr >
        <td nowrap="nowrap"><strong>No. of Passengers:</strong></td>
        <td><?=$responseAPI->no_of_passengers?> Passengers</td>
      </tr>
      
      <tr style="background-color:#F2F2F2; color:#000000;">
        <td><strong>Service Type: </strong></td>
        <td> <?=$responseAPI->ServiceName?></td>
      </tr>
      <tr>
        <td><strong>Total charges:</strong></td>
        <td><strong><font size="+1">$<?=number_format($responseAPI->Vendor_Total_Rate,2)?></font></strong></td>
      </tr>
	  </table></td>
       </tr>
</table>

 </div>
  </div>
    </div>
 </div>
<?php get_footer();?>