<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\OAuth;
use Stevenmaguire\OAuth2\Client\Provider\Microsoft;

require APP_PATH.'vendor/autoload.php';
require_once(CLASSES_PATH . "job.php");
require_once(CLASSES_PATH . "chargeAccount.php");
require_once(CLASSES_PATH . "user.php");
require_once(CLASSES_PATH . "jobReference.php");
include(''.INCLUDE_PATH.'functions_date_time.php');

//On Server

/*
//FOR BOOKINGS	
	
		public function sendBookingReceiptToSomeone($job_reference_id, $receiver_email, $receiver_name)
		
		public function sendMailToChargeAccountsOnBooking($job_reference_id)
		
		public function sendMailToClientOnBooking($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)

		public function sendMailToClientForIndividualBooking($job_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)

		public function sendMailToAdminOnBooking($job_reference_id)
		
		public function sendJobOfferToDriver($driver_id, $job_id, $offer_amount, $driver_notes='')
		
		public function sendJobDetailsToDriver($job_id, $driver_id, $job_price, $driver_notes='')

//FOR DRIVERS

		public function mass_email($first_char, $subject, $body)
		
		public function sendCollectiveJobDetailsToDriver($job_ids, $driver_id, $job_price, $driver_notes='')

		public function sendBulkJobOfferToADriver($driver_id, $jobs_array)

		public function sendBulkJobDetailsToADriver($driver_id, $unique_code)

FOR INVOICE
		
		public function sendInvoice($from, $fromname, $to_email, $to_title, $to_fname, $to_lname,$this_invoice_id, $mail_body)

//FOR UNIVERSITIES		
				
		public function sendMailToMonashClaytonStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
				
		public function sendMailToMonashCollegeStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
				
		public function sendMailToMonashAbroadStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
				
		public function sendMailToMelbourneUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
				
		public function sendMailToDeakinUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
		
		public function sendMailToLatrobeUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
		
		public function sendNoShowEmailForUnderEighteenStudents($job_id, $receiver_email, $receivers_name)

		public function sendNoShowEmailForStudents($job_id, $receiver_email, $receivers_name)

		public function sendHomeStayEmailToUniversity($job_id, $university_name, $email_to)
		
*/

class Mailer
	{
/*---------------------------------------------------------------------------------------------------------------------*/	
								
		const DOCUMENT_HEADER 			= 	'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
											<html xmlns="https://www.w3.org/1999/xhtml">
											<head>
												<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
												<title>Booking Confirmation</title>
												<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
											</head>';
											
		const BODY_START				=	'<body style="margin: 0; padding: 0;">';
		const EMAIL_HTML_HEADER 		= 	'<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; background: #eee;">
												<tr>
													<td align="left" width="30%">
														<!--<img src="https://aerocorporatecars.com/Admin/Images/logo_Allied.png" alt="Allied Cars" height="40%" style="display: block;" />-->
													</td>
													<td align="right" width="70%">
														<table border="0" cellpadding="5" cellspacing="0" style="font-size:70%;">
															<tr>
																<td colspan="2"><b>Bookings and Support</b></td>
															</tr>
															<tr>
																<td>Phone:</td>
																<td>(+61) 425 865 955</td>
															</tr>
															<tr>
																<td>Email:</td>
																<td>aero@aerocorporatecars.com</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>';
			const EMAIL_HTML_FOOTER		=	'<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #666; background: #3b0552;">
												<tr>
													<td align="center" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 85%;">
														Copyright &#169; 2025 Aero Cars . All Rights Reserved.
													</td>
												</tr>
												<tr>
													<td align="center" bgcolor="#70bbd9" style="padding: 5px 0 5px 0; font-size: 85%;">
														<a href="https://aerocorporatecars.com">Aero Cars Website</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;  
														<a href="https://aerocorporatecars.com/email_disclaimer">Email Disclaimer</a>
													</td>
												</tr>
											</table>';
											
			const BODY_END				=	'</body></html>';
			
			const MOBILE_HEADER =	'<!doctype html>
										<html xmlns="https://www.w3.org/1999/xhtml">
											<head>
												<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
												<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
												<title>Aero Cars</title>
												<style type="text/css">
													.ReadMsgBody
														{
															width: 100%;
															background-color: #ffffff;
														}
													.ExternalClass
														{
															width: 100%;
															background-color: #ffffff;
														}
													body 
														{
															width: 100%;
															background-color: #ffffff;
															margin: 0;
															padding: 0;
															-webkit-font-smoothing: antialiased;
															font-family: Arial, Helvetica, sans-serif;
															font-size: 1.3em
														}
													table 
														{
															border-collapse: collapse;
														}
													.center {text-align: center!important;}
													.left {text-align: left!important;}
													.backImg{ width:100%;}
													
													.responsive-image
														{
															width: 100%;
															background-size: 100% 100%;
															background-repeat:no-repeat;
														}
													@media only screen and (max-width: 640px) 
														{
															.deviceWidth {
															width: 100% !important;
															padding: 0;
														}
													@media only screen and (max-width: 479px) 
														{
															.deviceWidth {width: 100% !important;padding: 0;}
															.center {text-align: center!important;}
															.left {text-align: left!important;}
														}
												</style>
											</head>
											<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" yahoo="fix">
												<table width="100%" align="center" style="border:2px solid #dddddd;">
													<tr>
														<td>
															<table width="100%" bgcolor="#fafafa" style="border-bottom:2px solid #dddddd; border-spacing: 5px; padding: 5px; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #687074; line-height: 20px;">
																<tr>
																	<td width="100%" ><!--Start logo-->
																		<table  border="0" cellpadding="0" cellspacing="0" align="left" class="deviceWidth">
																			<tr>
																			<b><h2>AERO CORPORATE CARS</h2>
																			Servicing International Students</b>
																				<!-- <td class="center" style="padding: 10px 20px 10px 20px"><img src="https://aerocorporatecars.com/Admin/Images/logo_Allied.png" alt="Aero Cars" height="90%" style="display: block;" /></td> -->
																			</tr>
																		</table>                  
																		<table  border="0" cellpadding="0" cellspacing="0" align="right" class="deviceWidth">
																			<tr>
																				<td class="left" style="font-size: 14px; color: #272727; font-weight: bold; text-align: left; font-family: Arial, Helvetica, sans-serif; line-height: 25px; vertical-align: middle; padding: 10px 20px 10px 20px;"> Email: <a href="mailto:aero@aerocorporatecars.com" target="_blank" style="color:#00AEEF;">aero@aerocorporatecars.com</a></td>
																			<tr/>
																			<tr>
																				<td class="left" style="font-size: 14px; color: #272727; font-weight: bold; text-align: left; font-family: Arial, Helvetica, sans-serif; line-height: 25px; vertical-align: middle; padding: 10px 20px 10px 20px;"> Website: <a href="https://aerocorporatecars.com" target="_blank" style="color:#00AEEF;">Aero Cars</a></td>
																			</tr>
																			<tr>
																				<td class="left" style="font-size: 14px; color: #272727; font-weight: bold; text-align: left; font-family: Arial, Helvetica, sans-serif; line-height: 25px; vertical-align: middle; padding: 10px 20px 10px 20px;"> Phone: <a href="1300 650 019" target="_blank" style="color:#00AEEF;">1300 650 019</a></td>
																			</tr>
																		</table>
																	</td>
																</tr>
															</table>
															<table width="100%" border="0" cellpadding="15px" cellspacing="0" align="center" class="deviceWidth" style="background:fff; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #687074; line-height: 20px;">
																<tbody>
																	<tr>
																		<td>';
																		
																		
			const MOBILE_FOOTER = 										'</td>
																	</tr>
																</tbody>									
															</table>
															<table width="100%" bgcolor="#fafafa"  border="0" cellpadding="10px" cellspacing="0" align="left" class="deviceWidth">
																<tbody>
																	<tr>
																		<td class="center" style="font-size: 12px; color: #687074; font-weight: bold; text-align: justify; font-family: Arial, Helvetica, sans-serif; line-height: 20px; vertical-align: middle; padding: 10px 15px 10px; border-top:1px solid #dddddd;">
																			<b>EMAIL DISCLAIMER :</b><br/>
																			This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email at aero@aerocorporatecars.com. If you have received this email by mistake, then delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free, as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. Finally, the recipient should check this email and any attachments for the presence of viruses. The organisation accepts no liability for any damage caused by any virus transmitted by this email.                       
																		</td>
																	</tr>
																</tbody>
															</table>
															<table width="100%" bgcolor="#fafafa"  border="0" cellpadding="0" cellspacing="0" align="center" class="deviceWidth"  >
																<tr>
																	<td class="center" style="font-size: 12px; color: #687074; font-weight: bold; text-align: center; font-family: Arial, Helvetica, sans-serif; line-height: 20px; vertical-align: middle; padding: 10px 15px 10px; border-top:1px solid #dddddd;" >
																		<a href="https://aerocorporatecars.com" style="color:#687074;">Aero Cars</a><br/>
																		<!-- <img src="https://aerocorporatecars.com/Admin/Images/logo_Allied.png" alt="Aero Cars" height="60%" style="display: block;" /> -->
																	</td>
																</tr>
																<tr>
																	<td class="center" bgcolor="#272727" style="font-size: 12px; color: #fff; font-weight: bold; text-align: center; font-family: Arial, Helvetica, sans-serif; line-height: 25px; vertical-align: middle; padding: 10px 50px 10px 50px;" > Copyright © Aero Cars 2025 </td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</body>
										</html>';
		
//----------------------------------------------------------------------------------------------------------------------/					
		public function sendMailToChargeAccountsOnBooking($job_reference_id)
			{
				$job = new job();
				$job_reference 	= new JobReference();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
				$admin_array = $chargeaccounts->getAllChargeAccountContacts($job_reference_details['charge_acc_id']);
				$j1_details = $job->getJobDetails($job_reference_details['j1_id']);

				foreach($admin_array AS $admin)
					{
						if($admin['email'] != '')
						{
							$mail 			= new PHPMailer();
							$admin_id = base64_encode(base64_encode($admin['id']));
							  
							//$mail->addAddress('sucheta.testmail@gmail.com', $admin['fname'].' '.$admin['lname']);  // Add a recipient
							$mail->addAddress($admin['email'], $admin['fname'].' '.$admin['lname']);  // Add a recipient
							$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Cars');
							if($job_reference_details['acc_type'] == '3')
							{
								$mail->Subject = 'Requesting Approval for Booking for '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' '.$job_reference_details['std_id'].' - '.date("l, d F, Y", strtotime($j1_details['job_date']));
							}
							else{
								$mail->Subject = 'Requisition for Booking';
							}
							
							 
							$mail->Body    = self::DOCUMENT_HEADER;
							$mail->Body    .= self::BODY_START;
							$mail->Body    .= self::EMAIL_HTML_HEADER;
							$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
													<tr>
														<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">
															<strong>Booking Received</strong>
														</td>
													</tr>
												</table>
												<br/>
												<strong>Dear '.$admin['fname'].' '.$admin['lname'].', </strong><br/>
												We have received the following booking request. <br/><br/>';
							$mail->Body		.= $job->getHTMLofWholeBooking($job_reference_id); 
							
							$mail->Body		.= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0"><tr><td>';
							$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/university_booking_approval.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=1'>Approve this Booking</a ><br /><br />"; // I added /
							$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/university_booking_approval.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=2'>Decline this booking</a ><br /><br />"; // I added /
							$mail->Body		.= '</td><tr></table>';
							$mail->Body    .= self::EMAIL_HTML_FOOTER;
							$mail->Body    .= self::BODY_END;
							$mail->send();
						}
					}
			} 	

//----------------------------------------------------------------------------------------------------------------------/		
		public function sendBookingReceiptToSomeone($job_reference_id, $receiver_email, $receiver_name)
			{	
				$mail 			= new PHPMailer();				
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 			= $job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
					
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
				$mail->addAddress($receiver_email, ''.$receiver_name.'');  // Add a recipient Monash
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Cars');
				
				
				
				$mail->Subject = "Received Booking ID - ".$job_reference_details['j1_id']."";
				
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				
				
				$mail->Body    .= '<strong>BOOKING CONFIRMATION - Booking ID - '.$job_reference_details['j1_id'].'</strong></td></tr></table><br/>';
				$mail->Body    .= '<strong>Dear '.$receiver_name.',</strong><br/><br/>';
				
				$mail->Body  .='<strong>IF YOU CAN\'T FIND YOUR DRIVER, FIND A PUBLIC PHONE AND RING AERO ON 1800 350 850</STRONG> (this is a <strong>free</strong> call, <strong>NO</strong> coins needed)<br /><br />';
				$mail->Body    .='<strong>YOU NEED TO PRINT THIS CONFIRMATION EMAIL AND BRING IT WITH YOU TO SHOW THE AERO REPRESENTATIVE.</strong><br /><br />';
				$mail->Body  .="Thank you for your airport pickup request as per details below. <br/><br/>
											Please review your booking details and let us know immediately if they are not accurate. <br /><br />
											<strong>IMPORTANT INFORMATION</strong><br/><br/>
											A driver from Aero Cars (Aero) will meet you in Melbourne Airport's International Arrival Hall T2. If you are arriving on an International Flight, turn lsft when you leave the customs area and go towards 'The Welcome Centre' (near Yes Optus Mobile Shop).
											Your driver will hold a 'MONASH' or 'AERO' sign for easy identification and will take you to your destination as per your instructions below.<br /><br />
											If you are arriving on a Domestic Flight, make your way to the arrivals area in the international terminal T2. <br /><br />
											<strong>No driver waiting at Melbourne Airport</strong><br/><br/>
											Go to 'The Meeting Point'.  If your driver is not there within 15 minutes find the nearest public telephone and call us on 1800 350 850 (this is a <strong>free</strong> call, <strong>NO</strong> coins needed) so they can locate your driver. When calling, give us your Student ID number (this is in your offer letter), family name and given name.<br/><br/>
											<STRONG>Please note,</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a <strong>cancellation fee </strong> to ".$chargeaccount_details['account_name']." . <br /><br />
											You can contact us by email aero@aerocorporatecars.com or by phone <strong>1800 350 850.</strong> <br /><br />
											<strong>City of Melbourne - International Student Welcome Booth</strong><br/><br/>
											The City of Melbourne operates the 'Student Welcome Desk' at Melbourne Airport where volunteers greet you and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in Melbourne.<br/><br/> 
											<strong>Changes to or cancellation of your flight</strong><br/><br/>
											To change or cancel your airport pickup booking, contact us at least one full working day before you arrive to avoid additional costs.  Our office hours are 9am to 5pm Monday to Friday, Australian Eastern Standard Time.<br/><br/> 
											To change your arrival details on Saturday or Sunday, telephone +61 425 865 955.<br/><br/> 
											If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.  This will ensure your driver is at Melbourne Airport to meet you.<br/><br/>
											<br/><br/>
											
								"; 
				$mail->Body    .= $booking_html;
				
				$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
									<tr>
										<td>
										Thank you for booking with us.<br/>Kind Regards, <br /><br/><strong>Aero Corporate Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
										<strong>Email:</strong> aero@aerocorporatecars.com <br />
										<strong>Telephone:</strong> +61 425 865 955 <br /><br/>
										</td>
									</tr>
									<tr>
										<td>
											New bookings or bookings cancellations and or amendments are valid only on receipt of our confirmation. <br /><br />
										</td>
									</tr>
								</table>";
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
				$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Melbourne_Airport_Map_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf'); 
				$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'Look_For.pdf','base64','application/pdf');
				//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
				$mail->send();
			}			
/*---------Send booking confirmation to booking made by a pax-----------------------------------------------------------------*/	
		public function sendMailToClientOnBooking($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
			{
				// $email_type = 1; Means Booking Confirmed
				// $email_type = 2; Means Booking Received by not confirmed yet
				// $email_type = 3; Means Booking Rejected
				// $email_type = 4; Means Booking not approved by university
				
				//initialize classes
				
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 			= $job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
				
				if($email_type == '1' && $job_reference_details['acc_type'] == '3' && $chargeaccount_details['id'] == '9')
					{
						$this->sendMailToMonashClaytonStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname);
					}
				else if($email_type == '1' && $job_reference_details['acc_type'] == '3' && $chargeaccount_details['id'] == '55')
					{
						$this->sendMailToMonashCollegeStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname);
					}
				else if($email_type == '1' && $job_reference_details['acc_type'] == '3' && $chargeaccount_details['id'] == '19')
					{
						$this->sendMailToMonashAbroadStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname);
					}
				else if($email_type == '1' && $job_reference_details['acc_type'] == '3' && $chargeaccount_details['id'] == '473')
					{
						$this->sendMailToMelbourneUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname);
					}
				else if($email_type == '1' && $job_reference_details['acc_type'] == '3' && $chargeaccount_details['id'] == '506')
					{
						$this->sendMailToDeakinUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname);
					}
				else if($email_type == '1' && $job_reference_details['acc_type'] == '3' && $chargeaccount_details['id'] == '599')
					{
						$this->sendMailToLatrobeUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname);
					}
				else
				{
					if($job_reference_details['job_type'] == '2') //return job
						{
							$j2_details = $job->getJobDetails($job_reference_details['j2_id']);
						}
					$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
					
					$mail->addAddress($receiver_email, ''.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.'');  // Add a recipient
					$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Cars');
					
					
					
					if($email_type == '1')
						{
							if($job_reference_details['job_type'] == '1')
								{
									$mail->Subject = "Confirmation for Booking for.. ".$job_reference_details['std_title']." ".$job_reference_details['std_fname']." ".$job_reference_details['std_lname']." ".$job_reference_details['std_id']." - ".formatDate($j1_details['job_date'], '3')." - Booking ID - ".$job_reference_details['j1_id']."";
								}
							if($job_reference_details['job_type'] == '2')
								{
									$mail->Subject = "Confirmation of Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
								}
						}
					if($email_type == '2')
						{
							if($job_reference_details['job_type'] == '1')
								{
									//$mail->Subject = "Bookings Received, waiting for confirmation, Booking ID - ".$job_reference_details['j1_id']."";
									$mail->Subject = "".$job_reference_details['std_id']." - Requesting Approval for Booking for ".$job_reference_details['std_title']." ".$job_reference_details['std_fname']." ".$job_reference_details['std_lname']." - ".formatDate($j1_details['job_date'], '3')." - Booking ID - ".$job_reference_details['j1_id']."";
								}
							if($job_reference_details['job_type'] == '2')
								{
									$mail->Subject = "Bookings Received, waiting for confirmation, Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
								}
						}
					if($email_type == '3')
						{
							if($job_reference_details['job_type'] == '1')
								{
									$mail->Subject = "Booking Request Declined, Booking ID - ".$job_reference_details['j1_id']."";
								}
							if($job_reference_details['job_type'] == '2')
								{
									$mail->Subject = "Booking Request Declined, Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
								}
						}
					if($email_type == '4')
						{
							if($job_reference_details['job_type'] == '1')
								{
									$mail->Subject = "Booking Request Declined by University, Booking ID - ".$job_reference_details['j1_id']."";
								}
						}
					$mail->Body    .= self::DOCUMENT_HEADER;
					$mail->Body    .= self::BODY_START;
					$mail->Body    .= self::EMAIL_HTML_HEADER;
					$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
											<tr>
												<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
												
					// $email_type = 1; Means Booking Confirmed
					// $email_type = 2; Means Booking Received but not confirmed yet
					// $email_type = 3; Means Booking Rejected
					// $email_type = 4; Means Booking not approved by university
					
					if($email_type == '1')
						{	
							$mail->Body    .= '<strong>Booking Confirmation</strong></td></tr></table><br/>';
						}
					if($email_type == '2')
						{
							$mail->Body    .= '<strong>Booking Request Received</strong></td></tr></table><br/>';
						}
					if($email_type == '3')
						{
							$mail->Body    .= '<strong>Booking Request Failed</strong></td></tr></table><br/>';
						}
					if($email_type == '4')
						{ 
							$mail->Body    .= '<strong>Booking Request Failed</strong></td></tr></table><br/>';
						}
					if($email_type =='1' && $job_reference_details['acc_type'] == '3' && $chargeaccount_details['id'] == '15' ){
						//$mail->Body    .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Student<br /><strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
						$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
					}
					else{
						$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
					}
					
					if($email_type == '1')
						{
							if($job_reference_details['acc_type'] == '3') 
							{
								//if($chargeaccount_details['account_name'] == 'RMIT University')
								if($chargeaccount_details['id'] == '15')
								{
									$mail->Body .= "<b>Please refer to your attachments<b/><br/>,br/>
													Thank you for booking with us and we are now pleased to confirm your arrival pick-up. <br /><br />
													Our staff will meet you at the airport. They will be holding a placard <strong>\"RMIT UNIVERSITY\"</strong>. <br/><br />
													You have to let us know the number of luggage you have.  Please note if your excess luggage do not fit in a standard sedan's boot, you will have to arrange a taxi to transport any excess luggage. <br /><br />
													Please refrain from bringing food into Australia. As this <strong>will</strong> delay your immigration and customs clearance time and you <strong>may incur extra charges.</strong><br /><br />
													You must look for our driver <strong>immediately</strong> at the Meeting Point of your arriving terminal.<br /><br />
													If you experience a delay or cannot find our driver, you must ring us on <strong>1800 350 850</strong> (FREE CALL) from any public phone.<br /><br />
													Please note a no show fee of <strong>AU$105</strong> applies if you do not inform us of any changes to your arrival itinerary or do not use the service.<br /><br />
													
													If you arrive at:<br /><br />
													<img src='https://aerocorporatecars.com/Admin/Images/bullet_icon.png' alt=' ' width='10px' height='9px' />&nbsp; <strong>Melbourne Airport-T2 (International) </strong> , you will be met at the \" Meeting Point \" located next to the Groups and Tours desk. A large red sign denotes the area. Refer to \"Key 11\" of the attached Melbourne Airport Map..<br /><br />
													<img src='https://aerocorporatecars.com/Admin/Images/bullet_icon.png' alt=' ' width='10px' height='9px' />&nbsp; <strong>Qantas Domestic Terminal</strong>, please go to the \"Meeting Point\" located opposite Baggage Carousel 3.  If you can't find your driver at the Domestic terminal, please go to <strong>T2</strong> (<strong>International</strong>, next door to your right).<br /><br />
													<img src='https://aerocorporatecars.com/Admin/Images/bullet_icon.png' alt=' ' width='10px' height='9px' />&nbsp; <strong>Virgin Australia Terminal</strong>, please go to the \"Meeting Point\" below the escalators. If you can't find your driver at the Domestic terminal, please go to <strong>T2</strong> (<strong>International</strong>, next door to your left). <br /><br />
													<img src='https://aerocorporatecars.com/Admin/Images/bullet_icon.png' alt=' ' width='10px' height='9px' />&nbsp; <strong>Terminal 4 (Tiger Airways)</strong>, you have to ring Aero Cars on <strong>1800 350 850 </strong> from <strong>any</strong> public phone (Free Call), the staff will direct you to the meeting point. <br /><br /><br />
													If you are unable to find our staff or have made changes to your arrival itinerary, you must call us. <br/>
													Otherwise we cannot guarantee airport pick-up and you will be charged for the service. <br />";
									
								}
								else
								{
									
									$mail->Body  .="Thank you for booking with us and we are now pleased to confirm your arrival details. <br /><br />
												Please review the booking details and let us know immediately if they are not accurate. <br /><br />
												<strong>IMPORTANT INFORMATION</strong><br/><br/>
												It is <strong>very</strong> important for <strong>Aero Cars </strong> to know how much luggage you are going to have, if you haven't done so please email us  <strong>aero@aerocorporatecars.com</strong> to let them know. <br /><br />
												Our staff will meet you at the airport. <br /><br />
												If you are arriving from an International Flight, clear customs and make your way into the arrivals area (turn right when exiting Customs), where your driver will be waiting for you near The Welcome Centre Shop.<br /><br />
												If you are arriving from a Domestic Flight, make your way to the arrivals area in the international terminal and your driver will be waiting for you near The Welcome Centre Shop. <br /><br />
												If you can't find your driver once you arrive in Melbourne please ring us on our toll free number <strong>1800 350 850.</strong> <br /><br />
												You have <strong>forty five minutes</strong> from the moment that the plane lands to meet your driver.<br /><br />
												<STRONG>Please note,</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a <strong>cancellation fee of A$105</strong> to ".$chargeaccount_details['account_name']." . <br /><br />
												You can contact us by email aero@aerocorporatecars.com or by phone <strong>1800 350 850.</strong> <br /><br />
												"; 
									
								}
							}
							else
							{
								$mail->Body  .='This is a confirmation for booking request you have made with us.<br/> <!-- this one that gests sent 1st to corporate clients-->
											Please review the booking details and let us know immediately if they are not accurate.<br/>
											You can contact us by email aero@aerocorporatecars.com Also you can contact us by phone '. MAIL_PHONE.' <br/><br/>'; //You can contact us by email '.MAIL_EMAIL.' Also you can contact us by phone '. MAIL_PHONE.' <br/><br/>';
							}
						}
					if($email_type == '2')
						{
							$mail->Body  .='We have received your booking request. We will get get back to you shortly with a confirmation email.<br/>
											In the mean time, please review the booking details and let us know immediately if they are not accurate.<br/>
											You can contact us by email aero@aerocorporatecars.com Also you can contact us by phone '. MAIL_PHONE.' <br/><br/>'; //You can contact us by email '.MAIL_EMAIL.' Also you can contact us by phone '. MAIL_PHONE.' <br/><br/>';
						}
					if($email_type == '3')
						{
							$mail->Body  .='This is to let you know that at this moment the time and date you have requested, we are unable to accommodate your booking request. However, please do not hesitate to contact us, if there is any changes to your trip itinerary. We really appreciate your business and would always like to server you with professionalism and smile.<br/><br/>';
						}
					if($email_type == '4')
						{
							$mail->Body  .='This is to let you know that at this moment the time and date you have requested, we are unable to accommodate your booking request. <br/><br/>';
						}
					//if($email_type =='1' && $job_reference_details['acc_type'] == '3' && $chargeaccount_details['id'] == '15' )// Commented out as RMIT Students were not getting the details of the booking
					if($email_type =='1' && $job_reference_details['acc_type'] == '3')
						{
							$mail->Body    .= $booking_html;
						}
					else 
						{
							$mail->Body    .= $booking_html;
						}
					
					if($email_type == '4')
						{
							$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
							$mail->Body    .= '<table align="center" width="100%"  cellpadding="5" cellspacing="0">
											<tr>
												<td>
												Thank you.<br/>Kind Regards<br/>Admin<br/><strong>'.$chargeaccount_details['account_name'].'</strong><br/><br/>
												</td>
											</tr>
										</table>';
							$mail->Body    .= self::EMAIL_HTML_FOOTER;
							$mail->Body    .= self::BODY_END;
						}
					else if($email_type == '1')
					{
						if($chargeaccount_details['id'] == '15') //RMIT
							{
								$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
											<tr>
												<td>
												<br /><strong>Aero Corporate Cars </strong><br /><br/>
												<strong> 1800 350 850 (Free call within Australia)</strong> <br />
												<strong>+61 425 865 955 (Calling From Overseas)</strong>  <br /><br/>
												</td>
											</tr>
										</table>"; 
								$mail->Body    .= self::EMAIL_HTML_FOOTER;
								$mail->Body    .= self::BODY_END;
								$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Melbourne_Airport_Map_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
								$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'RMIT.pdf','base64','application/pdf');
								// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
								$mail->send();
							}
						else
						{
							$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
										<tr>
											<td>
											Thank you for booking with us.<br/>Kind Regards, <br /><br/><strong>Aero Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
											<strong>Email:</strong> aero@aerocorporatecars.com <br />
											<strong>Telephone:</strong> +61 425 865 955 <br /><br/>
											</td>
										</tr>
										<tr>
											<td>
												<BR />
												New bookings or bookings cancellations and or amendments are valid <strong>only</strong> on receipt of our confirmation. <br /><br />
												Cancellations and or amendments for sedans need at least 2 hours notice, 4 hours in New Zealand and 24 hours in Darwin. <br /><br />
												Minibuses and Coaches 24 hours.  Major events 48 hours cancellation and or amendment notice. <br /><br />
												Please be aware that our office <STRONG>closes on public holidays.</STRONG> Except on Melbourne Cup Day. <br /><br />
												All new bookings or bookings cancellations and or amendments must be made through the office, during office hours.<br /><br />
												<br />Our car's service is 24 hours a day, 
												<br />Our office hours are
												<br />Monday to Friday  8am to 7pm
												<br />Saturday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1pm to 5pm
												<br />Sunday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1pm to 7pm
												<br />
											</td>
										</tr>
									</table>";
							$mail->Body    .= self::EMAIL_HTML_FOOTER;
							$mail->Body    .= self::BODY_END;
						}
					}
					else
					{
						$mail->Body    .= '<table align="center" width="100%"  cellpadding="5" cellspacing="0">
										<tr>
											<td>
											Thank you for booking with us.<br/>Kind Regards<br/>Admin<br/><strong>Aero Cars</strong><br/><br/>
											</td>
										</tr>
									</table>';
						$mail->Body    .= self::EMAIL_HTML_FOOTER;
						$mail->Body    .= self::BODY_END;
					}
					
					$mail->send();
				}
			}

/*---------send booking confirmation to booking made by a pax-----------------------------------------------------------------*/	
		public function sendMailToClientForIndividualBooking($job_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
			{
				// $email_type = 1; Means Job Confirmed
				// $email_type = 2; Means Job Declined
				
				//initialize classes
				
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				
				$job_details 			= $job->getJobDetails($job_id);
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_details['job_reference_id']);
				
				$booking_html = $job->getHTMLforIndividualBooking($job_id);
				$mail->addAddress($receiver_email, ''.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Corporate Cars Pty Ltd');
				
				
				
				if($email_type == '1')
					{
						$mail->Subject = "Confirmation of Booking ID - ".$job_id."";
					}
				if($email_type == '2')
					{
						$mail->Subject = "Not Confirmed, Apology of Booking ID - ".$job_id."";
					}
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				if($email_type == '1')
					{	
						$mail->Body    .= '<strong>Booking Confirmation</strong></td></tr></table><br/>';
					}
				if($email_type == '2')
					{
						$mail->Body    .= '<strong>Booking - Not Confirmed (Declined)</strong></td></tr></table><br/>';
					}
				$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br>'; // this is for corporate clients when reconfirming
				if($email_type == '1')
					{
						$mail->Body  .='This is a confirmation for booking request you have made with us.<br/> <!-- this is what gets sent when reconfirming corporate boookings -->
										In the mean time, please review the booking details and let us know immediately if they are not accurate.<br/>
										You can contact us by email aero@aerocorporatecars.com Also you can contact us by phone '. MAIL_PHONE.' <br/><br/>'; //You can contact us by email '.MAIL_EMAIL.' Also you can contact us by phone '. MAIL_PHONE.' <br/><br/>';
					}
				if($email_type == '2')
					{
						$mail->Body  .='This is to let you know that at this moment the time and date you have requested, we are unable to accommodate your booking request. However, please do not hesitate to contact us, if there is any changes to your trip itinerary. We really appreciate your business and would always like to server you with professionalism and smile.<br/><br/>';
					}
				$mail->Body    .= $booking_html;
				$mail->Body    .= '<table align="center" width="100%"  cellpadding="5" cellspacing="0">
									<tr>
										<td>
										Thank you for booking with us.<br/>Kind Regards<br/>Admin<br/><strong>Aero Cars</strong><br/><br/>
										</td>
									</tr>
								</table>';
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
				$mail->send();
			}
			
//-----------------------send mail to Admins when bkg_src is website---------------------------------------------------------------/
		public function sendMailToAdminOnBooking($job_reference_id)
			{
				$job = new job(); 
				$job_reference 	= new JobReference();
				$chargeAccount = new chargeAccount();
				$user = new User();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id,'1');
				$admin_array = $job->getAdminDetails();
				
				$charge_acc_details = $chargeAccount->getChargeAccountDetails($job_reference_details['charge_acc_id']);
				$j1_details = $job->getJobDetails($job_reference_details['j1_id']);
				$pax_details = $user->getUserDetails($job_reference_details['pax_id']);
				
				foreach($admin_array AS $admin)
					{
						$mail 	= new PHPMailer(); 
						$admin_id = base64_encode(base64_encode($admin['id']));
						 
						//$mail->addAddress('rotoman@bigpond.com', $admin['fname'].' '.$admin['lname']);  // Add a recipient
						$mail->addAddress($admin['email'], $admin['fname'].' '.$admin['lname']);  // Add a recipient
						$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Cars');
						                                 // Set word wrap to 50 characters
						                                  // Set email format to HTML
						//$mail->Subject = $charge_acc_details['account_name'].' Requisition for Booking';
						
						if($job_reference_details['acc_type'] == '3')
						{
							$mail->Subject =  $charge_acc_details['account_name'].' Requisition for Booking for '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' '.$job_reference_details['std_id'].' - '.date("l, d F, Y", strtotime($j1_details['job_date']));
						}
						else
						{
							$mail->Subject =  $charge_acc_details['account_name'].' Requisition for Booking for '.$pax_details['title'].' '.$pax_details['fname'].' '.$pax_details['lname'].' - '.date("l, d F, Y", strtotime($j1_details['job_date']));
						}					
						
						$mail->Body    = self::DOCUMENT_HEADER;
						$mail->Body    .= self::BODY_START;
						$mail->Body    .= self::EMAIL_HTML_HEADER;
						$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
												<tr>
													<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">
														<strong>Booking Received for your Approval</strong>
													</td>
												</tr>
											</table>
											<br/>
											<strong>Dear '.$admin['fname'].', </strong><br/>
											We have received the following booking request';
						if($job_reference_details['acc_type'] == '3')
						{
							$mail->Body		.= 	' from '.$charge_acc_details['account_name'];
						}
						$mail->Body		.= 	'. <br/><br/>';
						$mail->Body		.= $booking_html;
						
						$mail->Body		.= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0"><tr><td>';
						$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/booking_decision.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=1'>Confirm this Booking</a ><br /><br />"; // I added /
						$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/booking_decision.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=2'>Decline this booking</a ><br /><br />"; // I added /
						$mail->Body		.= '</td><tr></table>';
						$mail->Body    .= self::EMAIL_HTML_FOOTER;
						$mail->Body    .= self::BODY_END;
						$mail->send();
					}
			}
			
/*-----------------------------------------------------------------------------------------------------------*/		
		
		public function sendInvoice($receivers_name, $receivers_email, $email_body, $invoice_id)
			{
				$mail = new PHPMailer();
				
				
				$mail->addAddress($receivers_email, $receivers_name);  // Add a recipient

				$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/invoices/".$invoice_id.".pdf",'Invoice_'.$invoice_id.'.pdf','base64','application/pdf');
				$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/invoices/".$invoice_id.".html",'Invoice_'.$invoice_id.'.html');
				$mail->Subject = 'Invoice No. '.$invoice_id.' from Aero Corporate Cars Pty Ltd';
				
				$mail->Body    .= self::MOBILE_HEADER;
				$mail->Body    .= $email_body;
				$mail->Body    .= self::MOBILE_FOOTER;
				
				
				if(!$mail->send()) 
					{
					   $message =  'Message could not be sent.';
					   $message .=  'Mailer Error: ' . $mail->ErrorInfo;
					   return $message;
					}
					return '';
			}

//-----------------------send mail to Driver on Job Offer--------'.date("l, d F, Y",-----delete the year line 868--------------------------------------------------/
		public function sendJobOfferToDriver($driver_id, $job_id, $offer_amount, $driver_notes='')
			{
				$mail 	= new PHPMailer();
				$job = new job();
				$user = new user();
				
				$job_reference 	= new JobReference();
				$job_ref_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$job_details 	= $job->getJobDetails($job_id);
				$driver_details = $user->getUserDetails($driver_id);
			
				$encoded_job_id 	= base64_encode(base64_encode($job_id));
				$encoded_driver_id 	= base64_encode(base64_encode($driver_id));
				$encoded_offer_amount 	= base64_encode(base64_encode($offer_amount));
				$mail->addAddress($driver_details['email'], $driver_details['title'].' '.$driver_details['fname'].' '.$driver_details['lname']);  // Add a recipient
				$mail->AddBCC('ben_rubio@live.com', 'Copy of job'); // sends a copy of job to Ben as well as rotoman59@yahoo.com
				$mail->AddBCC('drivers@aerocorporatecars.com', 'Copy of job'); // sends a copy of job to me as well aero@aerocorporatecars.com

				$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero');
				                                 // Set word wrap to 50 characters
				                                  // Set email format to HTML
				//$mail->Subject = ''.$job_details['frm_flight_no'].' eta '.date("H:i A", strtotime($job_details['job_time'])).' - '.date("l, d F", strtotime($job_details['job_date'])).' - '.$job_details['frm_sub'].' to '.$job_details['to_sub'].'';
							// can enter words between ' '	'HERE'.$number_of_jobs. if needed
				$mail->Subject = ''.$number_of_jobs.' Job Offer '.$job_details['frm_flight_no'].' ETA '.date("H:i A", strtotime($job_details['job_time'])).' - '.date("l, d F", strtotime($job_details['job_date'])).' - '.$job_details['frm_sub'].' to '.$job_details['to_sub'].'';

				$mail->Body    = self::DOCUMENT_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 100%" colspan="2">
												<strong>AERO JOB OFFER</strong>
											</td>
										</tr>
										<tr>
											<td>Date</td>
											<td>'.date("l, d F, Y", strtotime($job_details['job_date'])).'</td>
										</tr>
										<tr>
											<td>Time</td>
											<td>'.date("H:i A", strtotime($job_details['job_time'])).'</td>
										</tr>
										<tr>
											<td>From</td>
											<td>'.$job_details['frm_flight_no'].' '.$job_details['frm_sub'].'';
											if($job_details['frm_via_sub'] != '')
												{
													$mail->Body    .= ' <b>TO '.$job_details['frm_via_sub'].'</b>';
												}
				$mail->Body    .= ' 		</td>
										</tr>
										<tr>
											<td>To</td>
											<td>'.$job_details['to_sub'].'';
										if($job_details['to_via_sub'] != '')
												{
													$mail->Body    .= ' <b>TO '.$job_details['to_via_sub'].'</b>';
												}
				            $mail->Body .= '
                <h2>Update Job Status</h2>
                
                <!-- Cantdo Button -->
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id='.$job_id.'&status=cantdo" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#f44336;text-decoration:none;border-radius:5px;margin:10px;">
                    Sorry Cannot do
                </a>
            ';
				
				$mail->Body    .= ' 		</td>
										</tr>
										<tr>
											<td>Price</td>
											<td>$'.$offer_amount.'</td>
										</tr>
										<tr>
											<td>Note</td>
											<td>'.$driver_notes.'</td>
										</tr>
									</table>
									<br/>
									<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #fff;">
										<tr>
											<td><b><a href="'.ROOT_ADDRESS.'/external_mail_script/driver_decision.php?job_id='.$encoded_job_id.'&driver_id='.$encoded_driver_id.'&offer_amount='.$encoded_offer_amount.'&accept_job=1">Accept this Job</a ><b/></td>
										</tr>
									</table><br/><br/>';
				$mail->Body    .= self::BODY_END;

				$mail->send();
				return $driver_details['email'];
			}
			
//----------------------------------------when driver accepts job or a jobs gets sent as accepted----'.date("l, d F, Y",--I hid the year line 950------------------------------------------------------------------------/						
		public function sendJobDetailsToDriver($job_id, $driver_id, $job_price, $driver_notes, $std_ph='')
			{
				$mail 	= new PHPMailer();
				$job = new job();
				$user = new user();
				$job_reference 	= new JobReference();
				
				$encoded_job_id 	= base64_encode(base64_encode($job_id));
				$encoded_driver_id 	= base64_encode(base64_encode($driver_id));
				
				$job_details 	= $job->getJobDetails($job_id);
				$job_ref_details 	= $job_reference->getJobReferenceDetails($job_details['job_reference_id']);
				
				$driver_details = $user->getUserDetails($driver_id);
		
				$mail->addAddress($driver_details['email'], $driver_details['title'].' '.$driver_details['fname'].' '.$driver_details['lname']);  // Add a recipient
				$mail->AddBCC('ben_rubio@live.com', 'Copy of job'); // sends a copy of job to Ben as well as rotoman59@yahoo.com
				$mail->AddBCC('drivers@aerocorporatecars.com', 'Copy of job'); // sends a copy of job to me as well aero@aerocorporatecars.com
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Cars');
				                                 // Set word wrap to 50 characters
				                                  // Set email format to HTML
							// can enter words between ' '	'HERE'.$job_details if needed
				

				$mail->Subject = ''.$job_details['frm_flight_no'].' ETA '.date("H:i A", strtotime($job_details['job_time'])).' - '.date("l, d F", strtotime($job_details['job_date'])).' - Aero – Please ensure you click “Roger and Confirm” at bottom of page ASAP.';
				$mail->Body    = self::DOCUMENT_HEADER;
				$mail->Body    .= $job->getHTMLforIndividualJobForDriver($job_id);
				$mail->Body    .= 	'<table align="left" border="1" cellpadding="5" cellspacing="0" width="100%" style="border-collapse: collapse; border-color: #666; "><tr>
											<td width="30%"><strong>Price:</strong></td>
											<td style="background: #eee;"><b>$ '.$job_price.'</b></td>
										</tr>
										<tr>
										<td width="30%"><strong>Notes <b>"<font color="red"><u>READ</u></font>":</strong></td>
											<td style="background: #eee;"><b><font color="red"> '.$driver_notes.'</font></b></td><br>
										</tr>
										<tr>
										<td width="30%"><b><font color="green">Student&#39;s phone number</font>:</strong></td>
										<td style="background: #eee;"><b><font color="green"> '. $job_ref_details['std_ph'] .'</font></b></td>
										</tr>
										<tr>
										<td width="30%"><strong>We require you to send an invoice if <br>doing 3 or more jobs per week.</strong></td>
										</tr>
										<tr>
											<td width="30%"><strong>Include the numbers on the right ----><br>when sending your invoice ---> <br> </strong></td>
											<td style="background: #eee;"><b>'.$job_id.'    <br>     $ '.$job_price.'  </b></td>
										</tr>
									</table><br/>';				
									
									
				$mail->Body    .= 	'<br/><table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #fff;">
										<tr>
											<td><b><a href="'.ROOT_ADDRESS.'/external_mail_script/driver_decision.php?job_id='.$encoded_job_id.'&driver_id='.$encoded_driver_id.'&rogerd=1">Roger and Confirm</a ><b/></td>
										</tr>
									</table>
				<h2>Update Job Status</h2>
                
                <!-- Picked Button -->
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id='.$job_id.'&status=picked" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#4caf50;text-decoration:none;border-radius:5px;margin:10px;">
                    Picked
                </a><br><br>
				<!-- Dropped Button -->
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id='.$job_id.'&status=dropped" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#ff9800;text-decoration:none;border-radius:5px;margin:10px;">
                    Dropped
                </a>
                
                
									';
				$mail->Body    .= self::BODY_END;
				
				if($job_ref_details['charge_acc_id'] == '55') //Monash COLLEGE send the map with instructions DRIVERS
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MC_MU_Sign.pdf",'Aero MC & MU Sign.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2024 Parking Fees.pdf','base64','application/pdf');
						//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College.pdf",'Monash College Map.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College_Sign.pdf",'Monash College Sign.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_phone_numbers.pdf",'Monash phone numbers.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Temporary_Accommodation_Listing_2024.pdf",'Temporary Accommodation Listing 2024.pdf','base64','application/pdf');
						
					}
				if($job_ref_details['charge_acc_id'] == '9' || $job_ref_details['charge_acc_id'] == '19') //Monash CONNECT or Monash ABROAD send the map with instructions DRIVERS
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MU_MC_Sign.pdf",'Aero MU & MC Sign.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2024 Parking Fees.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'Monash Sign.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_phone_numbers.pdf",'Monash phone numbers.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/monash_connect_and_abroad.pdf",'Monash Campus Map.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Temporary_Accommodation_Listing_2024.pdf",'Temporary Accommodation Listing 2024.pdf','base64','application/pdf');
					}
				if($job_ref_details['charge_acc_id'] == '15') //RMIT send the map with instructions DRIVERS
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2024 Parking Fees.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'RMIT.pdf','base64','application/pdf');
					}
				if($job_ref_details['charge_acc_id'] == '1031' || $job_ref_details['charge_acc_id'] == '1031') //Deakin College University 
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Deakin_Logo.pdf",'Deakin Sign.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2024 Parking Fees.pdf','base64','application/pdf');
					}
				if($job_ref_details['charge_acc_id'] == '506' || $job_ref_details['charge_acc_id'] == '506') //DEAKIN University 
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Deakin_Logo.pdf",'Deakin Sign.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2024 Parking Fees.pdf','base64','application/pdf');
					}
				if($job_ref_details['charge_acc_id'] == '1035' || $job_ref_details['charge_acc_id'] == '1035') //Vic Uni send the map with instructions DRIVERS
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	
					}
                if($job_ref_details['charge_acc_id'] == '1036' || $job_ref_details['charge_acc_id'] == '1036') //Vic College send the map with instructions DRIVERS
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	
					}
				if($job_ref_details['charge_acc_id'] == '1036' || $job_ref_details['charge_acc_id'] == '1040') //Vic Uni Sydney send the map with instructions DRIVERS
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	
					}
                if($job_ref_details['charge_acc_id'] == '1036' || $job_ref_details['charge_acc_id'] == '1041') //Vic Uni Brisbane send the map with instructions DRIVERS
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	
					}
				if($job_ref_details['charge_acc_id'] == '1042') //ACVET send the map with instructions DRIVERS
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2024 Parking Fees.pdf','base64','application/pdf');
						// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'RMIT.pdf','base64','application/pdf'); need to get their sign
					}							
				else // common attachments
					{
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
						$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2024 Parking Fees.pdf','base64','application/pdf');
					}
				$mail->send();
			}
		
/*-----------------------------------------------------------------------------------------------------------*/				
		public function sendCollectiveJobDetailsToDriver($job_ids, $driver_id, $job_price, $driver_notes='')
			{
				$mail 	= new PHPMailer();
				$job = new job();
				$user = new user();
				$job_reference 	= new JobReference();
				
				$encoded_job_id 	= base64_encode(base64_encode($job_ids));
				$encoded_driver_id 	= base64_encode(base64_encode($driver_id));
				
				
				$driver_details = $user->getUserDetails($driver_id);
				$mail->addAddress($driver_details['email'], $driver_details['title'].' '.$driver_details['fname'].' '.$driver_details['lname']);  // Add a recipient
				$mail->AddBCC('ben_rubio@live.com', 'Copy of job'); // sends a copy of job to Ben as well as rotoman59@yahoo.com
				$mail->AddBCC('drivers@aerocorporatecars.com', 'Copy of job'); // sends a copy of job to me as well aero@aerocorporatecars.com
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Cars');
				                                 // Set word wrap to 50 characters
				                                  // Set email format to HTML
				$mail->Subject = ''.date("H:i A", strtotime($job_details['job_time'])).' - Job Details from Aero Cars';
				$mail->Body    = self::DOCUMENT_HEADER;
						
				$job_arr = explode(',',$job_ids);
				foreach($job_arr as $job_id)
				{
					$job_details 	= $job->getJobDetails($job_id);
					//$job_ref_details 	= $job_reference->getJobReferenceDetails($job_details['job_reference_id']);
					$mail->Body    .= $job->getHTMLforIndividualJobForDriver($job_id);
				}
				$mail->Body    .= '<table align="left" border="1" cellpadding="5" cellspacing="0" width="60%" style="border-collapse: collapse; border-color: #666; "><tr>
											<td width="50%"><strong>Job Price</strong></td>
											<td style="background: #eee;"><b>$ '.$job_price.'</b></td>
										</tr>
										<tr>
											<td width="50%"><strong>Note</strong></td>
											<td style="background: #eee;"><b> <font color="red">'.$driver_notes.'</font></b></td>
										</tr>
									</table><br/>';
				$mail->Body    .= '<br/><table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #fff;">
										<tr>
											<td><b><a href="'.ROOT_ADDRESS.'/external_mail_script/driver_decision.php?job_id='.$encoded_job_id.'&driver_id='.$encoded_driver_id.'&rogerd=1&collective=1">Roger and Confirm</a ><b/></td>
										</tr>
									</table><br/><br/>';
				$mail->Body    .= self::BODY_END;

				$mail->send();
				
			}
			
//-----------------------send Bulk Job Offer to Driver---------------------------------------------------------------/
		public function sendBulkJobOfferToADriver($driver_id, $jobs_array)
			{
				$mail 	= new PHPMailer();
				$job = new job();
				$user = new user();
				
				$encoded_driver_id 		= 	base64_encode(base64_encode($driver_id));
				$driver_details 		= 	$user->getUserDetails($driver_id);
				
				$mail->addAddress($driver_details['email'], $driver_details['title'].' '.$driver_details['fname'].' '.$driver_details['lname']);  // Add a recipient
				$mail->AddBCC('ben_rubio@live.com', 'Copy of job'); // sends a copy of job to Ben as well as rotoman59@yahoo.com
				$mail->AddBCC('drivers@aerocorporatecars.com', 'Copy of job'); // sends a copy of job to me as well aero@aerocorporatecars.com
				
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Cars');
				                                 // Set word wrap to 50 characters
				
				
				$number_of_jobs 	= 	count($jobs_array);
				$mail->Subject 		= 	'"New" '.$number_of_jobs.' Students Offered to you from Aero';
				$mail->Body    		= 	self::DOCUMENT_HEADER;
				$mail->Body    		.= 	'The below <b>'.$number_of_jobs.'</b> Students have been offered to you. Please read the job carefully before accepting.<br/><br/>';
				$mail->Body    		.= 	'<table align="left" width="60%" cellpadding="5" cellspacing="0" style="border: 1px #000 solid; border-collapse: collapse;">';
				
				$unique_code 				= 	substr(md5(uniqid(mt_rand(), true)) , 0, 8);
				$encoded_unique_code 		= 	base64_encode(base64_encode($unique_code));
				for($i=0; $i<$number_of_jobs; $i++)
					{
						$q = "INSERT INTO job__bulk_accept (unique_code, job_id, driver_id, job_price, job_notes)
						VALUES('".$unique_code."', '".$jobs_array[$i]['job_id']."', '".$driver_id."', '".$jobs_array[$i]['job_price']."', '".$jobs_array[$i]['driver_notes']."')";
						$database = new database;
						$result = $database->query($q);
						$job_details 	= 	$job->getJobDetails($jobs_array[$i]['job_id']);
						$offer_amount	=	$jobs_array[$i]['job_price'];
						$driver_notes	=	$jobs_array[$i]['driver_notes'];
						$mail->Body    	.= 	'<tr>
												<td width="35%" style="border: 1px #336699 solid;  background: #ccffff;" valign="top">
													<h1>'.date("H:i A", strtotime($job_details['job_time'])).'</h1>
													'.date("l, d F, Y", strtotime($job_details['job_date'])).'
												</td>
												<td width="65%" style="border: 1px #336699 solid;">
													<table width="100%" cellpadding="5">
														<tr>
															<td width="40%" valign="center">
																<h3>'.$job_details['frm_flight_no'].'<br/>
																'.$job_details['frm_sub'].'</h3>';
																if($job_details['frm_via_sub'] != '')
																	{
																		$mail->Body .= '<br/><b>VIA '.$job_details['frm_via_sub'].'</b>';
																	}
																	
														$mail->Body.= 
															'</td>
															<td width="20%" valign="center"><h1>&#8594;</h1></td>
															<td width="40%" valign="center">
																<h3>'.$job_details['to_sub'].'</h3>';
																if($job_details['to_via_sub'] != '')
																	{
																		$mail->Body .= '<br/><b>TO '.$job_details['to_via_sub'].'</b>';
																	}
														$mail->Body.= 
															'</td>	
														</tr>
														<tr>
															<td colspan="3" style="background:#ffffcc;"><h2>$'.$offer_amount.'</h2></td>
														</tr>';
														if($driver_notes != '')
															{
																$mail->Body.= '<tr><td colspan="3" style="background:#ffffcc;"><b>Notes</b> - '.$driver_notes.'</td></tr>';
															}
													$mail->Body.= '
													</table>
												</td>
											</tr>';
					}
								$mail->Body .= '
										</table>
										<br/>
										<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #fff;">
											<tr>
												<td><b><a href="'.ROOT_ADDRESS.'/external_mail_script/driver_bulk_decision.php?unique_code='.$encoded_unique_code.'&driver_id='.$encoded_driver_id.'&decision_status=1">Accept these Jobs</a ><b/></td>
											</tr>
										</table><br/><br/>';
										
										$mail->Body .= '
                <h2>Update Job Status</h2>
                
                <!-- Cantdo Button -->
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=cantdo" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#f44336;text-decoration:none;border-radius:5px;margin:10px;">
                    Sorry Cannot Do
                </a>
                
                <!-- Picked Button -->
               <!-- <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=picked" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#4caf50;text-decoration:none;border-radius:5px;margin:10px;">
                    Mark as Picked
                </a> -->
                
                <!-- Dropped Button -->
               <!-- <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=dropped" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#ff9800;text-decoration:none;border-radius:5px;margin:10px;">
                    Mark as Dropped
                </a> -->
            ';
						
										
				$mail->Body    .= self::BODY_END;
				$mail->send();
			}

//-----------------------send Job Details on Bulk offer---------------------------------------------------------------/
		public function sendBulkJobDetailsToADriver($driver_id, $unique_code)
			{
				require_once(CLASSES_PATH . "vehicle.php");
				$mail 	= new PHPMailer();
				$job_reference = new jobReference();
				$vehicle = new Vehicle();
				$job = new job();
				$user = new user();
				
				$encoded_driver_id 		= 	base64_encode(base64_encode($driver_id));
				$encoded_unique_code	= 	base64_encode(base64_encode($unique_code));
				$driver_details 		= 	$user->getUserDetails($driver_id);
				
				$mail->addAddress($driver_details['email'], $driver_details['title'].' '.$driver_details['fname'].' '.$driver_details['lname']);  // Add a recipient
				$mail->AddBCC('ben_rubio@live.com', 'Copy of job'); // sends a copy of job to Ben as well as rotoman59@yahoo.com
				$mail->AddBCC('drivers@aerocorporatecars.com', 'Copy of job'); // sends a copy of job to Juan as well as ben_rubio@live.com

				$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero');
				                                 // Set word wrap to 50 characters
				
				
				$database = new database;
				$q = "SELECT * FROM job__bulk_accept where unique_code = '".$unique_code."'";
				$result = $database->query($q);
				$number_of_jobs = mysqli_num_rows($result);
				$mail->Subject 		='You have accepted ' .$number_of_jobs.' students from Aero';//.$job_details['frm_flight_no'].' eta '.date("H:i A", strtotime($job_details['job_time'])).' - '.date("l, d F", strtotime($job_details['job_date'])).' - '.$job_details['frm_sub'].' to '.$job_details['to_sub'].''; Job details of '.$number_of_jobs.'
				$mail->Body    		= 	self::DOCUMENT_HEADER;
				$mail->Body    		.= 	'The below <b>'.$number_of_jobs.'</b> Students have been accepted by you. Please read the job details carefully and <b><font color="#0000FF;">ROGER.</font></b><br/><br/>';
				$mail->Body    		.= 	'<table align="left" width="60%" cellpadding="5" cellspacing="0" style="border: 1px #000 solid; border-collapse: collapse;">';
				$addedMonashCollege = false;
				$addedMonash = false;
				$addedRMIT = false;
				while($row = mysqli_fetch_array($result))
					{
						$job_details 			= 	$job->getJobDetails($row['job_id']);
						$job_reference_details 	= 	$job_reference->getJobReferenceDetails($job_details['job_reference_id']);
						$pax_details 			= 	$user->getUserDetails($job_reference_details['pax_id']);
						if($job_reference_details['charge_acc_id'] == '55' && $addedMonashCollege == false) //Monash COLLEGE send the map with instructions DRIVERS
						{
							$addedMonashCollege = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MC_MU_Sign.pdf",'Aero MC & MU Sign.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College.pdf",'Monash College Map.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College_Sign.pdf",'Monash College Sign.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_phone_numbers.pdf",'Monash phone numbers.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Temporary_Accommodation_Listing_2024.pdf",'Temporary Accommodation Listing 2024.pdf','base64','application/pdf');
							
						}else if($addedMonash == false && ($job_reference_details['charge_acc_id'] == '9' || $job_reference_details['charge_acc_id'] == '19')) //Monash CONNECT or Monash ABROAD send the map with instructions DRIVERS
						{
							$addedMonash = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MU_MC_Sign.pdf",'Aero MU & MC Sign.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'USE THIS SIGN.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/monash_connect_and_abroad.pdf",'Monash Campus Map.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Temporary_Accommodation_Listing_2024.pdf",'Temporary Accommodation Listing 2024.pdf','base64','application/pdf');
						} else if($addedRMIT == false && $job_reference_details['charge_acc_id'] == '15') //RMIT send the map with instructions DRIVERS
						{
							$addedRMIT = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'RMIT.pdf','base64','application/pdf');
						} 
						else if($addedVictoriaUniversity == false && $job_reference_details['charge_acc_id'] == '1035') //Vic Uni send the map with instructions DRIVERS
						{
							$addedVictoriaUniversity = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');		
						} 
						else if($addedVictoriaUniversity == false && $job_reference_details['charge_acc_id'] == '1036') //Vic college send the map with instructions DRIVERS
						{
							$addedVictoriaUniversity = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');		
						} 
						else if($addedVictoriaUniversity == false && $job_reference_details['charge_acc_id'] == '1040') //Vic Uni Sydney send the map with instructions DRIVERS
						{
							$addedVictoriaUniversity = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');		
						}
						else if($addedVictoriaCollege == false && $job_reference_details['charge_acc_id'] == '1041') //Vic Uni Brisbane send the map with instructions DRIVERS
						{
							$addedVictoriaCollege = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');		
						} 
						else if($addedACVET == false && $job_reference_details['charge_acc_id'] == '1042') //ACVET send the map with instructions DRIVERS
						{
							$addedACVET = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	need their sign	
						} 
						$mail->Body    	.= 	'<tr>
												<td width="35%" style="border: 1px #336699 solid;  background: #ccffff;" valign="top">
													<h1>'.date("H:i A", strtotime($job_details['job_time'])).'</h1>
													'.date("l, d F, Y", strtotime($job_details['job_date'])).'
													'.$row['job_id'].'
												</td>
												<td width="65%" style="border: 1px #336699 solid;">
													<table width="100%" cellpadding="5">
														<tr>
															<td colspan="3" style="border-bottom: 2px #000 dashed;">'; 
														if($job_reference_details['std_fname'] != '')
																{
																	$mail->Body.= '<h2>'.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'<br> Phone - '.$job_reference_details['std_ph']. '<br> (ID - '.$job_reference_details['std_id'].') -    (<font color="blue">'.$job_reference_details['order_ref'].'</font> )</h2>'; // shows student's name and student id and phone number next to the time when bulk allocating
																}
															else
																{
																	$mail->Body.= '<h2>'.$pax_details['title'].' '.$pax_details['fname'].' '.$pax_details['lname'].'</h2>';
																}
															$mail->Body.= '
															</td>
														<tr>
															<td valign="center" width="45%" style="background:#edeefc;">';
																if($job_details['frm_flight_no']!='')	{ $mail->Body.= '<h3>Flight No. - '.$job_details['frm_flight_no'].'</h3>';}
																if($job_details['frm_line1']!='')		{ $mail->Body.= ''.$job_details['frm_line1'].'<br/>';}
																if($job_details['frm_line2']!='')		{ $mail->Body.= ''.$job_details['frm_line2'].'<br/>';}
																if($job_details['frm_sub']!='')			{ $mail->Body.= '<b>'.$job_details['frm_sub'].'</b>';}
																if($job_details['frm_pc']!='')			{ $mail->Body.= ' '.$job_details['frm_pc'].'';}
																if($job_details['frm_state']!='')		{ $mail->Body.= ' '.$job_details['frm_state'].'<br/>';}
																
																if($job_details['frm_via_sub'] != '')
																	{
																		$mail->Body.='<strong>2nd PICKUP-DROP OFF</strong><br/>';
																		if($job_details['frm_via_line1']!='')	{ $mail->Body.= '<h3>'.$job_details['frm_via_line1'].'</h3>';}
																		if($job_details['frm_via_line2']!='')	{ $mail->Body.= ''.$job_details['frm_via_line2'].'<br/>';}
																		if($job_details['frm_via_sub']!='')		{ $mail->Body.= '<b>'.$job_details['frm_via_sub'].'</b> ';}
																		if($job_details['frm_via_pc']!='')		{ $mail->Body.= ' '.$job_details['frm_via_pc'].'</b>';}
																		if($job_details['frm_via_state']!='')	{ $mail->Body.= ' '.$job_details['frm_via_state'].'';}
																	}
																	
															$mail->Body.= 
															'</td>
															<td width="10%" valign="center"><h1>&#8594;</h1></td>
															<td valign="center" width="45%" style="background:#edeefc;">';
																if($job_details['to_flight_no']!='')	{ $mail->Body.= '<h3>Flight No. - '.$job_details['to_flight_no'].'</h3>';}
																if($job_details['to_line1']!='')		{ $mail->Body.= ''.$job_details['to_line1'].'<br/>';}
																if($job_details['to_line2']!='')		{ $mail->Body.= ''.$job_details['to_line2'].'<br/>';}
																if($job_details['to_sub']!='')			{ $mail->Body.= '<b>'.$job_details['to_sub'].'</b>';}
																if($job_details['to_pc']!='')			{ $mail->Body.= ' '.$job_details['to_pc'].'';}
																if($job_details['to_state']!='')		{ $mail->Body.= ' '.$job_details['to_state'].'<br/>';}
																if($job_details['to_via_sub'] != '')
																	{
																		$mail->Body.='<strong>LAST DROP</strong><br/>';
																		if($job_details['to_via_line1']!='')	{ $mail->Body.= ''.$job_details['to_via_line1'].'<br/>';}
																		if($job_details['to_via_line2']!='')	{ $mail->Body.= ''.$job_details['to_via_line2'].'<br/>';}
																		if($job_details['to_via_sub']!='')		{ $mail->Body.= '<b>'.$job_details['to_via_sub'].'</b>';}
																		if($job_details['to_via_pc']!='')		{ $mail->Body.= ' '.$job_details['to_via_pc'].'';}
																		if($job_details['to_via_state']!='')	{ $mail->Body.= ' '.$job_details['to_via_state'].'';}
																	}
															$mail->Body.= 
															'</td>	
														</tr>
														<tr>
															<td colspan="3" style="background:#ffffcc;">';
																//if($job_details['car_id']!='')		{ $mail->Body.= 'Vehicle Requested - '.$vehicle->getCarTypeType($job_details['car_id']).'<br/>';}
																// if($job_details['order_ref']!='0')	{ $mail->Body.= 'No. of PassenGERS - '.$job_details['order_ref'].'<br/>';} // I can't make this work
																if($job_details['pax_nos']!='')		{ $mail->Body.= 'No. of Passengers - '.$job_details['pax_nos'].'<br/>';}
																if($job_details['luggage'] > 0)		{ $mail->Body.= 'No. of Luggage - '.$job_details['luggage'].'<br/>';}
																if($job_details['baby_capsule']>0)	{ $mail->Body.= 'No. of Baby Capsules - '.$job_details['baby_capsule'].'<br/>';}
																if($job_details['baby_seat']>0)		{ $mail->Body.= 'No. of Baby Seats - '.$job_details['baby_seat'].'<br/>';}
																if($job_details['booster_seat']>0)	{ $mail->Body.= 'No. of Booster Seats - '.$job_details['booster_seat'].'<br/>';}
									                            if($job_details['driver_notes']!=''){ $mail->Body.= '<h3><p style="color:red"><strong>Driver Notes - '.$job_details['driver_notes'].'</strong><br/></p></h3>';} // sends it when bulk accepting
            $mail->Body .= '
                <h2>Update Job Status</h2>
                
                <!-- Cantdo Button 
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=cantdo" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#f44336;text-decoration:none;border-radius:5px;margin:10px;">
                    Mark as Cantdo
                </a>-->
                
                <!-- Picked Button -->
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=picked" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#4caf50;text-decoration:none;border-radius:5px;margin:10px;">
                    Picked
                </a><br><br>
                
                <!-- Dropped Button -->
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=dropped" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#ff9800;text-decoration:none;border-radius:5px;margin:10px;">
                    Dropped
                </a>
            ';
															$mail->Body.= 
															'</td style="border-top: 1px #000 solid;">
														<tr>
															<td colspan="3" style="background:#ffffcc;"><h2>$'.$row['job_price'].'</h2></td>
														</tr>';
														if($row['job_notes'] != '')
															{
																$mail->Body.= '<tr><td colspan="3" style="background:#ffffcc;"><b>Notes</b> - '.$row['job_notes'].'</td></tr>';
															}
													$mail->Body.= '
													</table>
												</td>
											</tr>';
					}
								$mail->Body .= '
										</table>
										<br/>
										<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #fff;">
											<tr>
												<td><b><a href="'.ROOT_ADDRESS.'/external_mail_script/driver_bulk_decision.php?unique_code='.$encoded_unique_code.'&driver_id='.$encoded_driver_id.'&decision_status=2">ROGER AND CONFIRM</a ><b/></td>
											</tr>
										</table><br/><br/>';
										
				$mail->Body    .= self::BODY_END;
	
				$mail->send();
			}	

//-----------------------send list of jobs on bulk accept - here the acceptance is done by the admin - date and time doesn't send properly--------------------------------------------------------/
		public function sendBulkJobAcceptDetailsToADriver($driver_id, $jobs_array)
			{
				require_once(CLASSES_PATH . "vehicle.php");
				
				$mail 	= new PHPMailer();
				$mail->CharSet = "UTF-8";
				
				$job = new job();
				$user = new user();
				$job_reference = new jobReference();
				$vehicle = new Vehicle();
				
				$encoded_driver_id 		= 	base64_encode(base64_encode($driver_id));
				$unique_code 			= 	substr(md5(uniqid(mt_rand(), true)) , 0, 8);
				$encoded_unique_code 	= 	base64_encode(base64_encode($unique_code));
				$driver_details 		= 	$user->getUserDetails($driver_id);
				
				$mail->addAddress($driver_details['email'], $driver_details['title'].' '.$driver_details['fname'].' '.$driver_details['lname']);  // Add a recipient
				$mail->AddBCC('ben_rubio@live.com', 'Copy of job'); // sends a copy of job to Ben as well as rotoman59@yahoo.com
				$mail->AddBCC('drivers@aerocorporatecars.com', 'Copy of job'); // sends a copy of job to me as well as ben_rubio@live.com

				$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero');
				   // Set word wrap to 50 characters
				

				$mail->Subject 		= 	'Aero\'s Job'.$number_of_jobs.' accepted by you';
				$mail->Body    		= 	self::DOCUMENT_HEADER;
				$mail->Body    		.= 	'Please read the details carefully and if you want to do this job and <font color="red"><b>get paid,</font></b> you need to click on <font color="blue"><u><b>"Roger and Confirm"</font></u></b> at the bottom of this email.<br/><br/><br/>';  
				$mail->Body    		.= 	'<table align="left" width="60%" cellpadding="5" cellspacing="0" style="border: 1px #000 solid; border-collapse: collapse;">';
				
				$number_of_jobs 	= 	count($jobs_array);
				$addedMonash = false;
				$addedMonashCollege =false;
				$addedRMIT = false;
				for($i=0; $i<$number_of_jobs; $i++)
					{
						$database = new database;
						$q = "INSERT INTO job__bulk_accept (unique_code, job_id, driver_id, job_price, job_notes)
						VALUES('".$unique_code."', '".$jobs_array[$i]['job_id']."', '".$driver_id."', '".$jobs_array[$i]['job_price']."', '".$jobs_array[$i]['driver_notes']."')";
						$result = $database->query($q);
						
						$job_details 	= 	$job->getJobDetails($jobs_array[$i]['job_id']);
						$job_amount		=	$jobs_array[$i]['job_price'];
						$driver_notes	=	$jobs_array[$i]['driver_notes'];

						$job_reference_details 	= 	$job_reference->getJobReferenceDetails($job_details['job_reference_id']);
						$pax_details 			= 	$user->getUserDetails($job_reference_details['pax_id']);
					
						if($job_reference_details['charge_acc_id'] == '55' && $addedMonashCollege == false) //Monash COLLEGE send the map with instructions DRIVERS
						{
							$addedMonashCollege = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MC_MU_Sign.pdf",'Aero MC & MU Sign.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College.pdf",'Monash College Map.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College_Sign.pdf",'Monash College Sign.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_phone_numbers.pdf",'Monash phone numbers.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Temporary_Accommodation_Listing_2024.pdf",'Temporary Accommodation Listing 2024.pdf','base64','application/pdf');
							
						}else if($addedMonash == false && ($job_reference_details['charge_acc_id'] == '9' || $job_reference_details['charge_acc_id'] == '19')) //Monash CONNECT or Monash ABROAD send the map with instructions DRIVERS
						{
							$addedMonash = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MU_MC_Sign.pdf",'Aero MU & MC Sign.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'USE THIS SIGN.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/monash_connect_and_abroad.pdf",'Monash Campus Map.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Temporary_Accommodation_Listing_2024.pdf",'Temporary Accommodation Listing 2024.pdf','base64','application/pdf');
						} else if($addedRMIT == false && $job_reference_details['charge_acc_id'] == '15') //RMIT send the map with instructions DRIVERS
						{
							$addedRMIT = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'RMIT.pdf','base64','application/pdf');
						} 
						else if($addedVictoriaUniversity == false && $job_reference_details['charge_acc_id'] == '1035') //Vic Uni send the map with instructions DRIVERS
						{
							$addedVictoriaUniversity = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	
						} 
						else if($addedVictoriaUniversity == false && $job_reference_details['charge_acc_id'] == '1036') //Vic College send the map with instructions DRIVERS
						{
							$addedVictoriaUniversity = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	
						} 
						else if($addedVictoriaUniversity == false && $job_reference_details['charge_acc_id'] == '1040') //Vic Uni Sydney send the map with instructions DRIVERS
						{
							$addedVictoriaUniversity = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	
						}
						else if($addedVictoriaCollege == false && $job_reference_details['charge_acc_id'] == '1041') //Vic Uni Brisbane send the map with instructions DRIVERS
						{
							$addedVictoriaCollege = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'VU Sign.pdf','base64','application/pdf');	
						}
						else if($addedACVET == false && $job_reference_details['charge_acc_id'] == '1042') //ACVET send the map with instructions DRIVERS
						{
							$addedACVET = true;
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Code_of_Conduct.pdf",'Code of Conduct (Child-Student Safe Standards).pdf','base64','application/pdf');
							$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mel_Airport_2021_Parking_Fees.pdf",'Mel Airport 2021 Parking Fees.pdf','base64','application/pdf');
							// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'RMIT.pdf','base64','application/pdf'); need their sign
						} 

						$mail->Body    	.= 	'<tr>
												<td width="35%" style="border: 1px #336699 solid;  background: #ccffff;" valign="top">
													<h1>'.date("H:i A", strtotime($job_details['job_time'])).'</h1>
													'.date("l, d F, Y", strtotime($job_details['job_date'])).'
												</td>
												<td width="65%" style="border: 1px #336699 solid;">
													<table width="100%" cellpadding="5">
														<tr>
															<td colspan="3" style="border-bottom: 2px #000 dashed;">';
															if($job_reference_details['std_fname'] != '')
																{
																	$mail->Body.= '<h2>'.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' <br> Phone number <font color="blue">'.$job_reference_details['std_ph'].'</font><br> (ID - '.$job_reference_details['std_id'].') -    (<font color="blue">'.$job_reference_details['order_ref'].' </font>)</h2>'; // shows student's name and student id next to the time when bulk allocating
																}
															else
																{
																	$mail->Body.= '<h2>'.$pax_details['title'].' '.$pax_details['fname'].' '.$pax_details['lname'].'</h2>';
																}
															$mail->Body.= '
															</td>
														<tr>
															<td valign="center" width="45%" style="background:#edeefc;">';
																if($job_details['frm_flight_no']!='')	{ $mail->Body.= '<h3>Flight No. -'.$job_details['frm_flight_no'].'</h3>';}
																if($job_details['frm_line1']!='')		{ $mail->Body.= ''.$job_details['frm_line1'].'<br/>';}
																if($job_details['frm_line2']!='')		{ $mail->Body.= ''.$job_details['frm_line2'].'<br/>';}
																if($job_details['frm_sub']!='')			{ $mail->Body.= '<b>'.$job_details['frm_sub'].'</b>';}
																if($job_details['frm_pc']!='')			{ $mail->Body.= ' '.$job_details['frm_pc'].'';}
																if($job_details['frm_state']!='')		{ $mail->Body.= ' '.$job_details['frm_state'].'<br/>';}
																
																if($job_details['frm_via_sub'] != '')
																	{
																		$mail->Body.='<strong>2nd PICKUP-DROP OFF</strong><br/>';
																		if($job_details['frm_via_line1']!='')	{ $mail->Body.= '<h3>'.$job_details['frm_via_line1'].'</h3>';}
																		if($job_details['frm_via_line2']!='')	{ $mail->Body.= ''.$job_details['frm_via_line2'].'<br/>';}
																		if($job_details['frm_via_sub']!='')		{ $mail->Body.= '<b>'.$job_details['frm_via_sub'].'</b> ';}
																		if($job_details['frm_via_pc']!='')		{ $mail->Body.= ' '.$job_details['frm_via_pc'].'</b>';}
																		if($job_details['frm_via_state']!='')	{ $mail->Body.= ' '.$job_details['frm_via_state'].'';}
																	}
																	
															$mail->Body.= 
															'</td>
															<td width="10%" valign="center"><h1>&#8594;</h1></td>
															<td valign="center" width="45%" style="background:#edeefc;">';
																if($job_details['to_flight_no']!='')	{ $mail->Body.= '<h3>Flight No. - '.$job_details['to_flight_no'].'</h3>';}
																if($job_details['to_line1']!='')		{ $mail->Body.= ''.$job_details['to_line1'].'<br/>';}
																if($job_details['to_line2']!='')		{ $mail->Body.= ''.$job_details['to_line2'].'<br/>';}
																if($job_details['to_sub']!='')			{ $mail->Body.= '<b>'.$job_details['to_sub'].'</b>';}
																if($job_details['to_pc']!='')			{ $mail->Body.= ' '.$job_details['to_pc'].'';}
																if($job_details['to_state']!='')		{ $mail->Body.= ' '.$job_details['to_state'].'<br/>';}
																if($job_details['to_via_sub'] != '')
																	{
																		$mail->Body.='<strong>LAST DROP</strong><br/>';
																		if($job_details['to_via_line1']!='')	{ $mail->Body.= ''.$job_details['to_via_line1'].'<br/>';}
																		if($job_details['to_via_line2']!='')	{ $mail->Body.= ''.$job_details['to_via_line2'].'<br/>';}
																		if($job_details['to_via_sub']!='')		{ $mail->Body.= '<b>'.$job_details['to_via_sub'].'</b>';}
																		if($job_details['to_via_pc']!='')		{ $mail->Body.= ' '.$job_details['to_via_pc'].'';}
																		if($job_details['to_via_state']!='')	{ $mail->Body.= ' '.$job_details['to_via_state'].'';}
																	}
															$mail->Body.= 
															'</td>	
														</tr>
														<tr>
															<td colspan="3" style="background:#ffffcc;">';
																//if($job_details['car_id']!='')		{ $mail->Body.= 'Vehicle Requested. - '.$vehicle->getCarTypeType($job_details['car_id']).'<br/>';}
																if($job_details['pax_nos']!='')		{ $mail->Body.= 'No. of Passengers - '.$job_details['pax_nos'].'<br/>';}
																if($job_details['luggage'] > 0)		{ $mail->Body.= 'No. of Luggage - '.$job_details['luggage'].'<br/>';}
																if($job_details['baby_capsule']>0)	{ $mail->Body.= 'No. of Baby Capsules - '.$job_details['baby_capsule'].'<br/>';}
																if($job_details['baby_seat']>0)		{ $mail->Body.= 'No. of Baby Seats - '.$job_details['baby_seat'].'<br/>';}
																if($job_details['booster_seat']>0)	{ $mail->Body.= 'No. of Booster Seats - '.$job_details['booster_seat'].'<br/>';}
															
														 $mail->Body .= '
                <h2>Update Job Status</h2>
                
                <!-- Cantdo Button 
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=cantdo" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#f44336;text-decoration:none;border-radius:5px;margin:10px;">
                    Mark as Cantdo
                </a>-->
                
                <!-- Picked Button -->
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=picked" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#4caf50;text-decoration:none;border-radius:5px;margin:10px;">
                    Picked
                </a><br><br>
                
                <!-- Dropped Button -->
                <a href="https://aerocorporatecars.com/Admin/external_mail_script/cantdo.php?job_id=' . $row['job_id'] . '&status=dropped" 
                   style="display:inline-block;padding:10px 20px;color:white;text-align:center;background-color:#ff9800;text-decoration:none;border-radius:5px;margin:10px;">
                    Dropped
                </a>
            ';	
																
															$mail->Body.= 
															'</td style="border-top: 1px #000 solid;">
														<tr>
															<td colspan="3" style="background:#ffffcc;"><h2>$'.$job_details['driver_price'].'</h2></td>
														</tr>';
														if($job_details['job_notes'] != '')
															{
																$mail->Body.= '<tr><td colspan="3" style="background:#ffffcc;"><b>Job Notes</b> - '.$job_details['job_notes'].'</td></tr>';
															}
														if($job_details['driver_notes'] != '')
															{
																$mail->Body.= '<tr><td colspan="3" style="background:#ffffcc;"><b><h3><font color="red"> Driver Notes</b> - '.$job_details['driver_notes'].'</font></h3></td></tr>';
															}
													$mail->Body.= '
													</table>
												</td>
											</tr>';
					}
								$mail->Body .= '
										</table>
										<br/>
										<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #fff;">
											<tr>
												<td><b><a href="'.ROOT_ADDRESS.'/external_mail_script/driver_bulk_decision.php?unique_code='.$encoded_unique_code.'&driver_id='.$encoded_driver_id.'&decision_status=2">ROGER AND CONFIRM</a ><b/></td>
											</tr>
										</table><br/><br/>';
										
				$mail->Body    .= self::BODY_END; 
				$mail->send();
			}									

/*-----------------------------------------------------------------------------------------------------------*/				
		public function mass_email($first_char, $subject, $body)
			{
				$mail = new PHPMailer();
				$user = new User();
				
				$mail->FromName = 'Aero Corporate Cars Job Offer';
				
				$all_driver_details = $user->getAllDriverDetailsOfChar($first_char); // get details of this driver
						
				foreach($all_driver_details as $driver_details)
				{ 
				
					$mail->Body    = self::DOCUMENT_HEADER;
					$mail->Body    .= self::BODY_START;
					$mail->Body    .= self::EMAIL_HTML_HEADER;

					//$mail->Body    .= '<strong>Booking Confirmation</strong></td></tr></table><br/>';
					$mail->Body    .= '<strong>Dear '.$driver_details['title'].' '.$driver_details['fname'].' '.$driver_details['lname'].',</strong><br/><br/>';
					
					 
					$mail->Body    .= $body;
					
					$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
										<tr>
											<td>
											Please reply back to this email with <b>YES</b> if you are interested in doing the above job being offered.<br/><br/>
											The first person that replies back with <b>YES</B> will get an email with full job details.<br><br>
											Kind Regards, <br /><br/><strong>Aero Corporate Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
											<strong>Email:</strong> aero@aerocorporatecars.com <br />
											<strong>Telephone:</strong> +61 425 865 955 <br /><br/>
											</td>
										</tr>
										<tr>
											<td>
												<!-- New bookings or bookings cancellations and or amendments are valid only on receipt of our confirmation. <br /><br />
												Cancellations and or amendments for sedans need at least 2 hours notice, 4 hours in New Zealand and 24 hours in Darwin. <br /><br />
												Minibuses and Coaches 24 hours.  Major events 48 hours cancellation and or amendment notice. <br /><br />
												Please be aware that our office closes on public holidays. Except on Melbourne Cup Day. <br /><br />
												All new bookings or bookings cancellations and or amendments must be made through the office, during office hours.<br /><br />
												<br />Our car's service is 24 hours a day, 
												<br />Our office hours are
												<br />Monday to Friday  8am to 8pm
												<br />Saturday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1pm to 5pm
												<br />Sunday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1pm to 8pm -->
											</td>
										</tr>
									</table>";
					$mail->Body    .= self::EMAIL_HTML_FOOTER;
					$mail->Body    .= self::BODY_END;
				
					$mail->addAddress($driver_details['email'], ''.$driver_details['title'].' '.$driver_details['fname'].' '.$driver_details['lname'].'');  // Add a recipient
					//$mail->addAddress('sucheta_sw@yahoo.co.in', ''.$to_title.' '.$to_fname.' '.$to_lname.'');  // Add a recipient
					$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Corporate Cars');
					                                 // Set word wrap to 50 characters
					                                  // Set email format to HTML
					$mail->Subject = $subject;
					$mail->AltBody = $mail->Body;
					if(!$mail->send()) 
					{
					   $message =  'Message could not be sent.';
					   $message =  'Mailer Error: ' . $mail->ErrorInfo;
					   exit;
					}
				}
			}	

//----------------------------------------------------------------------------------------------------------------------/					
		public function sendMailToMonashClaytonStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
			{
				//initialize classes
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 			= $job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
					
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
		
				$mail->addAddress($receiver_email, ''.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				
				if($job_reference_details['job_type'] == '1')
					{
						$mail->Subject = "Confirmation of Booking ID - ".$job_reference_details['j1_id']."";
					}
				if($job_reference_details['job_type'] == '2')
					{
						$mail->Subject = "Confirmation of Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
					}
					
				
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				
				
				$mail->Body    .= '<strong>Booking Confirmation</strong></td></tr></table><br/>';
				$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
				
				$mail->Body  .="Thank you for booking with us and we are now pleased to confirm your arrival details. <br />
											Please review the booking details and let us know immediately if they are not accurate. <br /><br />
											<strong>IMPORTANT INFORMATION</strong><br/><br/>
											If you are arriving from an International Flight, clear customs and make your way into the arrivals area (turn right when exiting Customs), where your driver will be waiting for you near The Welcome Centre Shop.<br /><br />
											If you are arriving from a Domestic Flight, make your way to the arrivals area in the international terminal and your driver will be waiting for you near The Welcome Centre Shop. <br /><br />
											If you can't find your driver once you arrive in Melbourne please <b>ring</b> us on our toll free number <strong>1800 350 850.</strong> <br /><br />
											<STRONG>Please note,</STRONG> You need to inform us via email if your arrival date and flight number change as well as any relevant information about your pickup. ".$chargeaccount_details['account_name']." . <br /><br />
											You can contact us by email aero@aerocorporatecars.com or by phone <strong>1800 350 850.</strong> <br /><br />
											"; 
				$mail->Body    .= $booking_html;
				
				$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
									<tr>
										<td>
										Thank you for booking with us.<br/>Kind Regards, <br /><br/><strong>Aero Corporate Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
										<strong>Email:</strong> aero@aerocorporatecars.com <br />
										<strong>Telephone:</strong> +61 425 865 955 <br /><br/>
										</td>
									</tr>
									<tr>
										<td>
											New bookings or bookings cancellations and or amendments are valid only on receipt of our confirmation. <br /><br />
											Cancellations and or amendments for sedans need at least 2 hours notice, 4 hours in New Zealand and 24 hours in Darwin. <br /><br />
											Minibuses and Coaches 24 hours.  Major events 48 hours cancellation and or amendment notice. <br /><br />
											Please be aware that our office closes on public holidays. Except on Melbourne Cup Day. <br /><br />
											All new bookings or bookings cancellations and or amendments must be made through the office, during office hours.<br /><br />
											<br />Our car's service is 24 hours a day, 
											<br />Our office hours are
											<br />Monday to Friday  8am to 7pm
											<br />Saturday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1pm to 5pm
											<br />Sunday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1pm to 7pm
										</td>
									</tr>
								</table>";
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
				$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map.pdf",'Airport_Map.pdf','base64','application/pdf');  
				
				$mail->send();
			}
//----------------------------------------------------------------------------------------------------------------------/					
		public function sendMailToMonashCollegeStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
			{
				//initialize classes
				
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 			= $job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
					
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
				
				$mail->FromName = 'Universities';
				$mail->addAddress($receiver_email, ''.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				
				if($job_reference_details['job_type'] == '1')
					{
						$mail->Subject = "Confirmation of Booking ID - ".$job_reference_details['j1_id']."";
					}
				if($job_reference_details['job_type'] == '2')
					{
						$mail->Subject = "Confirmation of Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
					}
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				
				
				$mail->Body    .= '<strong>PICK UP CONFIRMATION</strong></td></tr></table><br/>';
				$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
				$mail->Body    .='<strong>IF YOU CAN\'T FIND YOUR DRIVER, FIND A PUBLIC PHONE AND RING US ON 1800 350 850</STRONG> (this is a <strong>free</strong> call, <strong>NO</strong> coins needed)<br /><br />';
				$mail->Body    .='<strong>YOU NEED TO PRINT THIS CONFIRMATION EMAIL AND BRING IT WITH YOU TO SHOW OUR REPRESENTATIVE.</strong><br /><br />';
				$mail->Body  .="Thank you for your airport pickup request as per details below. <br/><br/>
											Please review your booking details and let us know immediately if they are not accurate. <br /><br />
											<strong>IMPORTANT INFORMATION</strong><br/><br/>
											One of our drivers will meet you in Melbourne Airport's International Arrival Hall T2. If you are arriving on an International Flight, turn left when you leave the customs area and go towards The Welcome Centre Shop
											Your driver will hold a 'MONASH' sign for easy identification and will take you to your destination as per your instructions below.<br /><br />
											If you are arriving on a Domestic Flight, make your way to the arrivals area in the international terminal T2. <br /><br />
											<strong>No driver waiting at Melbourne Airport</strong><br/><br/>
											Go to 'The Welcome Centre Shop'.  If your driver is not there within 15 minutes find the nearest public telephone and call us on 1800 350 850 (this is a <strong>free</strong> call, <strong>NO</strong> coins needed) so they can locate your driver. When calling, give us your Monash Student ID number (this is in your Monash offer letter), family name and given name.<br/><br/>
											<STRONG>Please note,</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a <strong>cancellation fee of A$100 </strong> to ".$chargeaccount_details['account_name']." . <br /><br />
											You can contact us by email aero@aerocorporatecars.com or by phone <strong>+61 425 865 955.</strong> <br /><br />
											<!--<strong>City of Melbourne - International Student Welcome Booth</strong><br/><br/>
											The City of Melbourne operates the 'Student Welcome Desk' at Melbourne Airport where volunteers greet you and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in Melbourne.<br/><br/>--> 
											<strong>Changes to or cancellation of your flight</strong><br/><br/>
											To change or cancel your airport pickup booking, contact us at least one full working day before you arrive to avoid additional costs.  Our office hours are 9am to 5pm Monday to Friday, Australian Eastern Standard Time.<br/><br/> 
											To change your arrival details on Saturday or Sunday, telephone +61 425 865 955.<br/><br/> 
											If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.  This will ensure your driver is at Melbourne Airport to meet you.<br/><br/>
											
											<strong>Enrolment</strong><br/><br/>
											Each course has its own enrolment date, time and location.<br/><br/> 
											Monash College students:  https://www.monashcollege.edu.au/live-and-study-in-australia/prepare-to-arrive/enrolment-and-orientation <br/><br/>
											<strong>Orientation program</strong><br/><br/>
											If you are studying the English Language, Foundation Year or Monash College Diploma program, your enrolment and orientation information can be found at:<br/>
											https://www.monashcollege.edu.au/live-and-study-in-australia/prepare-to-arrive/enrolment-and-orientation <br/><br/>
											You must attend Orientation  You will get a lot of valuable information about studying at Monash including your enrolment, study timetable and learning how to access Monash University's computer resources.<br/><br/>  
											Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
											We wish you a pleasant journey and look forward to welcoming you to Monash.<br/><br/>
											Kind regards<br/>
											Monash College<br/><br/>

											"; 
				$mail->Body    .= $booking_html;
				
				$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
									<tr>
										<td>
										Thank you for booking with us.<br/>Kind Regards, <br /><br/><strong>Aero Corporate Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
										<strong>Email:</strong> aero@aerocorporatecars.com <br />
										<strong>Telephone:</strong> +61 425 865 955 <br /><br/>
										</td>
									</tr>
									<tr>
										<td>
											New bookings or bookings cancellations and or amendments are valid only on receipt of our confirmation. <br /><br />
										</td>
									</tr>
								</table>";
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
				$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map.pdf",'Airport_Map.pdf','base64','application/pdf');  
				
				$mail->send();
			}
//----------------------------------------------------------------------------------------------------------------------/					
		public function sendMailToMonashAbroadStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
			{
				//initialize classes
				
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 			= $job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
					
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
				
				$mail->addAddress($receiver_email, ''.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				if($job_reference_details['job_type'] == '1')
					{
						$mail->Subject = "Confirmation of Booking ID - ".$job_reference_details['j1_id']."";
					}
				if($job_reference_details['job_type'] == '2')
					{
						$mail->Subject = "Confirmation of Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
					}
					
				
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				
				
				$mail->Body    .= '<strong>PICK UP CONFIRMATION</strong></td></tr></table><br/>';
				$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
				
				$mail->Body  .="Thank you for booking with us and we are now pleased to confirm your arrival details. <br /><br />
												Please review the booking details and let us know immediately if they are not accurate. <br /><br />
												<strong>IMPORTANT INFORMATION</strong><br/><br/>
												It is <strong>very</strong> important for <strong>Aero Cars </strong> to know how much luggage you are going to have, if you haven't done so please email us on <strong>aero@aerocorporatecars.com</strong> to let them know. <br /><br />
												Our staff will meet you at the airport. They will be holding a placard <strong>\"MONASH\"</strong>. <br /><br />
												If you are arriving from an International Flight, clear customs and make your way into the arrivals area (turn left when exiting Customs), where your driver will be waiting for you near The Welcome Centre Shop.<br /><br />
												If you are arriving from a Domestic Flight, make your way to the arrivals area in the international terminal and your driver will be waiting for you near The Welcome Centre Shop. <br /><br />
												<strong>No driver waiting at Melbourne Airport</strong><br/><br/>
												Go to 'The Meeting Point'. If your driver is not there within 15 minutes find the nearest public telephone and call us on <strong>1800 350 850.</strong> (this is a <strong>free</strong> call, <strong>NO</strong> coins needed) so they can locate your driver. 
												When calling, give us your Monash Student ID number (this is in your Monash offer letter), family name and given name.<br /><br />
												It is <strong>very</strong> important to find your driver as soon as you clear customs. You have a <strong>maximum</strong> of<strong> forty minutes</strong> from the moment that the plane lands to meet your driver.<br /><br />
												You can contact us by email aero@aerocorporatecars.com or by phone <strong>1800 350 850.</strong> <br /><br />
												<strong>City of Melbourne - International Student Welcome Booth</strong><br/><br/>
												The City of Melbourne operates the 'Student Welcome Desk' at Melbourne Airport where volunteers greet you and provide information about welfare services, 
												public transport, housing, employment options and social integration to help you with your stay in Melbourne.<br/><br/>
												<strong>Changes to or cancellation of your flight</strong><br/><br/>
												To change or cancel your airport pickup booking, contact us at least one full working day before you arrive to avoid additional costs. Our office hours are 9am to 5pm Monday to Friday, Australian Eastern Standard Time.<br/><br/>
												To change your arrival details on Saturday or Sunday, telephone +61 425 865 955.<br/><br/>
												If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details. This will ensure your driver is at Melbourne Airport to meet you.<br/><br/>
												<strong>Please note,</strong> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a <strong>cancellation fee of A$100</strong> to ".$chargeaccount_details['account_name']." . <br /><br />
												";  
				$mail->Body    .= $booking_html;
				
				$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
									<tr>
										<td>
										Thank you for booking with us.<br/>Kind Regards, <br /><br/><strong>Aero Corporate Cars </strong><br/>ABN: <br /><br/>
										<strong>Email:</strong> aero@aerocorporatecars.com <br />
										<strong>Telephone:</strong> 1800 350 850 <br /><br/>
										</td>
									</tr>
									<tr>
										<td>
											New bookings or bookings cancellations and or amendments are valid only on receipt of our confirmation. <br /><br />
										</td>
									</tr>
								</table>";
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
				$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map.pdf",'Airport_Map.pdf','base64','application/pdf');  
				$mail->send();
			}
//----------------------------------------------------------------------------------------------------------------------/					
		public function sendMailToMelbourneUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
			{
				//initialize classes
				
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 			= $job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
					
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
				
				$mail->addAddress($receiver_email, ''.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				if($job_reference_details['job_type'] == '1')
					{
						$mail->Subject = "Confirmation of Booking ID - ".$job_reference_details['j1_id']."";
					}
				if($job_reference_details['job_type'] == '2')
					{
						$mail->Subject = "Confirmation of Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
					}
					
				
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				
				
				$mail->Body    .= '<strong>Booking Confirmation</strong></td></tr></table><br/>';
				$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
				
				$mail->Body  .="Thank you for booking with us and we are now pleased to confirm your arrival details. <br /><br />
												Please review the booking details and let us know immediately if they are not accurate. <br /><br />
												<strong>IMPORTANT INFORMATION</strong><br/><br/>
												It is <strong>very</strong> important for <strong>Aero Corporate Cars </strong> to know how much luggage you are going to have, if you haven't done so please email <strong>Aero Corporate Cars</strong> to let them know. <br /><br />
												Our staff will meet you at the airport. They will be holding a placard <strong>\"AERO\"</strong>. <br /><br />
												If you are arriving from an International Flight, clear customs and make your way into the arrivals area (turn left when exiting Customs), where your driver will be waiting for you near The Welcome Centre Shop.<br /><br />
												If you are arriving from a Domestic Flight, make your way to the arrivals area in the international terminal and your driver will be waiting for you near The Welcome Centre Shop. <br /><br />
												If you can't find your driver once you arrive in Melbourne please ring Aero on our toll free number <strong>1800 350 850.</strong> <br /><br />
												You have <strong>forty five minutes</strong> from the moment that the plane lands to meet your driver.<br /><br />
												<STRONG>Please note,</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a <strong>cancellation fee of A$95</strong> to ".$chargeaccount_details['account_name']." . <br /><br />
												You can contact us by email aero@aerocorporatecars.com or by phone <strong>1800 350 850.</strong> <br /><br />
												";  
				$mail->Body    .= $booking_html;
				
				$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
									<tr>
										<td>
										Thank you for booking with us.<br/>Kind Regards, <br /><br/><strong>Aero Corporate Cars</strong><br/>ABN: 101 <br /><br/>
										<strong>Email:</strong> aero@aerocorporatecars.com <br />
										<strong>Telephone:</strong> 1800 350 850 <br /><br/>
										</td>
									</tr>
									<tr>
										<td>
											New bookings or bookings cancellations and or amendments are valid only on receipt of our confirmation. <br /><br />
											Cancellations and or amendments for sedans need at least 2 hours notice, 4 hours in New Zealand and 24 hours in Darwin. <br /><br />
											Minibuses and Coaches 24 hours.  Major events 48 hours cancellation and or amendment notice. <br /><br />
											Please be aware that our office closes on public holidays. Except on Melbourne Cup Day. <br /><br />
											All new bookings or bookings cancellations and or amendments must be made through the office, during office hours.<br /><br />
											<br />Our car's service is 24 hours a day, 
											<br />Our office hours are
											<br />Monday to Friday  8am to 7pm
											<br />Saturday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1pm to 5pm
											<br />Sunday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1pm to 7pm
										</td>
									</tr>
								</table>";
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;

				$mail->send();
			}
//----------------------------------------------------------------------------------------------------------------------/					
		public function sendMailToDeakinUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
			{
				//initialize classes
				
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 			= $job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
					
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
				
				$mail->FromName = 'Deakin';
				$mail->addAddress($receiver_email, ''.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				if($job_reference_details['job_type'] == '1')
					{
						$mail->Subject = "Confirmation of Booking ID - ".$job_reference_details['j1_id']."";
					}
				if($job_reference_details['job_type'] == '2')
					{
						$mail->Subject = "Confirmation of Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
					}
					
				
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				
				
				$mail->Body    .= '<strong>Booking Confirmation</strong></td></tr></table><br/>';
				$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
				
				$mail->Body  .="Thank you for booking with us and we are now pleased to confirm your arrival details. <br /><br />
												Please review the booking details and let us know immediately if they are not accurate. <br /><br />
												<strong>IMPORTANT INFORMATION</strong><br/><br/>
												It is <strong>very</strong> important for <strong>AeroCorporate Cars </strong> to know how much luggage you are going to have, if you haven't done so please email <strong>Aero Corporate Cars</strong> to let them know. <br /><br />
												Our staff will meet you at the airport. They will be holding a placard <strong>\"AERO\"</strong>. <br /><br />
												If you are arriving from an International Flight, clear customs and make your way into the arrivals area (turn left when exiting Customs), where your driver will be waiting for you near The Welcome Centre Shop.<br /><br />
												If you are arriving from a Domestic Flight, make your way to the arrivals area in the international terminal and your driver will be waiting for you near The Welcome Centre Shop. <br /><br />
												If you can't find your driver once you arrive in Melbourne please ring Aero on our toll free number <strong>1800 350 850.</strong> <br /><br />
												You have <strong>forty five minutes</strong> from the moment that the plane lands to meet your driver.<br /><br />
												<STRONG>Please note,</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a <strong>cancellation fee of A$99</strong> to ".$chargeaccount_details['account_name']." . <br /><br />
												You can contact us by email aero@aerocorporatecars.com or by phone <strong>+61 425 865 955.</strong> <br /><br />
												";  
				$mail->Body    .= $booking_html;
				
				$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
									<tr>
										<td>
										Thank you for booking with us.<br/>Kind Regards, <br /><br/><strong>Aero Corporate Cars</strong><br/>ABN: 186 2673 9884<br /><br/>
										<strong>Email:</strong> aero@aerocorporatecars.com <br />
										<strong>Telephone:</strong> +61 425 865 955 <br /><br/>
										</td>
									</tr>
									<tr>
										<td>
											New bookings or bookings cancellations and or amendments are valid only on receipt of our confirmation. <br /><br />
											Cancellations and or amendments for sedans need at least 2 hours notice, 4 hours in New Zealand and 24 hours in Darwin. <br /><br />
											Minibuses and Coaches 24 hours.  Major events 48 hours cancellation and or amendment notice. <br /><br />
											Please be aware that our office closes on public holidays. Except on Melbourne Cup Day. <br /><br />
											All new bookings or bookings cancellations and or amendments must be made through the office, during office hours.<br /><br />
											<br />Our car's service is 24 hours a day, 
											<br />Our office hours are
											<br />Monday to Friday  8am to 7pm
											<br />Saturday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1pm to 5pm
											<br />Sunday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1pm to 7pm
										</td>
									</tr>
								</table>";
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
				$mail->send();
			}
/*-----------------------------------------------------------------------------------------------------------*/				
		public function sendMailToLatrobeUniversityStudent($job_reference_id, $email_type, $receiver_email, $receiver_title, $receiver_fname, $receiver_lname)
			{
				//initialize classes
				
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 			= $job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details = $chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
					
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
				
				$mail->FromName = 'Universities';
				$mail->addAddress($receiver_email, ''.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				if($job_reference_details['job_type'] == '1')
				{
					$mail->Subject = "Confirmation of Booking ID - ".$job_reference_details['j1_id']."";
				}
				if($job_reference_details['job_type'] == '2')
				{
					$mail->Subject = "Confirmation of Booking IDs - ".$job_reference_details['j1_id']." and ".$job_reference_details['j2_id']."";
				}
					
				
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				
				
				$mail->Body    .= '<strong>Booking Confirmation</strong></td></tr></table><br/>';
				$mail->Body    .= '<strong>Dear '.$receiver_title.' '.$receiver_fname.' '.$receiver_lname.',</strong><br/><br/>';
				
				$mail->Body  .="Thank you for booking with us and we are now pleased to confirm your arrival details. <br /><br />
												Please review the booking details and let us know immediately if they are not accurate. <br /><br />
												<strong>IMPORTANT INFORMATION</strong><br/><br/>
												It is <strong>very</strong> important for <strong>Aero Corporate Cars </strong> to know how much luggage you are going to have, if you haven't done so please email <strong>Aero Corpoaret Cars</strong> to let them know. <br /><br />
												Our staff will meet you at the airport. They will be holding a placard <strong>\"AERO\"</strong>. <br /><br />
												If you are arriving from an International Flight, clear customs and make your way into the arrivals area (turn right when exiting Customs), where your driver will be waiting for you near The Welcome Centre Shop.<br /><br />
												If you are arriving from a Domestic Flight, make your way to the arrivals area in the international terminal and your driver will be waiting for you near The Welcome Centre Shop. <br /><br />
												If you can't find your driver once you arrive in Melbourne please ring Aero on our toll free number <strong>1800 350 850.</strong> <br /><br />
												You have <strong>thirty five minutes</strong> from the moment that the plane lands to meet your driver.<br /><br />
												<STRONG>Please note,</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a <strong>cancellation fee of A$101</strong> to ".$chargeaccount_details['account_name']." . <br /><br />
												You can contact us by email aero@aerocorporatecars.com or by phone <strong>+61 425 865 955.</strong> <br /><br />
												";  
				$mail->Body    .= $booking_html;
				
				$mail->Body    .= "<table align='center' width='100%'  cellpadding='5' cellspacing='0'>
									<tr>
										<td>
										Thank you for booking with us.<br/>Kind Regards, <br /><br/><strong>Aero Corporate Cars</strong><br/>ABN: 186 2673 9884<br /><br/>
										<strong>Email:</strong> aero@aerocorporatecars.com <br />
										<strong>Telephone:</strong> +61 425 865 955 <br /><br/>
										</td>
									</tr>
									<tr>
										<td>
											New bookings or bookings cancellations and or amendments are valid only on receipt of our confirmation. <br /><br />
											Cancellations and or amendments for sedans need at least 2 hours notice, 4 hours in New Zealand and 24 hours in Darwin. <br /><br />
											Minibuses and Coaches 24 hours.  Major events 48 hours cancellation and or amendment notice. <br /><br />
											Please be aware that our office closes on public holidays. Except on Melbourne Cup Day. <br /><br />
											All new bookings or bookings cancellations and or amendments must be made through the office, during office hours.<br /><br />
											<br />Our car's service is 24 hours a day, 
											<br />Our office hours are
											<br />Monday to Friday  8am to 8pm
											<br />Saturday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1pm to 5pm
											<br />Sunday &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1pm to 8pm
										</td>
									</tr>
								</table>";
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
				$mail->send();
			}
/*-----------------------------------------------------------------------------------------------------------*/				
		public function sendNoShowEmailForUnderEighteenStudents($job_id, $receiver_email, $receivers_name)
			{
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				
				$job_details 			= $job->getJobDetails($job_id);
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_details['job_reference_id']);
				
						
				$mail->FromName = 'Universities';
				$mail->addAddress($receiver_email, ''.$receivers_name.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				$mail->Subject = "NO SHOW UNDER 18 for Booking for ".$job_reference_details['std_title']." ".$job_reference_details['std_fname']." ".$job_reference_details['std_lname']." ".$job_reference_details['std_id']." - ".formatDate($job_details['job_date'], '3')." at ".calculateTimeInAmPmFormatWithoutSeconds($job_details['job_time']).", Booking ID - ".$job_reference_details['j1_id']."";
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				$mail->Body    .= '<strong>For : '.$receivers_name.'</strong></td></tr></table><br/>';
				
				$mail->Body    .= '<p>The following job for an under 18 student was reported as NO SHOW by the driver</p>
									<table>
										<tr>
											<td>Job ID</td><td>'.$job_id.'</td>
										</tr>
										<tr>
											<td>Job Date/Time</td><td>'.formatDate($job_details['job_date'], '3').' at '.calculateTimeInAmPmFormatWithoutSeconds($job_details['job_time']).'</td>
										</tr>
										<tr>
											<td>Student Name</td><td>'.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'</td>
										</tr>
										<tr>
											<td>Student ID</td><td>'.$job_reference_details['std_id'].'</td>
										</tr>
									</table>
									<p>This email is for your attention and information only.
									Thanks<br/>
									Aero Cars';
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
					
				$mail->send();
			}
		
/*-----------------------------------------------------------------------------------------------------------*/		
		public function sendNoShowEmailForStudents($job_id, $receiver_email, $receivers_name)
			{
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				
				$job_details 			= $job->getJobDetails($job_id);
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_details['job_reference_id']);
				
						
				$mail->FromName = 'Universities';
				$mail->addAddress($receiver_email, ''.$receivers_name.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				$mail->Subject = "NO SHOW for Booking for ".$job_reference_details['std_title']." ".$job_reference_details['std_fname']." ".$job_reference_details['std_lname']." ".$job_reference_details['std_id']." - ".formatDate($job_details['job_date'], '3')." at ".calculateTimeInAmPmFormatWithoutSeconds($job_details['job_time']).", Booking ID - ".$job_reference_details['j1_id']."";
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				$mail->Body    .= '<strong>For : '.$receivers_name.'</strong></td></tr></table><br/>';
				
				$mail->Body    .= '<p>For the following Student, driver has reported a NO SHOW.</p>
									<table>
										<tr>
											<td>Job ID</td><td>'.$job_id.'</td>
										</tr>
										<tr>
											<td>Job Date/Time</td><td>'.formatDate($job_details['job_date'], '3').' at '.calculateTimeInAmPmFormatWithoutSeconds($job_details['job_time']).'</td>
										</tr>
										<tr>
											<td>Student Name</td><td>'.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'</td>
										</tr>
										<tr>
											<td>Student ID</td><td>'.$job_reference_details['std_id'].'</td>
										</tr>
									</table>
									<p>This email is for your attention and information only.
									Thanks<br/>
									Aero Cars';
				$mail->Body    .= self::EMAIL_HTML_FOOTER;
				$mail->Body    .= self::BODY_END;
					
				$mail->send();
			}
/*-----------------------------------------------------------------------------------------------------------*/		
		public function sendHomeStayEmailToUniversity($job_id, $university_name, $email_to)
			{
				$mail 			= new PHPMailer();
				$job_reference 	= new JobReference();
				$job 			= new Job();
				
				$job_details 			= $job->getJobDetails($job_id);
				$job_reference_details 	= $job_reference->getJobReferenceDetails($job_details['job_reference_id']);
				$booking_html 			= $job->getHTMLofWholeBooking($job_reference_id);
				
						
				$mail->FromName = 'Universities';
				$mail->addAddress($receiver_email, ''.$receivers_name.'');  // Add a recipient
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				
				
				$mail->Subject = "Student Home Stay Notification -> ".$job_reference_details['std_title']." ".$job_reference_details['std_fname']." ".$job_reference_details['std_lname']." ".$job_reference_details['std_id']." - ".formatDate($job_details['job_date'], '3')." at ".calculateTimeInAmPmFormatWithoutSeconds($job_details['job_time']).", Booking ID - ".$job_reference_details['j1_id']."";
				$mail->Body    .= self::DOCUMENT_HEADER;
				$mail->Body    .= self::BODY_START;
				$mail->Body    .= self::EMAIL_HTML_HEADER;
				$mail->Body    .= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0" style="border-collapse: collapse; border-color: #fff; background: #45cb37;">
										<tr>
											<td align="left" style="color: #ffffff; font-family: Arial, sans-serif; font-size: 200%">';
				$mail->Body    .= '<strong>For : '.$receivers_name.'</strong></td></tr></table><br/>';
				
				if($_POST['monash_college_homestay'] == '1')
					{
						$mail->Body    .= 'Notification for Monash College Home Stay';
					}
				if($_POST['monash_connect_homestay'] == '1')
					{
						$mail->Body    .= 'Notification for Monash Connect Home Stay';
					}
				if($_POST['rmit_homestay'] == '1')
					{
						$mail->Body    .= 'Notification for RMIT Home Stay';
					}
				$mail->Body    .= 	'<p>Following job has been flagged for Home Stay. The job details are as follows.';
				$mail->Body    .= 	$booking_html;
				$mail->Body    .= 	'<p>Following job has been flagged for Home Stay. The job details are as follows.
									<p>This email is for your attention and information only.
									Thank You<br/>
									Aero Cars';
				$mail->Body    .= 	self::EMAIL_HTML_FOOTER;
				$mail->Body    .= 	self::BODY_END;
					
				$mail->send();
			}
/*-----------------------------------------------------------------------------------------------------------*/	
		
		public function sendUniversityMail($job_reference_id, $process_type, $edit_flag=NULL)
			{
				/*
				PARTIES
				1 	- 	STUDENT
				2	- 	ON BEHALF OF
				3 	- 	STUDENTS GUARDIAN
				4 	- 	STUDENTS AGENT
				5 	- 	UNIVERSITY UNDER 18 DEPARTMENT
				6 	- 	UNIVERSITY HOME STAY DEPARTMENT
				7 	- 	UNIVERSITY CONTACT
				8 	- 	AERO ADMIN
				
				//WHO CAN - STUDENT ONLY
					
					1 	ON ENTERING STUDENT BOOKING (WEBSITE)
							-	send notification to - 1, 2, 4, 7
				
				//WHO CAN - UNIVERSITY STAFF
					
					2 	ON ENTERING STUDENT BOOKING BY UNIVERSITY STAFF IN BMS
							-	send notification to - 8
	
				//WHO CAN - UNIVERSITY STAFF
				
					3 	ON EDITING STUDENT BOOKING (before confirmation)
							-	send notification to - NONE
								
					4 	ON DECLINING STUDENT BOOKING (before confirmation)
							-	send notification to - 1, 2, 3, 4
							
					5	ON APPROVING STUDENT BOOKING 
							-	send notification to - NONE 8?
				
				//WHO CAN - AERO CAR ADMIN OR UNIVERSITY STAFF
				
					6	ON CONFIRMING STUDENT BOOKING
						ON ENTERING STUDENT BOOKING BY AERO CAR ADMIN IN BMS
							-	send notification to - 1, 2 , 4, 5, 6
							
				//WHO CAN - AERO CAR ADMIN, University Staff
							
					7 	ON EDITING STUDENT BOOKING - 
							DATE/TIME AND DROPOFF LOCATION ARE SAME
							-	send notification to - 1, 2, 4, 7, 8
							IF DATE/TIME AND DROPOFF LOCATION CHANGES
							-	send notification to - 1, 2, 3, 4, 5, 6, 7, 8
							
				//WHO CAN - AERO CAR ADMIN, University Staff
					8 	ON CANCELLING STUDENT BOOKING 
							(OVER 18)
							-	send notification to - 1, 2, 4, 6, 7, 8
							(UNDER 18)
							-	send notification to - 1, 2, 3, 4, 5, 6, 7, 8

				//WHO CAN - Aero CAR ADMIN OR DRIVER
				
					9 	ON REPORTING NOW SHOW 
							(OVER 18)
							-	send notification to - 1, 2, 4, 5, 7, 8
							(UNDER 18)
							-	send notification to - 1, 2, 3, 4, 5, 6, 7, 8
				*/
				
				
				$job_reference 	= new JobReference();
				$job 			= new Job();
				$chargeaccounts = new chargeAccount();
				
				$job_reference_details 		= 	$job_reference->getJobReferenceDetails($job_reference_id);
				$j1_details 				= 	$job->getJobDetails($job_reference_details['j1_id']);
				$chargeaccount_details 		= 	$chargeaccounts->getChargeAccountDetails($job_reference_details['charge_acc_id']);
				
				$booking_html = $job->getHTMLofWholeBooking($job_reference_id);
		
//	1 	ON ENTERING STUDENT BOOKING (WEBSITE)
				if($process_type == '1')
					{
						// 1 - TO STUDENT
						if($job_reference_details['std_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->FromName = 'Universities';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image'); deleted '.$job_reference_details['std_title'].' 
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
								$mail->Body    	.=	self::MOBILE_HEADER;
								
								$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), AWAITING APPROVAL from '.$chargeaccount_details['account_name'].' ';
								$mail->Body    	.= 	'<h3>AWAITING APPROVAL</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].',</strong><br/><br/>';
								$mail->Body  	.=	'Thank you for booking your airport transfer with Aero. Your booking has been entered succesfully.  <br><br>Our system has sent an email to '.$chargeaccount_details['account_name'].' with your booking details and is now awaiting approval from '.$chargeaccount_details['account_name'].'.  <br>Aero will send you an email confirmation once your booking has been approved by '.$chargeaccount_details['account_name'].'.<br/><br/>
													
													<b>Your driver will ring or text you <u>after</u> your flight lands. Please make sure that you connect your phone to the airport&#39;s free Wi-Fi and or your phone has global roaming enabled</b>.<br><br>
													Please allow five (5) working days to receive your booking confirmation. If you  do not receive it, please check your spam folder first before emailing us to request your booking confirmation.<br/><br/>
													Meanwhile please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 2 - TO ON BEHALF OF
						if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->From 	= 'aero@aerocorporatecars.com';
								$mail->FromName = 'Universities';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');								
								$mail->addAddress($job_reference_details['on_behalf_email'],  ''.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].'');
								$mail->Body    	.=	self::MOBILE_HEADER;
								
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, AWAITING APPROVAL from '.$chargeaccount_details['account_name'].' ';
									}
								else
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), AWAITING APPROVAL from '.$chargeaccount_details['account_name'].' ';
									}
								
								$mail->Body    	.= 	'<h3>AWAITING APPROVAL</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].',</strong><br/><br/>';
								$mail->Body  	.=	'Thank you for booking with us. Your booking is awaiting approval from '.$chargeaccount_details['account_name'].' and
													once approved, you will be notified by email.<br/><br/>
													
													<b>Your student&#39;s driver will ring or text your student after their flight lands. Please make sure that you tell your student to turn their phones on, connect their phones to the airport&#39;s free Wi-Fi, and or to enable global roaming</b>.<br><br>
													Please allow five (5) working days to receive your booking confirmation. If you do not receive it, please check your spam folder first before email us to request your booking confirmation.<br/><br/>
													Meanwhile please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						
						// 3 - TO GUARDIAN
						if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
							{
								// Do Nothing
							}
							
						// 4 - TO AGENT
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->FromName = 'Universities';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
															
								$mail->addAddress($job_reference_details['agents_email'],  $job_reference_details['agents_name']);
								$mail->Body    	.=	self::MOBILE_HEADER;
								
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, AWAITING APPROVAL from '.$chargeaccount_details['account_name'].' ';
									}
								else
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), AWAITING APPROVAL from '.$chargeaccount_details['account_name'].' ';
									}
								
								$mail->Body    	.= 	'<h3>AWAITING APPROVAL</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['agents_name'].',</strong><br/><br/>';
								$mail->Body  	.=	'Thank you for booking your student&#39;s airport transfer with Aero. Your student&#39;s booking is awaiting approval from '.$chargeaccount_details['account_name'].' and
													once approved, you will be notified by email.<br/><br/>
													
													<b>Your student&#39;s driver will ring or text your student after their flight lands. Please make sure that you tell your student to turn their phones on, connect their phones to the airport&#39;s free Wi-Fi, and or to enable global roaming</b>.<br><br>
													Please allow five (5) working days to receive your booking confirmation. If you  do not receive it, please check your spam folder first before email us to request your booking confirmation.<br/><br/>
													Meanwhile please review the booking details and let us know immediately if they are not accurate, by replying to this email.<br/><br/>';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
							
						// 5 - UNDER 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								// Do Nothing
							}
						
						// 6 - HOMESTAY Department
						if($job_reference_details['is_homestay'] == '1')
							{
								// Do Nothing
							}
							
						// 7 - TO UNIVERSITY
						$admin_array = $chargeaccounts->getAllChargeAccountContacts($job_reference_details['charge_acc_id']);
						foreach($admin_array AS $admin)
							{
								if($admin['email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->FromName = 'Universities';
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										$monashInsert = '';
										$monashHeader = '';
										if($job_reference_details['monash_uni'] == '1'){
												$monashInsert = ' MU';
												$monashHeader = 'Monash University';
										}else if($job_reference_details['monash_uni'] == '0'){
											$monashInsert = ' MA';
											$monashHeader = 'Monash Abroad';
										}
																		
										$mail->addAddress($admin['email'],  ''.$admin['title'].' '.$admin['fname'].' '.$admin['lname'].'');
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''. str_replace(" ", "", $job_reference_details['std_id']).  $monashInsert .' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' APPROVAL REQUEST for UNDER 18 Booking ID - '.$job_reference_details['j1_id'].'';
											}
										if($job_reference_details['is_homestay'] == '1')
											{
												$mail->Subject 	= 	''.str_replace(" ", "", $job_reference_details['std_id']). $monashInsert .' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' APPROVAL REQUEST for HOMESTAY Booking ID - '.$job_reference_details['j1_id'].'';
											}	
										else
											{
												$mail->Subject 	= 	''.str_replace(" ", "", $job_reference_details['std_id']). $monashInsert .' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' APPROVAL REQUEST for Booking ID - '.$job_reference_details['j1_id'].'';
											}
										$mail->Body     .=  $monashHeader;
										$mail->Body    	.= 	'<h3>AWAITING APPROVAL</h3>';
										$mail->Body  	.=	'New booking request from a '.$chargeaccount_details['account_name'] .' student. 
															<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body		.= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0"><tr><td>';
										//$mail->Body  	.=	'<b>*STOP*</b> are you a student? if you are, <br><b>DO NOT</b> click on the below links. <br>Below links are <b>only</b> for your University to use.</a ><br /><br />';
										$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/university_booking_approval.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=1'>Approve this Booking<br><br>";
										$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/university_booking_approval.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=2'>Decline this Booking</a ><br /><br />";
										$mail->Body		.= '</td><tr></table>';
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
						
					}
				
//	2 	ON ENTERING STUDENT BOOKING BY UNIVERSITY STAFF IN BMS

				if($process_type == '2')
					{
						// 1 - TO STUDENT
						if($job_reference_details['std_email'] != '')
							{
								// Do Nothing
							}
						// 2 - TO ON BEHALF OF
						if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
							{
								// Do Nothing
							}
						// 3 - TO GUARDIAN
						if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
							{
								// Do Nothing
							}
						// 4 - TO AGENT
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								// Do Nothing
							}
						// 5 - UNDER 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								// Do Nothing
							}
						// 6 - HOMESTAY Department
						if($job_reference_details['is_homestay'] == '1')
							{
								// Do Nothing
							}
						// 8 - TO AERO ADMIN ONLY
						$admin_array = $job->getAdminDetails();
						foreach($admin_array AS $admin)
							{
								if($admin['email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->FromName = 'Universities';
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$mail->addAddress($admin['email'],  ''.$admin['title'].' '.$admin['fname'].' '.$admin['lname'].'');
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' CONFIRMATION REQUEST for Booking ID - '.$job_reference_details['j1_id'].'';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' CONFIRMATION REQUEST for Booking ID - '.$job_reference_details['j1_id'].'';
											}
										
										$mail->Body    	.= 	'<h3>AWAITING CONFIRMATION</h3>';
										$mail->Body  	.=	'A new booking has been approved by '.$chargeaccount_details['account_name'].' for a student. 
															Please review the booking and make necessary changes before confirming.<br/>
															The following are the details of the booking.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body		.= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0"><tr><td>';
										$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/booking_decision.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=1'>Confirm this Booking</a ><br /><br />"; // I added /
										$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/booking_decision.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=2'>Decline this booking</a ><br /><br />"; // I added /
										$mail->Body		.= '</td><tr></table>';
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
					}
					
//3 	ON EDITING STUDENT BOOKING (before confirmation)  would like this to work
				//if($process_type == '3')
				//	{
						// 1 - TO STUDENT
				//		if($job_reference_details['std_email'] != '')
				//			{
				//				$mail 			= new PHPMailer();
				//				$mail->FromName = 'Universities';
				//				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
				//				$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
				//				$mail->Body    	.=	self::MOBILE_HEADER;
								
				//				$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), AWAITING APPROVAL from '.$chargeaccount_details['account_name'].' ';
				//				$mail->Body    	.= 	'<h3>AWAITING APPROVAL</h3>';
				//				$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].',</strong><br/><br/>';
				//				$mail->Body  	.=	'Your booking has been amended succesfully.  <br><br>Our system has sent an email to '.$chargeaccount_details['account_name'].' with your booking details and is now awaiting approval from '.$chargeaccount_details['account_name'].'.  <br>Aero will send you an email confirmation once your booking has been approved by '.$chargeaccount_details['account_name'].'.<br/><br/>
													
				//									Please allow five (5) working days to receive your booking confirmation. If you  do not receive it, please check your spam folder first before emailing us to request your booking confirmation.<br/><br/>
				//									Meanwhile please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
				//				$mail->Body    	.= 	$booking_html;
				//				$mail->Body    	.= 	self::MOBILE_FOOTER;
				//				$mail->send();
				
				// 		// 2 - TO ON BEHALF OF
				// 		if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
				// 			{
				// 				// Do Nothing
				// 			}
				// 		// 3 - TO GUARDIAN
				// 		if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
				// 			{
				// 				// Do Nothing
				// 			}
				// 		// 4 - TO AGENT
				// 		if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
				// 			{
				// 				// Do Nothing
				// 			}
				// 		// 5 - UNDER 18 Department
				// 		if($job_reference_details['under_18'] == '1')
				// 			{
				// 				// Do Nothing
				// 			}
				// 		// 6 - HOMESTAY Department
				// 		if($job_reference_details['is_homestay'] == '1')
				// 			{
				// 				// Do Nothing
				// 			}
				// 	}
				
//	4 - ON DECLINING STUDENT BOOKING (before confirmation)
				if($process_type == '4')
					{
						// 1 - TO STUDENT
						if($job_reference_details['std_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->FromName = 'Universities';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');				
								$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
								$mail->Body    	.=	self::MOBILE_HEADER;
								$mail->Subject 	= 	'BOOKING DECLINED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), DECLINED BY '.$chargeaccount_details['account_name'].' ';
								$mail->Body    	.= 	'<h3>BOOKING REQUEST HAS BEEN DECLINED BY YOUR INSTITUTION</h3>';
								$mail->Body    	.= 	'<strong>Dear <!--'.$job_reference_details['std_title'].'--> '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].',</strong><br/><br/>';
								$mail->Body  	.=	'Your airport booking request has been declined due to one of the reasons stated in the table below.
													
													<OL>
													<li> You have used the wrong booking form. <br>
													<li> Booking declined as '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' does not meet enrolment criteria.<br/>
													<li> You have requested your airport transfer booking less than four (4) days prior to your arrival day.<br/>
													<li> You have requested to cancel this booking.<br/>
													<li> You are not a new international student.<br>
													<li> You have used this free service before.<br/>
													<li> You are not entitled to a complimentary Airport Transfer.<br/>												
													<li> You did not supply a valid flight number.<br/>
													<li> You did not supply a correct destination address.<br/>
													<li> You are not an exchange/inter campus exchange or study abroad student.<br/>
													<li> You are arriving with too many bags.<br/>
													<li> You have entered your booking more than once.<br/>
													<li> You have not accepted your offer.<br/>
													<li> You have not enrolled in units.<br/>
													<li> You have selected more that two (2) passengers, and you are undergraduate or postgraduate student.<br/>
													<li> Some of the above and or other important information is missing.<br/><br/>
													</OL>';
													if($job_reference_details['charge_acc_id'] == '15') //For RMIT
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>
																				Should you require further assistance, please email RMIT at isarrival@rmit.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '1035') //For VU  
														{
															$mail->Body  	.=	'<b>Please note:</b><br> Only VU international students with a student visa (subclass 500) are eligible for this service.<br><br> If you are not an international student, please explore alternative transportation options below&#58; <br>Melbourne Airport https://www.melbourneairport.com.au/getting-to-from-the-airport and Avalon Airport https://avalonairport.com.au/getting-here/. <br><br>
																Should you require further assistance, please contact VU at International.Arrivals@vu.edu.au<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '19') //For Abroad  
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>
																				Should you require further assistance, please contact Aero at aero@aerocorporatecars.com<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '55') //For College 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a student studying an undergraduate or postgraduate course. You need to go to https://aerocorporatecars.com/Monash.php to enter your booking. <br><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash College at arrival.services@monashcollege.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '9') //For Connect 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a Monash College student starting one of the following courses:<br>
																				Monash University Diplomas<br>
																				Monash University Foundation Year (MUFY)<br>
																				Monash English.<br>
																				You will need to go to https://aerocorporatecars.com/Monash_College.php to enter your booking. <br><br>
																				If you are <b>not</b> a Monash College student, you will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash University at airportpickup@monash.edu.<br/><br/>';
														}
								$mail->Body  	.=	'Copy of your declined booking request is as follows';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 2 - TO ON BEHALF OF
						if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->FromName = 'Universities';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['on_behalf_email'],  ''.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].'');
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'BOOKING DECLINED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].')  UNDER 18, DECLINED BY '.$chargeaccount_details['account_name'].' ';
									}
								else
									{
										$mail->Subject 	= 	'BOOKING DECLINED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), DECLINED BY '.$chargeaccount_details['account_name'].' ';
									}
								
								$mail->Body    	.= 	'<h3>BOOKING REQUEST HAS BEEN DECLINED BY THE CORRESPONDING INSTITUTION</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].',</strong><br/><br/>';
								$mail->Body  	.=	'Your student airport booking request has been declined due to the reason stated in the table below.

													<OL>
													<li> You have used the wrong booking form. <br>
													<li> Booking declined as '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' does not meet enrolment criteria.<br/>
													<li> You have requested your airport transfer booking less than four (4) days prior to your arrival day.<br/>
													<li> You or your student have requested to cancel this booking.<br/>
													<li> You are not a new international student.<br>
													<li> You have used this free service before.<br/>
													<li> You are not entitled to a complimentary Airport Transfer.<br/>												
													<li> You did not supply a valid flight number.<br/>
													<li> You did not supply a correct destination address.<br/>
													<li> You are not an exchange/inter campus exchange or study abroad student.<br/>
													<li> You are arriving with too many bags.<br/>
													<li> You have entered your booking more than once.<br/>
													<li> You have not accepted your offer.<br/>
													<li> You have not enrolled in units.<br/>
													<li> You have selected more that two (2) passengers, and you are undergraduate or postgraduate student.<br/>
													<li> Some of the above and or other important information is missing.<br/><br/>
													</OL>';
													if($job_reference_details['charge_acc_id'] == '15') //For RMIT
														{
															$mail->Body  	.=	'Should you require further assistance, please email RMIT at isarrival@rmit.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '1035') //For VU  
														{
															$mail->Body  	.=	'<b>Please note:</b><br> Only VU international students with a student visa (subclass 500) are eligible for this service.<br><br> If you are not an international student, please explore alternative transportation options below&#58; <br>Melbourne Airport https://www.melbourneairport.com.au/getting-to-from-the-airport and Avalon Airport https://avalonairport.com.au/getting-here/. <br><br>
																Should you require further assistance, please contact VU at International.Arrivals@vu.edu.au<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '19') //For Abroad  
														{
															$mail->Body  	.=	'Should you require further assistance, please contact Aero at aero@aerocorporatecars.com<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '55') //For College 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a student studying an undergraduate or postgraduate course. You need to go to https://aerocorporatecars.com/Monash.php to enter your booking. <br><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash College at arrival.services@monashcollege.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '9') //For Connect 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a Monash College student starting one of the following courses:<br>
																				Monash University Diplomas<br>
																				Monash University Foundation Year (MUFY)<br>
																				Monash English.<br>
																				You will need to go to https://aerocorporatecars.com/Monash_College.php to enter your booking. <br><br>
																				If you are <b>not</b> a Monash College student, you will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash University at airportpickup@monash.edu.<br/><br/>';
														}
								$mail->Body  	.=	'Copy of your declined booking request is as follows';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 3 - TO GUARDIAN
						if($job_reference_details['std_guar_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->From 	= 'aero@aerocorporatecars.com';
								$mail->FromName = 'Universities';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['std_guar_email'],  ''.$job_reference_details['std_guar_title'].' '.$job_reference_details['std_guar_fname'].' '.$job_reference_details['std_guar_lname'].'');
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'BOOKING DECLINED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, DECLINED BY '.$chargeaccount_details['account_name'].' ';
									}
								else
									{
										$mail->Subject 	= 	'BOOKING DECLINED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), DECLINED BY '.$chargeaccount_details['account_name'].' ';
									}
								$mail->Body    	.= 	'<h3>BOOKING REQUEST HAS BEEN DECLINED BY YOUR INSTITUTION</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_guar_title'].' '.$job_reference_details['std_guar_fname'].' '.$job_reference_details['std_guar_lname'].',</strong><br/><br/>';
								$mail->Body  	.= 'Dear guardian, arrival booking request has been declined due to one of the reasons stated in the table below..<br/><br/>
													
													<OL>
													<li> You have used the wrong booking form. <br>
													<li> Booking declined as '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' does not meet enrolment criteria.<br/>
													<li> You have requested your airport transfer booking less than four (4) days prior to your arrival day.<br/>
													<li> You have requested to cancel this booking.<br/>
													<li> You are not a new international student.<br>
													<li> You have used this free service before.<br/>
													<li> You are not entitled to a complimentary Airport Transfer.<br/>												
													<li> You did not supply a valid flight number.<br/>
													<li> You did not supply a correct destination address.<br/>
													<li> You are not an exchange/inter campus exchange or study abroad student.<br/>
													<li> You are arriving with too many bags.<br/>
													<li> You have entered your booking more than once.<br/>
													<li> You have not accepted your offer.<br/>
													<li> You have not enrolled in units.<br/>
													<li> You have selected more that two (2) passengers, and you are undergraduate or postgraduate student.<br/>
													<li> Some of the above and or other important information is missing.<br/><br/>
													</OL>';
													if($job_reference_details['charge_acc_id'] == '15') //For RMIT
														{
															$mail->Body  	.=	'Should you require further assistance, please email RMIT at isarrival@rmit.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '1035') //For VU  
														{
															$mail->Body  	.=	'<b>Please note:</b><br> Only VU international students with a student visa (subclass 500) are eligible for this service.<br><br> If you are not an international student, please explore alternative transportation options below&#58; <br>Melbourne Airport https://www.melbourneairport.com.au/getting-to-from-the-airport and Avalon Airport https://avalonairport.com.au/getting-here/. <br><br>
																Should you require further assistance, please contact VU at International.Arrivals@vu.edu.au<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '19') //For Abroad  
														{
															$mail->Body  	.=	'Should you require further assistance, please contact Aero at aero@aerocorporatecars.com<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '55') //For College 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a student studying an undergraduate or postgraduate course. You need to go to https://aerocorporatecars.com/Monash.php to enter your booking. <br><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash College at arrival.services@monashcollege.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '9') //For Connect 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a Monash College student starting one of the following courses:<br>
																				Monash University Diplomas<br>
																				Monash University Foundation Year (MUFY)<br>
																				Monash English.<br>
																				You will need to go to https://aerocorporatecars.com/Monash_College.php to enter your booking. <br><br>
																				If you are <b>not</b> a Monash College student, you will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash University at airportpickup@monash.edu.<br/><br/>';
														}	
								$mail->Body  	.=	'Copy of your declined booking request is as follows';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
							
						// 4 - TO AGENT
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->FromName = 'Universities';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['agents_email'],  $job_reference_details['agents_name']);
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'BOOKING DECLINED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_guar_title'].' '.$job_reference_details['std_guar_fname'].' '.$job_reference_details['std_guar_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, DECLINED BY '.$chargeaccount_details['account_name'].' ';
									}
								else
									{
										$mail->Subject 	= 	'BOOKING DECLINED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_guar_title'].' '.$job_reference_details['std_guar_fname'].' '.$job_reference_details['std_guar_lname'].' ('.$job_reference_details['std_id'].'), DECLINED BY '.$chargeaccount_details['account_name'].' ';
									}
								
								$mail->Body    	.= 	'<h3>BOOKING REQUEST HAS BEEN DECLINED BY THE CORRESPONDING INSTITUTION</h3>';
								$mail->Body    	.= 	'<strong>'.$job_reference_details['agents_name'].',</strong><br/><br/>';
								$mail->Body  	.=	'Dear Agent, airport booking request has been declined due to one of the reasons stated in the table below.<br/><br/>
													
													<OL>
													<li> You have used the wrong booking form. <br>
													<li> Booking declined as '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' does not meet enrolment criteria.<br/>
													<li> You have requested your airport transfer booking less than four (4) days prior to your arrival day.<br/>
													<li> You or your student have requested to cancel this booking.<br/>
													<li> You are not a new international student.<br>
													<li> You have used this free service before.<br/>
													<li> You are not entitled to a complimentary Airport Transfer.<br/>												
													<li> You did not supply a valid flight number.<br/>
													<li> You did not supply a correct destination address.<br/>
													<li> You are not an exchange/inter campus exchange or study abroad student.<br/>
													<li> You are arriving with too many bags.<br/>
													<li> You have entered your booking more than once.<br/>
													<li> You have not accepted your offer.<br/>
													<li> You have not enrolled in units.<br/>
													<li> You have selected more that two (2) passengers, and you are undergraduate or postgraduate student.<br/>
													<li> Some of the above and or other important information is missing.<br/><br/>
													</OL>';
													if($job_reference_details['charge_acc_id'] == '15') //For RMIT
														{
															$mail->Body  	.=	'Should you require further assistance, please email RMIT at isarrival@rmit.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '1035') //For VU  
														{
															$mail->Body  	.=	'<b>Please note:</b><br> Only VU international students with a student visa (subclass 500) are eligible for this service.<br><br> If you are not an international student, please explore alternative transportation options below&#58; <br>Melbourne Airport https://www.melbourneairport.com.au/getting-to-from-the-airport and Avalon Airport https://avalonairport.com.au/getting-here/. <br><br>
																Should you require further assistance, please contact VU at International.Arrivals@vu.edu.au<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '19') //For Abroad  
														{
															$mail->Body  	.=	'Should you require further assistance, please contact Aero at aero@aerocorporatecars.com<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '55') //For College 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a student studying an undergraduate or postgraduate course. You need to go to https://aerocorporatecars.com/Monash.php to enter your booking. <br><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash College at arrival.services@monashcollege.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '9') //For Connect 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a Monash College student starting one of the following courses:<br>
																				Monash University Diplomas<br>
																				Monash University Foundation Year (MUFY)<br>
																				Monash English.<br>
																				You will need to go to https://aerocorporatecars.com/Monash_College.php to enter your booking. <br><br>
																				If you are <b>not</b> a Monash College student, you will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash University at airportpickup@monash.edu.<br/><br/>';
														}
								$mail->Body  	.=	'Copy of your declined booking request is as follows';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
							
						// 5 - UNDER 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								// Do Nothing
							}
						// 6 - HOMESTAY Department
						if($job_reference_details['is_homestay'] == '1')
							{
								// Do Nothing
							}
					}
					
//	5	ON APPROVING STUDENT BOOKING (By University Admin)
				if($process_type == '5')
					{
						// 1 - TO STUDENT
						if($job_reference_details['std_email'] != '')
							{
								// Do Nothing
							}
						// 2 - TO ON BEHALF OF
						if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
							{
								// Do Nothing
							}
						// 3 - TO GUARDIAN
						if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
							{
								// Do Nothing
							}
						// 4 - TO AGENT
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								// Do Nothing
							}
						// 5 - UNDER 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								// Do Nothing
							}
						// 6 - HOMESTAY Department
						if($job_reference_details['is_homestay'] == '1')
							{
								// Do Nothing
							}

						// 8 - TO Aero ADMIN ONLY
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								$admin_array = $job->getAdminDetails();
								foreach($admin_array AS $admin)
									{
										if($admin['email'] != '')
											{
												$mail 			= new PHPMailer();
												$mail->FromName = 'Universities';
												$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
												
												
												//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
												//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
												$mail->addAddress($admin['email'],  ''.$admin['title'].' '.$admin['fname'].' '.$admin['lname'].'');
												$mail->Body    	.=	self::MOBILE_HEADER;
												if($job_reference_details['under_18'] == '1')
													{
														$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' CONFIRMATION REQUEST for Booking ID - '.$job_reference_details['j1_id'].'';
													}
												else
													{
														$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' CONFIRMATION REQUEST for Booking ID - '.$job_reference_details['j1_id'].'';
													}
												
												$mail->Body    	.= 	'<h3>AWAITING YOUR CONFIRMATION</h3>';
												$mail->Body  	.=	'A new booking has been approved by '.$chargeaccount_details['account_name'].' for a student. 
																	Please review the booking to confirm.<br/><br/> 
																	The following are the details of the booking.<br/><br/>';
												$mail->Body    	.= 	$booking_html;
												$mail->Body		.= '<table align="center" width="100%"  border="0"  cellpadding="5" cellspacing="0"><tr><td>';
												$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/booking_decision.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=1'>Confirm this Booking</a ><br /><br />"; // I added /
												$mail->Body		.= "<a href='".ROOT_ADDRESS."/external_mail_script/booking_decision.php?job_reference_id=".$job_reference_id."&admin_id=".$admin_id."&confirm_status=2'>Decline this booking</a ><br /><br />"; // I added /
												$mail->Body		.= '</td><tr></table>';
												$mail->Body    	.= 	self::MOBILE_FOOTER;
												$mail->send();
											}
									}
							}
					}
				
//	6	ON CONFIRMING STUDENT BOOKING - By Aero
				//	send notification to - 1, 2 , 4, 5, 6
				if($process_type == '6')
					{
						// 1 - TO STUDENT
						if($job_reference_details['std_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->AddBCC('unis@aerocorporatecars.com', 'Copy of confirmation'); // sends a copy of job to uni @ aero 
								//$mail->AddBCC 	= 'uni-bookings@aerocorporatecars.com';
								$mail->FromName = 'Aero Cars';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Aero Cars');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image'); TOOK THIS OFF '.$job_reference_details['std_title'].' 
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								if($job_reference_details['under_18'] == '1')
									{
										$data = ''.$chargeaccount_details['account_name'].' UNDER 18 Student - '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') : Job ID - '.$job_reference_details['j1_id'].', Date -  '.formatDate($j1_details['job_date'], 11).', Time - '.calculateTimeInAmPmFormatWithoutSeconds($j1_details['job_time']).', Destination - '.$j1_details['to_line1'].', '.$j1_details['to_line2'].', '.$j1_details['to_sub'].', '.$j1_details['to_pc'].', '.$j1_details['to_state'].'';
									}
								else
									{
										$data = ''.$chargeaccount_details['account_name'].' Student - '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') : Job ID - '.$job_reference_details['j1_id'].', Date -  '.formatDate($j1_details['job_date'], 11).', Time - '.calculateTimeInAmPmFormatWithoutSeconds($j1_details['job_time']).', Destination - '.$j1_details['to_line1'].', '.$j1_details['to_line2'].', '.$j1_details['to_sub'].', '.$j1_details['to_pc'].', '.$j1_details['to_state'].'';
									}
								$qr = file_get_contents("https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=".urlencode($data)."");
								
								$mail->addStringAttachment($qr, "For office use only.png");
								
								$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
								
								if($job_reference_details['charge_acc_id'] == '15') // RMIT Student
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_WeChat_Line_QR_Codes.pdf",'Add Aero to WhatsApp - WeChat using our QR Codes.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'Look for RMIT sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport Map.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');   
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mandarin_RMIT_Sign.pdf",'Zhongwen.pdf','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Vietnamise_RMIT_Sign.pdf",'Dich_vu_dón_tai_sân_bay.pdf','base64','application/png');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '9') // Connect Student
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'Look for Monash sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MU_MC_Sign.pdf",'Aero & Monash Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Please_read_MU.pdf",'Please Read.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN_MONASH.pdf",'WIS.pdf','base64','application/pdf');
									}	
								if($job_reference_details['charge_acc_id'] == '55') // College Student
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College_Sign.pdf",'Look for Monash sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MC_MU_Sign.pdf",'Aero & Monash Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Please_read_MC.pdf",'Please Read.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN_MONASH.pdf",'WIS.pdf','base64','application/pdf');
									}		
								if($job_reference_details['charge_acc_id'] == '19') // Abroad Student
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'Look for Monash sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MU_MC_Sign.pdf",'Aero & Monash Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf'); 
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1031') // Deakin College 
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Other Meeting Point.png','base64','application/png');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Deakin_Logo.pdf",'Look For.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Airport_Map_a.pdf','base64','application/pdf');
									}
									if($job_reference_details['charge_acc_id'] == '506') // Deakin University 
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Other Meeting Point.png','base64','application/png');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Deakin_Logo.pdf",'Look For.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Airport_Map_a.pdf','base64','application/pdf');
									}
									if($job_reference_details['charge_acc_id'] == '1035') // Victoria University
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
									if($job_reference_details['charge_acc_id'] == '1036') // Victoria College
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
									if($job_reference_details['charge_acc_id'] == '1040') // Victoria Uni Sydney
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
									if($job_reference_details['charge_acc_id'] == '1041') // Victoria Uni Brisbane
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
									if($job_reference_details['charge_acc_id'] == '1042') // ACVET 
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								else // common attachments Student
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
									}
									
								$mail->Body    	.=	self::MOBILE_HEADER;
								$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), BOOKING CONFIRMED by '.$chargeaccount_details['account_name'].' ';
								$mail->Body    	.= 	'<h3>BOOKING CONFIRMATION</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'</strong><br/><br/>'; // '.$job_reference_details['std_fname'].' 
								
								if($job_reference_details['charge_acc_id'] == '55') // MONASH COLLEGE student
									{
										$mail->Body  	.=	'Thank you for booking with us. We are pleased to confirm your booking. Your arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															<font color="0909FF;">You <b><u>must</b></u> ensure that your phone has <u><b>global roaming enabled before</b></u> you arrive at Melbourne Airport and you <u><b>switch it on</u></b> when you arrive.<br>
															Your driver will ring or text you <u>sometime between flight landing and you getting to the Welcome Centre</u>. <br></font><br>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
														    <UL>
															<li><font color="#FF0000;"><b>Your driver <u>does not</u> need to see your passport. You must ensure that your passport is in a safe place with all your other important documents.</font></b>
															<li><font color="#FF0000;">If you bring more luggage than you have told us, arrive with <b>oversized</b> luggage or exceed the luggage allowance, your driver may not be able to pick you up, and you will need to make your own arrangements.</font></li>
															<li> You must ensure that your <u>phone is switched on</u> and that you have <u>enabled global roaming</u> before you arrive at Melbourne Airport. Your driver will ring or text you after your flight lands.</li>
															<li> DO NOT go shopping in the airport terminal, you must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate you for the cost of alternative transport if you miss your pick-up.   </li>
															<li> If you cannot find your driver, text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure you do not miss your pick-up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Monash sign confirming they are a representative of Monash College (see attachments). The driver will also have your name and contact number provided in this booking.</li>
															<li> The QR code is for Aero drivers only.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															
															Please ensure that you do not leave any of your belongings in our vehicles. We cannot guarantee the safety of your lost luggage.  You may need to make a private arrangement to have your lost property delivered to you.  The cost you will incur will be dependent on your address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/>
															The driver will hold a &#39;MONASH&#39; (see attachments) sign for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															
															If your driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your driver. When calling, please be ready to provide your flight number, Monash Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>Any changes must be done by emailing <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a>.  </li>
															<li>If you miss a flight on your way to Melbourne, Australia, you must notify <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a> (<b>NOT the driver</b>) as soon as possible by <a href="mailto:aero@aerocorporatecars.com"> email</a>. If your notification is received a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time.  </li>
															<li>If you board your Melbourne-bound flight (the one on this booking) and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with your new arrival time.  </li>
															<li>To change or cancel your airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a></b> (<b>NOT the driver</b>) at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your arrival details on Saturday or Sunday. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm your new arrival details. If your notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time.</li>
															<li>If you catch your Melbourne-bound flight, but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet your new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick-up and completion of our airport reception service.<br><br>

															
															<strong>MONASH COLLEGE Enrolment</strong><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/>
															Monash College students:  https://www.monashcollege.edu.au/live-and-study-in-australia/prepare-to-arrive/enrolment-and-orientation <br/><br/>
															
															<strong>Orientation program</strong><br/>
															If you are studying the English Language, Foundation Year or Monash College Diploma program, your enrolment and orientation information can be found at:<br/>
															https://www.monashcollege.edu.au/live-and-study-in-australia/prepare-to-arrive/enrolment-and-orientation <br/>
															You must attend orientation. You will get a lot of valuable information about studying at Monash, including your enrolment, study timetable and learning how to access Monash College computer resources.<br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Monash.<br/>
															Kind regards<br/>
															Monash College<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '9') // MONASH CONNECT student
									{
										$mail->Body  	.=	'Thank you for booking with us. We are pleased to confirm your booking. Your arrival details are -  '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br><br>
															<font color="0909FF;">You <b><u>must</b></u> ensure that your phone has <u><b>global roaming enabled before</b></u> you arrive at Melbourne Airport and you <u><b>switch it on</u></b> when you arrive.<br>
															Your driver will ring or text you <u>sometime between flight landing and you getting to the Welcome Centre</u>. <br></font><br>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br>
															
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li><font color="#FF0000;"><b>Your driver <u>does not</u> need to see your passport. You must ensure that your passport is in a safe place with all your other important documents.</font></b>
															<li><font color="#FF0000;">If you bring more luggage than you have told us, arrive with <b>oversized</b> luggage or exceed the luggage allowance, your driver may not be able to pick you up, and you will need to make your own arrangements.</font></li>
															<li><font color="0909FF;">We know that it takes time to get your luggage and clear customs. </font></li>
															<li><font color="0909FF;">Most students meet their drivers in under 60 minutes. </font></li>
															<li><font color="0909FF;">Just make sure that you do not bring any kind of food, or things to declare. </font></li>
															<li> You must ensure that your <u>phone is switched</u> on and that you have <u>enabled global roaming</u> before you arrive at Melbourne Airport. Your driver will ring or text you after your flight lands.</li>
															<li> DO NOT go shopping in the airport terminal, you must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate you for the cost of alternative transport if you miss your pick-up.   </li>
															<li> If you cannot find your driver, text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure you do not miss your pick-up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Monash sign confirming they are a representative of Monash University (see attachments). The driver will also have your name and contact number provided in this booking.</li>
															<li> The QR code is for Aero drivers only.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															
															Please ensure that you do not leave any of your belongings in our vehicles. We cannot guarantee the safety of your lost luggage.  You may need to make a private arrangement to have your lost property delivered to you.  The cost you will incur will be dependent on your address.<br><br>
															
															Please review the booking details and let us know as soon as possible if they are not accurate.<br><br> 
															The driver will hold a &#34;MONASH&#34; sign (see attachments) for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															
															If your driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp </a> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your driver. When calling, please be ready to provide your flight number, Monash Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' . <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>Any changes <b>must</b> be made by emailing <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero Admin</a></b>.
															<li>If you miss a flight or your flight is cancelled on your way to Melbourne, Australia, you must notify <a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a> (<b>NOT the driver</b>)  as soon as possible by <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">email</a></b>. If your notification is received a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time. </li>
															<li>If you board your Melbourne-bound flight (the one on this booking) and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with your new arrival time. </li>
															<li>To change or cancel your airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero Admin</a></b> (<b>NOT the driver</b>) at least one full working day before you are due to arrive to avoid additional costs. You can contact Aero by   <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Aero office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a>  Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your arrival details on Saturday or Sunday. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm your new arrival details. If your notification is received a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time.</li>
															<li>If you catch your Melbourne-bound flight, but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet your new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick-up and completion of our airport reception service.<br><br>

															
															<b>Enrolment</b><br/>
															Each course has its own enrolment date, time and location. Refer to the following  <a href="https://www.monash.edu/get-started/enrolment/international?student=international"> website</a> for details.  <br/><br/>

															<b>Orientation program</b><br/>
															Details of the Orientation program will be available on the following <a href="https://www.monash.edu/study/why-choose-monash/student-life/getting-started"> website.</a><br/>

															In preparation for your arrival on campus, create your personalised orientation schedule using the eOrientation planner. <br/>
															 
															You must attend orientation.  You will get a lot of valuable information about studying at Monash University, including; your enrolment, study timetable and learning how to access the university&#39;s computer resources. <br/>

															Orientation includes sessions on academic and study skills, Australian culture and working in Australia, campus tours and social opportunities to meet other students.<br/><br/>

															We wish you a pleasant journey and look forward to welcoming you to Monash University.<br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1042') // ACVET student
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your booking. Your arrival details are -  '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br>
															<b><font color="0909FF;">Your driver will ring or text you <u>sometime between flight landing and you getting to the Welcome Centre</u>. <br>Please make sure that your phone is <u>switched on</u> and has <u>global roaming enabled</u> before you arrive at Melbourne Airport.</b></font><br><br>
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
															
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li><b><font color="#FF0000;"><h4>**If you bring more luggage than you have told us, arrive with <b>oversized</b> luggage or exceed the luggage allowance, your driver may not be able to pick you up, and you will need to make your own arrangements**</font></h4></b></li>
															<li><b><font color="0909FF;"><h5>We know that it takes time to get your luggage and clear customs. </font></b></h5></li>
															<li><b><font color="0909FF;"><h5>Most students meet their drivers in under 60 minutes. </font></h5></b></li>
															<li><b><font color="0909FF;"><h5>Just make sure that you do not bring any kind of food, or things to declare. </font></h5></b></li>
															<li> You must ensure that your <u>phone is switched</u> on and that you have <u>enabled global roaming</u> before you arrive at Melbourne Airport. Your driver will ring or text you after your flight lands.</li>
															<li> DO NOT go shopping in the airport terminal, you must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate you for the cost of alternative transport if you miss your pick-up.   </li>
															<li> If you cannot find your driver, text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure you do not miss your pick-up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a ACVET sign confirming they are a representative of ACVET (see attachments). The driver will also have your name and contact number provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															
															Please ensure that you do not leave any of your belongings in our vehicles. We cannot guarantee the safety of your lost luggage.  You may need to make a private arrangement to have your lost property delivered to you.  The cost you will incur will be dependent on your address.<br><br>
															
															Please review the booking details and let us know as soon as possible if they are not accurate.<br><br> 
															The driver will hold a &#34;ACVET&#34; sign (see attachments) for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															
															If your driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp </a> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your driver. When calling, please be ready to provide your flight number, ACVET Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' . <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>Any changes <b>must</b> be made by emailing <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero Admin</a></b>.
															<li>If you miss a flight or your flight is cancelled on your way to Melbourne, Australia, you must notify <a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a> (<b>NOT the driver</b>)  as soon as possible by <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">email</a></b>. If your notification is received a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time. </li>
															<li>If you board your Melbourne-bound flight and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with your new arrival time. </li>
															<li>To change or cancel your airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero Admin</a></b> (<b>NOT the driver</b>) at least one full working day before you are due to arrive to avoid additional costs. You can contact Aero by   <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Aero office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a>  Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your arrival details on Saturday or Sunday. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm your new arrival details. If your notification is received a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time.</li>
															<li>If you catch your Melbourne-bound flight but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet your new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick-up and completion of our airport reception service.<br><br>

															
															<!--<b>Enrolment</b><br/>
															Each course has its own enrolment date, time and location. Refer to the following  <a href="https://www.monash.edu/get-started/enrolment/international?student=international"> website</a> for details.  <br/><br/>

															<b>Orientation program</b><br/>
															Details of the Orientation program will be available on the following <a href="https://www.monash.edu/study/why-choose-monash/student-life/getting-started"> website</a><br/><br/>

															In preparation for your arrival on campus, create your personalised Orientation schedule using the eOrientation planner. <br/><br/>
															 
															You must attend Orientation.  You will get a lot of valuable information about studying at Monash University including; your enrolment, study timetable and learning how to access the University&#39;s computer resources. <br/> <br/>

															Orientation includes sessions on academic and study skills, Australian culture and working in Australia, campus tours and social opportunities to meet other students.<br/><br/>-->

															We wish you a pleasant journey and look forward to welcoming you to ACVET.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1035') // Victoria University student
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your booking. Your arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															<b>**Your driver will ring or text you <u>sometime between flight landing and you getting to the Welcome Centre</u>**</b><br><br>
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> You must ensure that your <u>phone is switched on.</u><br> Your driver will ring or text you <b>after</b> your flight lands. Please connect your phone to the airport’s free Wi-Fi, and or enable global roaming. </li>
															<li> <b>DO NOT</b> go shopping in the airport terminal, you must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate you for the cost of alternative transport if you miss your pick-up.   </li>
															<li> If you cannot find your driver, text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure you do not miss your pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). The driver will also have your name and contact number provided in this booking.</li>
															<li> QR code "For office use only.png" is for Aero drivers only.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															<strong>Avalon Airport </strong><br>
															<UL>
															<li>Your driver will meet you at your luggage carousel.</li><br>
															</UL>
															Please ensure that you do not leave any of your belongings in our vehicles, we cannot guarantee the safety of your lost luggage.  You may need to make a private arrangement to have your lost property delivered to you.  The cost you will incur will be dependent on your address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If your driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your driver. When calling, please be ready to provide your flight number, Victoria University Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your arrival details on Saturday or Sunday. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please email Aero immediately to confirm your new arrival details. If your notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time.</li>
															<li>If you catch your flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and be there to meet your new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/current-students/your-course/enrolment <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/current-students/new-to-vu/orientation <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '1040') // Victoria Uni Sydney student Student&#39;s 
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your booking. Your arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> Driver will ring or text you <b>after</b> your flight lands. Please make sure that you turn your phone on, and connect your phones to the airport&#39;s free Wi-fi, also enable global roaming.</li>
															<li> <b>DO NOT</b> go shopping in the airport terminal, please you must go directly to the &#39;meeting point&#39;. <b>DO NOT</b> leave the airport. Aero cars will not compensate you for the cost of alternative transport if you miss your pick-up.   </li>
															<li> If you cannot find your driver, please text +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure you do not miss your pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). Your driver will also have your name, contact number and destination address provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your driver will meet you at Sydney Airport, at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 1 T1) </strong><br>
															If arriving on a international flight (SYD T1), find the meeting point, which is inside the Arrival Hall at McDonald&#39;s Restaurant. Drivers will meet you with a VU or Aero sign. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will be by your luggage carousel for your flight.:
															<UL>
															<li><strong>Qantas domestic (Terminal 3)</strong>, wait by your baggage carousel. </li>
															<li><strong>Virgin Australia (Terminal 2)</strong>, wait by your baggage carousel.</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 2)</strong>, wait at your baggage carousel </li>
															</UL>
															Please ensure that you do not leave any of your belongings in our vehicles, we cannot guarantee the safety of your lost luggage.  you may need to make a private arrangement to have your lost property delivered to you.  The cost you will incur will be dependent on your address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If your driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your driver. When calling, please be ready to provide your flight number, Victoria University Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at the booked time or do not arrive at all without informing us, you may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Sydney time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Sydney time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your arrival details on Saturday or Sunday. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please email Aero immediately to confirm your new arrival details. If your notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time.</li>
															<li>If you catch your flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and will be there to meet your new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/first-time-enrolment-at-vu-sydney <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/orientation-at-vu-sydney <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '1041') // Victoria Uni Brisbane NEEDS TO BE CHANGED student Student&#39;s 
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your booking. Your arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> Driver will ring or text you <b>after</b> your flight lands. Please make sure that you turn your phone on, and connect your phones to the airport&#39;s free Wi-fi, also enable global roaming.</li>
															<li> <b>DO NOT</b> go shopping in the airport terminal, please you must go directly to the &#39;meeting point&#39;. <b>DO NOT</b> leave the airport. Aero cars will not compensate you for the cost of alternative transport if you miss your pick-up.   </li>
															<li> If you cannot find your driver, please text +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure you do not miss your pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). Your driver will also have your name, contact number and destination address provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your driver will meet you at Sydney Airport, at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 1 T1) </strong><br>
															If arriving on a international flight (SYD T1), find the meeting point, which is inside the Arrival Hall at McDonald&#39;s Restaurant. Drivers will meet you with a VU or Aero sign. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will be by your luggage carousel for your flight.:
															<UL>
															<li><strong>Qantas domestic (Terminal 3)</strong>, wait by your baggage carousel. </li>
															<li><strong>Virgin Australia (Terminal 2)</strong>, wait by your baggage carousel.</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 2)</strong>, wait at your baggage carousel </li>
															</UL>
															Please ensure that you do not leave any of your belongings in our vehicles, we cannot guarantee the safety of your lost luggage.  you may need to make a private arrangement to have your lost property delivered to you.  The cost you will incur will be dependent on your address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If your driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your driver. When calling, please be ready to provide your flight number, Victoria University Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at the booked time or do not arrive at all without informing us, you may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Sydney time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Sydney time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your arrival details on Saturday or Sunday. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please email Aero immediately to confirm your new arrival details. If your notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time.</li>
															<li>If you catch your flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and will be there to meet your new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/first-time-enrolment-at-vu-sydney <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/orientation-at-vu-sydney <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '15') // RMIT Student's Confirmation
									{
										$mail->Body  	.=	'<b>It is important that you refer to the attachments.<br/><br/>
															Your Aero driver will be waiting for you at the Meeting Point near The Welcome Centre Shop. If you cannot find Aero driver, you must ring 1800 350 850 (Free Call) from any public phone.<br/><br/></b> 
															Thank you for booking with us and we are now pleased to confirm your arrival pick-up.  <b>Please show this email confirmation to Aero&#39;s staff.<br/><br/></b>
															Our driver will meet you at the airport and will be holding a placard <b>"AERO" or "RMIT UNIVERSITY"</b>.<br/><br/>
															Please note a no show fee of AU$125 applies if you do not inform Aero of any changes to your arrival itinerary or do not use the service.<br/><br/>
															
															You have to let us know the number of luggage you have.  Please note if your excess luggage do not fit in a standard sedan&#39;s boot, you will
															have to arrange a taxi to transport any excess luggage. <br/><br/>
															
															Please refrain from bringing food into Australia. As this <b>will</b> delay your immigration and customs clearance time and you <b>may incur extra charges</b>.<br/>
															Click the following link for more information https://www.agriculture.gov.au/travelling/arriving-in-australia#fresh-fruit-and-vegetables<br/><br/>
															
															You must look for Aero&#39;s driver <b>immediately</b> at the Meeting Point of your arriving terminal. <br/><br/>
															
															If you arrive at:
															<ul>
																<li><b>Melbourne Airport-T2 (International) </b>, Please go to the Meeting Point near The Welcome Centre Shop.  Refer to the "Key 8 & 10" of the attached Melbourne Airport Map.</li>
																<li><b>Qantas Domestic Terminal</b>, please go to the &#34;Meeting Point&#34; located opposite Baggage Carousel 3.  If you can&#39;t find your driver at the Domestic terminal, please go to <b>T2 International</b>, next door to your right). </li>
																<li><b>Virgin Australia Terminal</b>, please go to the &#34;Meeting Point&#34; below the escalators. If you can&#39;t find your driver at the Domestic terminal, please go to<b> T2 (International) </b>, next door to your left). </li>
																<li><b>Terminal 4 (Tiger Airways) </b>, you have to ring Aero Corporate Cars on <b>1800 350 850</b> from <b>any</b> public phone (Free Call), the staff will direct you to the meeting point. </li>
															</ul>
															<b>If you are unable to find our staff or have made changes to your arrival itinerary, you must call us. Otherwise we cannot guarantee airport pick-up and you will be charged for the service. <br/><br/></b>
															Thank you.<br/><br/>
															Kind Regards<br/><br/>
															Aero Admin<br/><br/>
															<!-- <b>'.$chargeaccount_details['account_name'].'</b><br/><br/> -->
															';
									}
								else if($job_reference_details['charge_acc_id'] == '871') // AHN STUDENT
									{
										$mail->Body  	.=	'Thank you for your airport pick-up request for the '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															A driver from Aero Corporate Cars (Aero) will meet you in Melbourne Airport&#39;s International Arrival Hall. Turn right when you leave the customs area and head toward &#34;The Meeting Point&#34;.<br/>
															The driver will hold an &#34;AERO&#34; sign for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'<br/>
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/>
															'.$j1_details ['to_state'].'<br/><br/>
															
															<b>INTRUCTIONS</b><br/><br/>
															
															<b>International Arrival</b><br/>
															Please have a copy of this notice before arriving in Melbourne and have it ready to show your driver.<br/>
															Exit customs at door on right hand side.<br/>
															AFTER LEAVING THE PLANE GO DIRECTLY to meet your driver near the meeting point next to the The Welcome Centre Shop (please look at attached picture and maps)
															
															<b>No driver waiting at Melbourne Airport</b><br/><br/>
															Go to &#34;The Meeting Point&#34;.  If your driver is not there within 15 minutes find the nearest public telephone and call Aero on 1800 350 850
															(this is a free call).  They will locate your driver. When calling, give Aero your Student ID number (this is in your offer letter),
															family name and given names.<br/><br/>
															
															<b>Changes to or cancellation of your flight</b><br/>
															To change or cancel your airport pick-up booking, contact us at least one full working day before you arrive to avoid additional costs.  Our office
															hours are 9am to 5pm Monday to Friday, Australian Eastern Standard Time.<br/>
															
															To change your arrival details on Saturday or Sunday, telephone +61 425 865 955.<br/><br/>
															
															If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.
															This will ensure your driver is at Melbourne Airport to meet you.<br/><br/>
															
															<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>

															We wish you a pleasant journey and look forward to welcoming you to Australia.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '900') // Sydney University student?
									{
										$mail->Body  	.=	'Thank you for your airport pick-up request.,<br/><br/>
															
															The driver will hold a &#34;AERO&#34; sign for easy identification and will take you to your destination as per your instructions below:<br/><br/>
															<!-- '.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'<br/>
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/>
															'.$j1_details ['to_state'].'<br/> -->
															
															<b>PLANE DELAY OR CANCELLATION</b><br/><br/>
															*Please not that there is a luggage limit.  You are able to put the equivalent of 2 suitcases and 1 carry bag into your pick-up car.  If you exceed this limit your driver may be unable to take you to your homestay.<br/> 
															Aero must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give Aero 12 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Corporate Cars on 1800 350 850<br/>
															
															If you require further assistance please do not hesitate to contact us:
																During business hours on +61 425 865 955 if outside Australia.
																or 1800 350 850 from inside Australia<br/>
															
															If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.
															This will ensure your driver is at Sydney Airport to meet you.<br/><br/>
															
															We wish you a pleasant journey and look forward to welcoming you to Australia.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1022') // Griffith University student?
									{
										$mail->Body  	.=	'Thank you for your airport pick-up request.,<br/><br/>
															
															The driver will hold a &#34;AERO&#34; sign for easy identification and will take you to your destination as per your instructions below:<br/><br/>
															<!-- '.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'<br/>
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/>
															'.$j1_details ['to_state'].'<br/> -->
															
															<strong>IMPORTANT INFORMATION</strong><br/><br/>
															
															<strong>IF YOU CAN\'T FIND YOUR DRIVER, FIND A PUBLIC PHONE AND RING US ON 1800 350 850</STRONG> (this is a <strong>free</strong>
															call, <strong>NO</strong> coins needed)<br /><br />
															
															<strong>YOU NEED TO BRING A COPY OF THIS CONFIRMATION EMAIL TO SHOW OUR REPRESENTATIVE.</strong><br /><br />
															
															<b>PLANE DELAY OR CANCELLATION</b><br/><br/>
															*Please not that there is a luggage limit.  You are able to put the equivalent of 2 suitcases and 1 carry bag into your pick-up car.  If you exceed this limit your driver may be unable to take you to your homestay.<br/> 
															Aero must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give Aero 14 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Corporate Cars on 1800 350 850<br/><br/>
															
															If you require further assistance please do not hesitate to contact us:
																During business hours on +61 425 865 955 if outside Australia.
																or 1800 350 850 from inside Australia<br/><br/>
															
															If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.
															This will ensure your driver is at Sydney Airport to meet you.<br/><br/>
															
															We wish you a pleasant journey and look forward to welcoming you to Australia.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '19') // Monash Abroad University student
									{
										$mail->Body  	.=	'Thank you for your recent booking. <br /><br />
															Please review the booking details and tell us immediately if they are not correct. <br /><br />
															
															<strong>IMPORTANT INFORMATION</strong>
															<UL>
															<li> Driver will ring or text you after your flight lands. Please make sure that your phone is switched on and has global roaming enabled before you arrive at Melbourne Airport.</li>
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero Car or Monash University sign, confirming they&#39;re a representative of Monash University. The driver will also have your name and contact number provided in this booking.</li>
															<li> If you can&#39;t find your driver, follow the instructions below. Do not just leave! Aero will not compensate you for the cost of alternative transport if you missed the pick-up.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport in Melbourne at one of the following points.<br><br>
 
															<strong>International arrivals (Terminal 2). </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to wait at the Welcome Centre. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on the terminal.
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite Baggage Carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel  </li>
															</UL>
															
															Please ensure that you do not leave any of your belongings in our vehicles, we cannot guarantee the safety of your lost luggage.  You may need to make a private arrangement to have your lost property delivered to you.  The cost you will incur will be dependent on your address.<br><br>
															
															<strong>No driver waiting</strong><br/>
															
															If your driver is not at the meeting point designated above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp, <a href="https://www.wechat.com" class="">WeChat</a> or <a href="https://line.me/en/" class="">Line</a>    on +61 425 865 955. Alternatively find a public phone and make a free call (no coins required) to Aero on 1800 350 850.  Staff will then locate your driver. When calling, please be ready to provide your flight number and your Monash Student ID number (this is listed below from your booking).<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' . <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by email aero@aerocorporatecars.com.  Our office hours are 9am to 5pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero Cars do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> time Monday to Friday and not at all on the weekends. </li>
															<li>Email Aero to change your arrival details on Saturday or Sunday. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please email Aero immediately to confirm your new arrival details. If your notification is received a minimum of 14 hours before your arrival, Aero will schedule a driver for your new arrival time.</li>
															<li>If you catch your flight but it is delayed, Aero Cars monitors flights and will be aware of delayed arrival times and be there to meet your new arrival time.</li>
															</UL>
															
															We wish you a safe journey and thank you for booking with Aero Corporate Cars.<br/><br>
															Yours sincerely, <br /><br/>
															<strong>Aero Corporate Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
															<strong>Email:</strong> aero@aerocorporatecars.com <br />
															<strong>Telephone:</strong> 1800 350 850 <br /><br/>';
									}
								else //common body
									{
										$mail->Body  	.=	'Thank you for your recent booking. <br /><br />
															Please review the booking details and tell us immediately if they are not correct. <br /><br />
															
															<strong>IMPORTANT INFORMATION</strong>
															<UL>
															<li> Driver will ring or text you after your flight lands. Please make sure that your phone is switched on and has global roaming enabled before you arrive at Melbourne Airport.</li>
															<li> Bring a copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero Car or a sign from your University, confirming they&#39;re a representative of Aero or your University. The driver will also have your name and contact number provided in this booking.</li>
															<li> If you can&#39;t find your driver, follow the instructions below. Do not just leave! Aero will not compensate you for the cost of alternative transport if you missed the pick-up.</li>
															<li> QR code is for our drivers.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport in Melbourne at one of the following points.<br><br>
 
															<strong>International arrivals (Terminal 2). </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to wait at the Welcome Centre. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on the terminal.
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, go and wait opposite Baggage Carousel 3.</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, go and wait at the coffee shop opposite the baggage caroucels.</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel. </li>
															</UL>
															
															<strong>No driver waiting</strong><br/>
															
															If your driver is not at the meeting point designated above within 15 minutes, <u>text</u> using WhatsApp or WeChat on +61 425 865 955. Alternatively find a public phone and make a free call (no coins required) to Aero on 1800 350 850.  Staff will then locate your driver. When calling, please provide your University Student ID number (this is listed below from your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' . <br /><br />
															
															<strong>Changes to, cancellation of or missing flight</strong>
															<UL>
															<li>To change or cancel your airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by email aero@aerocorporatecars.com or by telephone +61 1800 350 850.  Our office hours are 9am to 5pm Monday to Friday, Melbourne time.  Staff at Aero Cars do not check emails between the hours of 10pm and 6am Melbourne time Monday to Friday and not all on the weekends. </li>
															<li>To change your arrival details on Saturday or Sunday, telephone +61 1800 350 850. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 1800 350 850 immediately to confirm your new arrival details. This will ensure your driver is at Melbourne Airport to meet you. Aero must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give Aero 14 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Corporate Cars on 1800 350 850</li>
															<li>If you catch your flight but it is delayed, Aero Cars monitors flights and will be aware of delayed arrival times and be there to meet your new arrival time.</li>
															</UL>
															
															We wish you a safe journey and thank you for booking with Aero Cars.<br/><br>
															Yours sincerely, <br /><br/>
															<strong>Aero Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
															<strong>Email:</strong> aero@aerocorporatecars.com <br />
															<strong>Telephone:</strong> 1800 350 850 <br /><br/>';
									}	
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						
						// 2 - TO ON BEHALF OF
						if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['on_behalf_email'],  ''.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].'');
								
								$mail->addStringAttachment($qr, "For Aero's drivers.png");
								
								$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
								
								if($job_reference_details['charge_acc_id'] == '15') // RMIT behalf
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'Look for RMIT sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport Map.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mandarin_RMIT_Sign.pdf",'Zhongwen.pdf','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Vietnamise_RMIT_Sign.pdf",'Dich_vu_dón_tai_sân_bay.pdf','base64','application/png');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '55') // Monash College Behalf
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College_Sign.pdf",'Look for Monash sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MC_MU_Sign.pdf",'Aero & Monash Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Please_read_MC.pdf",'Please Read.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN_MONASH.pdf",'WIS.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '9') // Monash Connect Behalf
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'Look for Monash sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MU_MC_Sign.pdf",'Aero & Monash Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Please_read_MU.pdf",'Please Read.pdf','base64','application/pdf');
									//	$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN_MONASH.pdf",'WIS.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '19') // Monash Abroad Behalf
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'Look for Monash sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Please Read.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '900') // Sydney University
									{
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'meeting_point.png','base64','application/png');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Airport_Map_a.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1031') // Deakin College behalf
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Other Meeting Point.png','base64','application/png');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Deakin_Logo.pdf",'Look For.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Airport_Map_a.pdf','base64','application/pdf');
									}
									if($job_reference_details['charge_acc_id'] == '506') // Deakin University behalf
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Other Meeting Point.png','base64','application/png');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Deakin_Logo.pdf",'Look For.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Airport_Map_a.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1035') // Victoria University behalf
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1036') // Victoria College behalf
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1040') // Victoria Uni Sydney behalf
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1041') // Victoria Uni Brisbane behalf
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1042') // ACVET behalf
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								else // common attachments
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp or Line using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
									}
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, BOOKING CONFIRMED by '.$chargeaccount_details['account_name'].' ';
									}
								else
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), BOOKING CONFIRMED by '.$chargeaccount_details['account_name'].' ';
									}
								
								$mail->Body    	.= 	'<h3>BOOKING CONFIRMATION</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].',</strong><br/><br/>';
								$mail->Body  	.=	'Your student&#39;s booking has been approved by '.$chargeaccount_details['account_name'].'.<br/><br/>';
								if($job_reference_details['charge_acc_id'] == '55') // MONASH COLLEGE on behalf of
									{
										$mail->Body  	.=	'Thank you for booking your student&#39;s airport pick-up request with Aero for '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															<b><font color="0909FF;">Your student&#39;s driver will ring or text them <u>sometime between flight landing and you getting to the Welcome Centre</u>. <br>Please make sure that their phone is <u>switched on</u> and has <u>global roaming enabled</u> before they arrive at Melbourne Airport.</b></font><br><br>
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Other items to note:</strong><br/>
															
															<UL>
															<li><b>**If your student brings more luggage than what we have been have told, or exceed the luggage allowance, the driver may not be able to pick them up, and they will need to make their own arrangements**</b></li> 
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that their phone is switched on and that they have enabled global roaming before they arrive at Melbourne Airport.</li>
															<li> DO NOT go shopping in the airport terminal, they must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> Ask your student to bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Monash sign confirming they are a representative of Monash College. The driver will also have their name and contact number provided in this booking.</li>
															<li> If your student cannot find their driver, follow the instructions below. Tell them Not just leave the airport! Aero will not compensate them for the cost of alternative transport if they miss their pick-up.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Their driver will meet them at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If they are on a flight arriving from overseas, ask them turn left when they leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39;. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If they are arriving from somewhere else in Australia, the meeting points will vary depending on their arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															
															Please ensure that you tell your student to not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  They may need to make a private arrangement to have their lost property delivered to them.  The cost they will incur will be dependent on their address.<br><br>
															
															Please review this booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;MONASH&#39; sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															
															If their driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp or <a href="https://www.wechat.com" class="">WeChat</a> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate their driver. When calling, please be ready to provide their flight number, Monash Student ID number (this is listed below on their booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if they do not arrive at their booked time or do not arrive at all without informing us, they may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing their flight</strong>
															<UL>
															<li>Any changes must be done by emailing <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a>.  </li>
															<li>If they miss a flight on their way to Melbourne, Australia, they must notify <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a> (<b>NOT the driver</b>) as soon as possible by <a href="mailto:aero@aerocorporatecars.com"> email</a>. If their notification is received a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.  </li>
															<li>If they board their Melbourne-bound flight (the one on this booking) and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with their new arrival time.  </li>
															<li>To change or cancel their airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a></b> (<b>NOT the driver</b>) at least one full working day before they are due to arrive to avoid additional costs. They can contact us by  <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change their arrival details on Saturday or Sunday. </li>
															<li>If they are overseas and miss their flight or if their flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm their new arrival details. If your notification is received within a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.</li>
															<li>If they catch their Melbourne-bound flight but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>



															
															<strong>MONASH COLLEGE Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Monash College students:  https://www.monashcollege.edu.au/live-and-study-in-australia/prepare-to-arrive/enrolment-and-orientation <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, Foundation Year or Monash College Diploma program, your enrolment and orientation information can be found at:<br/>
															https://www.monashcollege.edu.au/live-and-study-in-australia/prepare-to-arrive/enrolment-and-orientation <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Monash including your enrolment, study timetable and learning how to access Monash College computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Monash.<br/><br/>
															Kind regards<br/>
															Monash College<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '9') // MONASH CONNECT on behalf of
									{
										$mail->Body  	.=	'Thank you for booking your student&#39;s airport pick-up request with Aero for '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<UL>
															<li><b><h4>**If your student brings more luggage than what we have been have told, or exceed the luggage allowance, the driver may not be able to pick them up, and they will need to make their own arrangements**</b></h4></li> 
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that their phone is switched on and that they have enabled global roaming before they arrive at Melbourne Airport.</li>
															<li> DO NOT go shopping in the airport terminal, they must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> Ask your student to bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Monash sign confirming they are a representative of Monash University. The driver will also have their name and contact number provided in this booking.</li>
															<li> If your student cannot find their driver, follow the instructions below. Tell them Not just leave the airport! Aero will not compensate them for the cost of alternative transport if they miss their pick-up.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Please mention to your students, to ensure that they do not leave any of their belongings in our vehicles, we may not be able to guarantee the safety of their lost luggage.  They may need to make a private arrangement to have their lost property delivered to them.  Price would depend on their address.<br><br>
															
															Please review the booking&#39;s details and let us know as soon as possible if they are not accurate.<br/>
															The driver will hold a &#34;MONASH&#34; sign for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															Ask your student to make their way to &#34;The Welcome Centre Shop&#34;.  If their driver is not there within 15 minutes ask them to find the nearest public telephone and call us on 1800 350 850
															(this is a free call).  They will locate their driver. When calling, ask them to give us their flight number,  Monash Student ID number (this is in your Monash offer letter) and
															family name and given names.<br/><br/>
															
															<b>Changes to or cancellation of their flight</b><br/>
															<UL>
															<li>Any changes must be done by emailing <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a>.  </li>
															<li>If they miss a flight on their way to Melbourne, Australia, they must notify <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a> (<b>NOT the driver</b>) as soon as possible by <a href="mailto:aero@aerocorporatecars.com"> email</a>. If their notification is received a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.  </li>
															<li>If they board their Melbourne-bound flight (the one on this booking) and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with their new arrival time.  </li>
															<li>To change or cancel their airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a></b> (<b>NOT the driver</b>) at least one full working day before they are due to arrive to avoid additional costs. They can contact us by  <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change their arrival details on Saturday or Sunday. </li>
															<li>If they are overseas and miss their flight or if their flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm their new arrival details. If your notification is received within a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.</li>
															<li>If they catch their Melbourne-bound flight but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<b>Enrolment</b><br/>
															Each course has its own enrolment date, time and location. Refer to the following <a href="https://www.monash.edu/study/why-choose-monash/student-life/getting-started"> website</a> for details.  <br/><br/>

															<b>Orientation program</b><br/>
															Details of the Orientation program will be available on the following <a href="https://monash.edu/orientation"> website</a>. <br/><br/>

															In preparation for their arrival on campus, ask your student to create their personalised Orientation schedule using the eOrientation planner. <br/><br/>
															 
															Your student must attend Orientation.  They will get a lot of valuable information about studying at Monash University including; their enrolment, study timetable and learning how to access the University&#39;s computer resources. <br/> <br/>

															Orientation includes sessions on academic and study skills, Australian culture and working in Australia, campus tours and social opportunities to meet other students.<br/><br/>

															We wish your student a pleasant journey and look forward to welcoming them to Monash University.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1042') // ACVET on behalf of
									{
										$mail->Body  	.=	'Thank you for booking your student&#39;s airport pick-up request with Aero for '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<UL>
															<li><b><h4>**If your student brings more luggage than what we have been have told, or exceed the luggage allowance, the driver may not be able to pick them up, and they will need to make their own arrangements**</b></h4></li> 
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that their phone is switched on and that they have enabled global roaming before they arrive at Melbourne Airport.</li>
															<li> DO NOT go shopping in the airport terminal, they must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> Ask your student to bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a ACVET sign confirming they are a representative of ACVET. The driver will also have their name and contact number provided in this booking.</li>
															<li> If your student cannot find their driver, follow the instructions below. Tell them Not just leave the airport! Aero will not compensate them for the cost of alternative transport if they miss their pick-up.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Please mention to your students, to ensure that they do not leave any of their belongings in our vehicles, we may not be able to guarantee the safety of their lost luggage.  They may need to make a private arrangement to have their lost property delivered to them.  Price would depend on their address.<br><br>
															
															Please review the booking&#39;s details and let us know as soon as possible if they are not accurate.<br/>
															The driver will hold a &#34;ACVET&#34; sign for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															Ask your student to make their way to &#34;The Welcome Centre Shop&#34;.  If their driver is not there within 15 minutes ask them to find the nearest public telephone and call us on 1800 350 850
															(this is a free call).  They will locate their driver. When calling, ask them to give us their flight number,  ACVET Student ID number (this is in your ACVET offer letter) and
															family name and given names.<br/><br/>
															
															<b>Changes to or cancellation of their flight</b><br/>
															<UL>
															<li>Any changes must be done by emailing <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a>.  </li>
															<li>If they miss a flight on their way to Melbourne, Australia, they must notify <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a> (<b>NOT the driver</b>) as soon as possible by <a href="mailto:aero@aerocorporatecars.com"> email</a>. If their notification is received a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.  </li>
															<li>If they board their Melbourne-bound flight (the one on this booking) and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with their new arrival time.  </li>
															<li>To change or cancel their airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a></b> (<b>NOT the driver</b>) at least one full working day before they are due to arrive to avoid additional costs. They can contact us by  <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change their arrival details on Saturday or Sunday. </li>
															<li>If they are overseas and miss their flight or if their flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm their new arrival details. If your notification is received within a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.</li>
															<li>If they catch their Melbourne-bound flight but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<!--<b>Enrolment</b><br/>
															Each course has its own enrolment date, time and location. Refer to the following <a href="https://www.monash.edu/study/why-choose-monash/student-life/getting-started"> website</a> for details.  <br/><br/>

															<b>Orientation program</b><br/>
															Details of the Orientation program will be available on the following <a href="https://monash.edu/orientation"> website</a>. <br/><br/>

															In preparation for their arrival on campus, ask your student to create their personalised Orientation schedule using the eOrientation planner. <br/><br/>
															 
															Your student must attend Orientation.  They will get a lot of valuable information about studying at Monash University including; their enrolment, study timetable and learning how to access the University&#39;s computer resources. <br/> <br/>

															Orientation includes sessions on academic and study skills, Australian culture and working in Australia, campus tours and social opportunities to meet other students.<br/><br/> -->

															We wish your student a pleasant journey and look forward to welcoming them to ACVET.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1035') // Victoria University on behalf of
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your student&#39;s booking. Student&#39;s arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that you tell your student to turn their phones on, and to connect their phones to the airport&#39;s free Wi-fi, and or to enable global roaming.</li>
															<li> <b>DO NOT</b> go shopping in the airport terminal, please inform your student that they must go directly to the &#39;meeting point&#39;. <b>NOT</b> to leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> If your student cannot find their driver, ask them to text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure they do not miss their pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). The driver will also have your student&#39;s name, contact number and destination address provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your student&#39;s driver will meet them at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															<strong>Avalon Airport </strong><br>
															<UL>
															<li>Your student&#39;s driver will meet your student at their luggage carousel.<br><br></li>
															</UL>
															Please ensure that they do not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  they may need to make a private arrangement to have their lost property delivered to them.  The cost they will incur will be dependent on their address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If the driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your student&#39;s driver. When calling, please be ready to provide your flight number, Victoria University Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if your student does not arrive at their booked time or do not arrive at all without informing us, they may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your student&#39;s airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your student&#39;s arrival details on Saturday or Sunday. </li>
															<li>If your student is overseas and miss their flight or if their flight is cancelled, please email Aero immediately to confirm their new arrival details. If their notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your student&#39;s new arrival time.</li>
															<li>If they catch their flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/current-students/your-course/enrolment <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/current-students/new-to-vu/orientation <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '1040') // Victoria Uni Sydney on behalf of
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your student&#39;s booking. Student&#39;s arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that you tell your student to turn their phones on, and to connect their phones to the airport&#39;s free Wi-fi, and or to enable global roaming.</li>
															<li> <b>DO NOT</b> go shopping in the airport terminal, please inform your student that they must go directly to the &#39;meeting point&#39;. <b>NOT</b> to leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> If your student cannot find their driver, ask them to text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure they do not miss their pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). The driver will also have your student&#39;s name, contact number and destination address provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your student&#39;s driver will meet them at Sydney Airport, at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 1 T1) </strong><br>
															If arriving on a international flight (SYD T1), find the meeting point, which is inside the Arrival Hall at McDonald&#39;s Restaurant. Drivers will meet students with a VU or Aero sign.. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will be by your luggage carousel for your flight.:
															<UL>
															<li><strong>Qantas domestic (Terminal 3)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 2)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 2)</strong>, wait at your baggage carousel </li>
															</UL>
															Please ensure that they do not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  they may need to make a private arrangement to have their lost property delivered to them.  The cost they will incur will be dependent on their address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If the driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your student&#39;s driver. When calling, please be ready to provide your flight number, Victoria University Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if your student does not arrive at their booked time or do not arrive at all without informing us, they may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your student&#39;s airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Sydney time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Sydney time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your student&#39;s arrival details on Saturday or Sunday. </li>
															<li>If your student is overseas and miss their flight or if their flight is cancelled, please email Aero immediately to confirm their new arrival details. If their notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your student&#39;s new arrival time.</li>
															<li>If they catch their flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/first-time-enrolment-at-vu-sydney <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/orientation-at-vu-sydney <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '1041') // Victoria Uni Brisbane NEEDS TO BE CHANGED on behalf of
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your student&#39;s booking. Student&#39;s arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that you tell your student to turn their phones on, and to connect their phones to the airport&#39;s free Wi-fi, and or to enable global roaming.</li>
															<li> <b>DO NOT</b> go shopping in the airport terminal, please inform your student that they must go directly to the &#39;meeting point&#39;. <b>NOT</b> to leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> If your student cannot find their driver, ask them to text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure they do not miss their pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). The driver will also have your student&#39;s name, contact number and destination address provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your student&#39;s driver will meet them at Sydney Airport, at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 1 T1) </strong><br>
															If arriving on a international flight (SYD T1), find the meeting point, which is inside the Arrival Hall at McDonald&#39;s Restaurant. Drivers will meet students with a VU or Aero sign.. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will be by your luggage carousel for your flight.:
															<UL>
															<li><strong>Qantas domestic (Terminal 3)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 2)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 2)</strong>, wait at your baggage carousel </li>
															</UL>
															Please ensure that they do not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  they may need to make a private arrangement to have their lost property delivered to them.  The cost they will incur will be dependent on their address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If the driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your student&#39;s driver. When calling, please be ready to provide your flight number, Victoria University Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if your student does not arrive at their booked time or do not arrive at all without informing us, they may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your student&#39;s airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Sydney time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Sydney time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your student&#39;s arrival details on Saturday or Sunday. </li>
															<li>If your student is overseas and miss their flight or if their flight is cancelled, please email Aero immediately to confirm their new arrival details. If their notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your student&#39;s new arrival time.</li>
															<li>If they catch their flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/first-time-enrolment-at-vu-sydney <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/orientation-at-vu-sydney <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '15') // RMIT behalf of Confirmation
									{
										$mail->Body  	.=	'<b>It is important that you refer to the attachments.<br/><br/>
															Your Aero driver will be waiting for you at the Meeting Point near The Welcome Centre Shop. If you cannot find Aero driver, you must ring 1800 350 850 (Free Call) from any public phone.<br/><br/></b> 
															Thank you for booking with us and we are now pleased to confirm your arrival pick-up. <b>Please show this email confirmation to Aero&#39;s staff.<br/><br/></b>
															Our driver will meet you at the airport and will be holding a placard <b>"AERO" or "RMIT UNIVERSITY"</b>.<br/><br/>
															Please note a no show fee of AU$125 applies if you do not inform us of any changes to your arrival itinerary or do not use the service<br/><br/>
															
															You have to let us know the number of luggage you have.  Please note if your excess luggage do not fit in a standard sedan&#39;s boot, you will
															have to arrange a taxi to transport any excess luggage. <br/><br/>
															
															Please refrain from bringing food into Australia. As this <b>will</b> delay your immigration and customs clearance time and you <b>may incur extra charges</b>.<br/><br/>
															Click the following link for more information https://www.agriculture.gov.au/travelling/arriving-in-australia#fresh-fruit-and-vegetables<br/><br/>
															
															You must look for Aero&#39;s driver <b>immediately</b> at the Meeting Point of your arriving terminal. <br/><br/>
															
															If you arrive at:
															<ul>
																<li><b>Melbourne Airport-T2 (International) </b>, Please go to the Meeting Point near The Welcome Centre Shop.  Refer to the "Key 8 & 10" of the attached Melbourne Airport Map.</li>
																<li><b>Qantas Domestic Terminal</b>, please go to the &#34;Meeting Point&#34; located opposite Baggage Carousel 3.  If you can&#39;t find your driver at the Domestic terminal, please go to <b>T2 International</b>, next door to your right). </li>
																<li><b>Virgin Australia Terminal</b>, please go to the &#34;Meeting Point&#34; below the escalators. If you can&#39;t find your driver at the Domestic terminal, please go to<b> T2 (International) </b>, next door to your left). </li>
																<li><b>Terminal 4 (Tiger Airways) </b>, you have to ring us on <b>1800 350 850</b> from <b>any</b> public phone (Free Call), the staff will direct you to the meeting point. </li>
															</ul>
															If you are unable to find our staff or have made changes to your arrival itinerary, you must call us. Otherwise we cannot guarantee airport pick-up and you will be charged for the service. <br/><br/>
															Thank you.<br/><br/>
															Kind Regards<br/><br/>
															Aero Admin<br/><br/>
															<!-- <b>'.$chargeaccount_details['account_name'].'</b><br/><br/> -->
															';
									}
								else if($job_reference_details['charge_acc_id'] == '900') // Sydney University Behalf of.. NOT student or Agent?
									{
										$mail->Body  	.=	'Thank you for your airport pick-up request.<br/><br/>
															
															The driver will hold a &#34;AERO&#34; sign for easy identification and will take you to the following address:<br/>
															<!-- '.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'<br/>
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/>
															'.$j1_details ['to_state'].'<br/> -->
															
															<b>PLANE DELAY OR CANCELLATION</b><br/>
															*Please not that there is a luggage limit.  You are able to put the equivalent of 2 suitcases and 1 carry bag into your pick-up car.  If you exceed this limit your driver may be unable to take you to your homestay.<br/> 
															Aero must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give Aero 12 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Corporate Cars on 1800 350 850<br/>
															
															If you require further assistance please do not hesitate to contact us:
																During business hours on +61 425 865 955 if outside Australia.
																or 1800 350 850 from inside Australia<br/>
															
															If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.
															This will ensure your driver is at Sydney Airport to meet you.<br/><br/>
															
															We wish you a pleasant journey and look forward to welcoming you to Australia.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1022') // Griffith University student?
									{
										$mail->Body  	.=	'Thank you for your airport pick-up request.,<br/><br/>
															
															The driver will hold a &#34;AERO&#34; sign for easy identification and will take you to your destination as per your instructions below:<br/><br/>
															<!-- '.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'<br/>
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/>
															'.$j1_details ['to_state'].'<br/> -->
															
															<strong>IMPORTANT INFORMATION</strong><br/><br/>
															
															<strong>IF YOU CAN\'T FIND YOUR DRIVER, FIND A PUBLIC PHONE AND RING US ON 1800 350 850</STRONG> (this is a <strong>free</strong>
															call, <strong>NO</strong> coins needed)<br /><br />
															
															<strong>YOU NEED TO BRING A COPY OF THIS CONFIRMATION EMAIL TO SHOW OUR REPRESENTATIVE.</strong><br /><br />
															
															<b>PLANE DELAY OR CANCELLATION</b><br/><br/>
															*Please not that there is a luggage limit.  You are able to put the equivalent of 2 suitcases and 1 carry bag into your pick-up car.  If you exceed this limit your driver may not be able to take you to your homestay.<br/> 
															Aero must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give Aero 14 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Corporate Cars on 1800 350 850<br/><br/>
															
															If you require further assistance please do not hesitate to contact us:
																During business hours on +61 425 865 955 if outside Australia.
																or 1800 350 850 from inside Australia<br/><br/>
															
															If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.
															This will ensure your driver is at Sydney Airport to meet you.<br/><br/>
															
															We wish you a pleasant journey and look forward to welcoming you to Australia.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else //common body
									{
										$mail->Body  	.=	'Thank you for your recent booking. <br /><br />
															Please review the booking details and tell us immediately if they are not correct. <br /><br />
															
															<strong>IMPORTANT INFORMATION</strong>
															<UL>
															<li> Bring a copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, make sure the driver has suitable identification, such as an Aero Car or your University sign, confirming they&#39;re a representative of your University. The driver will also have your name and contact number provided in this booking.</li>
															<li> If you can&#39;t find your driver, follow the instructions below. Do not just leave! Aero will not compensate you for the cost of alternative transport if you missed the pick-up.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport in Melbourne at one of the following points.<br><br>
 
															<strong>International arrivals (Terminal 2). </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to wait at the Welcome Centre. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on the terminal.
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, go and wait opposite Baggage Carousel 3.</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, go and wait at the coffee shop opposite the baggage caroucels.</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel. </li>
															</UL>
															
															<strong>No driver waiting</strong><br/>
															
															If your driver is not at the meeting point designated above within 15 minutes, text using WhatsApp or WeChat on +61 425 865 955. Alternatively find a public phone and make a free call (no coins required) to Aero on 1800 350 850.  Staff will then locate your driver. When calling, please provide your university Student ID number (this is listed below from your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' . <br /><br />
															
															<strong>Changes to, cancellation of or missing flight</strong>
															<UL>
															<li>To change or cancel your airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by email aero@aerocorporatecars.com or by telephone +61 1800 350 850.  Our office hours are 9am to 5pm Monday to Friday, Melbourne time.  Staff at Aero Cars do not check emails between the hours of 10pm and 6am Melbourne time Monday to Friday and not all on the weekends. </li>
															<li>To change your arrival details on Saturday or Sunday, telephone +61 1800 350 850. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 1800 350 850 immediately to confirm your new arrival details. This will ensure your driver is at Melbourne Airport to meet you. Aero must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give Aero 14 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Corporate Cars on 1800 350 850</li>
															<li>If you catch your flight but it is delayed, Aero Cars monitors flights and will be aware of delayed arrival times and be there to meet your new arrival time.</li>
															</UL>
															
															We wish you a safe journey and thank you for booking with Aero Corporate Cars.<br/><br>
															Yours sincerely, <br /><br/>
															<strong>Aero Corporate Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
															<strong>Email:</strong> aero@aerocorporatecars.com <br />
															<strong>Telephone:</strong> 1800 350 850 <br /><br/>';
									}	
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
							
						// 4 - TO AGENT
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['agents_email'],  $job_reference_details['agents_name']);
								$mail->Body    	.=	self::MOBILE_HEADER;
								
								$mail->addStringAttachment($qr, "For Aero's drivers.png");
								
								$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
								
								if($job_reference_details['charge_acc_id'] == '15') // RMIT agent
										//this fucks Monash confirmations.. $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_WeChat_Line_QR_Codes.pdf",'Add Aero to WhatsApp - WeChat or Line using our QR Codes','base64','application/pdf');
									    {$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/RMIT.pdf",'RMIT.pdf','base64','application/pdf'); 
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Mandarin_RMIT_Sign.pdf",'Zhongwen.pdf','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Vietnamise_RMIT_Sign.pdf",'Dich_vu_dón_tai_sân_bay.pdf','base64','application/png');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '55') // Monash College agent
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_College_Sign.pdf",'Look for Monash sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MC_MU_Sign.pdf",'Aero & Monash Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Please_read_MC.pdf",'Please Read.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport Map','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN_MONASH.pdf",'WIS.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '9') // Monash Connect agent
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'Look for Monash sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Aero_MU_MC_Sign.pdf",'Aero & Monash Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Please_read_MU.pdf",'Please_Read.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN_MONASH.pdf",'WIS.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '19') // Monash Abroad agent
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Please_Read.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Monash_SIGN_PDF.pdf",'Look_For.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'Meeting_Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Meeting_Point.png','base64','application/png');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '900') // Sydney University agent
									{
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'meeting_point.png','base64','application/png');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Airport_Map_a.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1031') // Deakin College agent
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Other Meeting Point.png','base64','application/png');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Deakin_Logo.pdf",'Look For.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Airport_Map_a.pdf','base64','application/pdf');
									}
									if($job_reference_details['charge_acc_id'] == '506') // Deakin University agent
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.png",'Other Meeting Point.png','base64','application/png');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/melbourne_airport_RMIT.pdf",'Airport_Map.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Deakin_Logo.pdf",'Look For.pdf','base64','application/pdf');
										// $mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Airport_Map_Monash_A.pdf",'Airport_Map_a.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1035') // Victoria University agent
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1036') // Victoria College agent
									{
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1040') // Victoria Uni Sydney behalf
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1041') // Victoria Uni Brisbane behalf
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}
								if($job_reference_details['charge_acc_id'] == '1042') // ACVET behalf
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/VU_logo.pdf",'Look for VU Sign.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
									}		
								else // common attachments
									{
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Meeting_Point.pdf",'T2 Meeting Point.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WhatsApp_QR_Code.pdf",'Add Aero to WhatsApp using our QR Code.pdf','base64','application/pdf');
										$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/Feedback.pdf",'Feedback.pdf','base64','application/pdf');
										//$mail->AddAttachment($_SERVER['DOCUMENT_ROOT']."/Admin/mail_attachments/WIS_SIGN.pdf",'WIS.pdf','base64','application/pdf');
									}
									
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, BOOKING CONFIRMED by '.$chargeaccount_details['account_name'].' ';
									}
								else
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), BOOKING CONFIRMED by '.$chargeaccount_details['account_name'].' ';
									}
								
								$mail->Body    	.= 	'<h3>BOOKING CONFIRMATION</h3>';
								$mail->Body    	.= 	'<strong>'.$job_reference_details['agents_name'].',</strong><br/><br/>';
								if($job_reference_details['charge_acc_id'] == '55') // MONASH COLLEGE agent
									{
										$mail->Body  	.=	'Dear Agent thank you for booking your student&#39;s airport pick-up request with Aero for '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Other items to note:</strong><br/>
															
															<UL>
															<li><b>**If your student brings more luggage than what we have been have told, or exceed the luggage allowance, the driver may not be able to pick them up, and they will need to make their own arrangements**</b></li> 
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that their phone is switched on and that they have enabled global roaming before they arrive at Melbourne Airport.</li>
															<li> DO NOT go shopping in the airport terminal, they must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> Ask your student to bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Monash sign confirming they are a representative of Monash College. The driver will also have their name and contact number provided in this booking.</li>
															<li> If your student cannot find their driver, follow the instructions below. Tell them Not to leave the airport! Aero will not compensate them for the cost of alternative transport if they miss their pick-up.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															
															Your driver will meet you at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															
															Please ensure that you do not leave any of your belongings in our vehicles, we cannot guarantee the safety of your lost luggage.  You may need to make a private arrangement to have your lost property delivered to you.  The cost you will incur will be dependent on your address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;MONASH&#39; sign (see attachments) for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															
															If your driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp or <a href="https://www.wechat.com" class="">WeChat</a> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your driver. When calling, please be ready to provide your flight number, Monash Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>Any changes must be done by emailing <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a>.  </li>
															<li>If they miss a flight on their way to Melbourne, Australia, they must notify <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a> (<b>NOT the driver</b>) as soon as possible by <a href="mailto:aero@aerocorporatecars.com"> email</a>. If their notification is received a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.  </li>
															<li>If they board their Melbourne-bound flight (the one on this booking) and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with their new arrival time.  </li>
															<li>To change or cancel their airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a></b> (<b>NOT the driver</b>) at least one full working day before they are due to arrive to avoid additional costs. They can contact us by  <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change their arrival details on Saturday or Sunday. </li>
															<li>If they are overseas and miss their flight or if their flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm their new arrival details. If your notification is received within a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.</li>
															<li>If they catch their Melbourne-bound flight but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>


															
															<strong>MONASH COLLEGE Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Monash College students:  https://www.monashcollege.edu.au/live-and-study-in-australia/prepare-to-arrive/enrolment-and-orientation <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, Foundation Year or Monash College Diploma program, your enrolment and orientation information can be found at:<br/>
															https://www.monashcollege.edu.au/live-and-study-in-australia/prepare-to-arrive/enrolment-and-orientation <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Monash including your enrolment, study timetable and learning how to access Monash College computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Monash.<br/><br/>
															Kind regards<br/>
															Monash College<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '9') // MONASH CONNECT agent
									{
										$mail->Body  	.=	'Dear Agent thank you for booking your student&#39;s airport pick-up request with Aero for '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
																	
															<strong>Other items to note:</strong><br/>
															
															<UL>
															<li><h4><b>**If your student brings more luggage than what we have been have told, or exceed the luggage allowance, the driver may not be able to pick them up, and they will need to make their own arrangements**</b></h4></li> 
															<li> Driver will ring or text your client after their flight lands. Please make sure that your client&#39;s phone is switched on and that they have enabled global roaming before they arrive at Melbourne Airport.</li>
															<li> They are NOT allowed go shopping in the airport terminal (sim card), they must go directly to the meeting point. DO NOT leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up. </li>
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Monash sign confirming they are a representative of Monash University (see attachments). The driver will also have their name and contact number provided in this booking.</li>
															<li> If they cannot find your driver, follow the instructions below. Do not just leave the airport! Aero will not compensate your student for the cost of alternative transport if they miss their pick-up.</li>
															<li> QR code is for our drivers.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If your student is on a flight arriving from overseas, ask them to turn left when they leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															
															Please ensure that your student does not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  They may need to make a private arrangement to have their lost property delivered to them.  The cost they will incur will be dependent on their address.<br><br>
															
															Please review the booking details and let us know as soon as possible if they are not accurate.<br><br> 
															The driver will hold a &#34;MONASH&#34; sign (see attachments) for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															Mention to your student, that, If their driver is not at the designated meeting point as above within 15 minutes, text using WhatsApp or WeChat on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019. Staff will then locate your driver. When calling, please be ready to provide your flight number, Monash Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if your student does not arrive at your booked time or does not arrive at all without informing us, your student may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>Any changes must be done by emailing <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a>.  </li>
															<li>If they miss a flight on their way to Melbourne, Australia, they must notify <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a> (<b>NOT the driver</b>) as soon as possible by <a href="mailto:aero@aerocorporatecars.com"> email</a>. If their notification is received a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.  </li>
															<li>If they board their Melbourne-bound flight (the one on this booking) and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with their new arrival time.  </li>
															<li>To change or cancel their airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a></b> (<b>NOT the driver</b>) at least one full working day before they are due to arrive to avoid additional costs. They can contact us by  <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change their arrival details on Saturday or Sunday. </li>
															<li>If they are overseas and miss their flight or if their flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm their new arrival details. If your notification is received within a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.</li>
															<li>If they catch their Melbourne-bound flight but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>
															
															<b>Enrolment</b><br/>
															Each course has its own enrolment date, time and location. Refer to the following <a href="https://www.monash.edu/study/why-choose-monash/student-life/getting-started"> website</a> for details.<br/><br/>

															<b>Orientation program</b><br/>
															Details of the Orientation program will be available on the following <a href="https://monash.edu/orientation"> website</a>.<br/><br/>

															In preparation for their arrival on campus, ask your student to create their personalised Orientation schedule using the eOrientation planner. <br/><br/>
															 
															Your student must attend Orientation.  They will get a lot of valuable information about studying at Monash University including; their enrolment, study timetable and learning how to access the University&#39;s computer resources. <br/> <br/>

															Orientation includes sessions on academic and study skills, Australian culture and working in Australia, campus tours and social opportunities to meet other students.<br/><br/>

															We wish your student a pleasant journey and look forward to welcoming them to Monash University.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1042') // ACVET agent
									{
										$mail->Body  	.=	'Dear Agent thank you for booking your student&#39;s airport pick-up request with Aero for '.formatDate($j1_details ['job_date'],12).' on '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
																	
															<strong>Other items to note:</strong><br/>
															
															<UL>
															<li><h4><b>**If your student brings more luggage than what we have been have told, or exceed the luggage allowance, the driver may not be able to pick them up, and they will need to make their own arrangements**</b></h4></li> 
															<li> Driver will ring or text your client after their flight lands. Please make sure that your client&#39;s phone is switched on and that they have enabled global roaming before they arrive at Melbourne Airport.</li>
															<li> They are NOT allowed go shopping in the airport terminal (sim card), they must go directly to the meeting point. DO NOT leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up. </li>
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a ACVET sign confirming they are a representative of ACVET (see attachments). The driver will also have their name and contact number provided in this booking.</li>
															<li> If they cannot find your driver, follow the instructions below. Do not just leave the airport! Aero will not compensate your student for the cost of alternative transport if they miss their pick-up.</li>
															<li> QR code is for our drivers.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If your student is on a flight arriving from overseas, ask them to turn left when they leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															
															Please ensure that your student does not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  They may need to make a private arrangement to have their lost property delivered to them.  The cost they will incur will be dependent on their address.<br><br>
															
															Please review the booking details and let us know as soon as possible if they are not accurate.<br><br> 
															The driver will hold a &#34;ACVET&#34; sign (see attachments) for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk " at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at Melbourne Airport</b><br/>
															Mention to your student, that, If their driver is not at the designated meeting point as above within 15 minutes, text using WhatsApp or WeChat on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019. Staff will then locate your driver. When calling, please be ready to provide your flight number, ACVET Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if your student does not arrive at your booked time or does not arrive at all without informing us, your student may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>Any changes must be done by emailing <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a>.  </li>
															<li>If they miss a flight on their way to Melbourne, Australia, they must notify <a href="mailto:aero@aerocorporatecars.com"> Aero admin</a> (<b>NOT the driver</b>) as soon as possible by <a href="mailto:aero@aerocorporatecars.com"> email</a>. If their notification is received a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.  </li>
															<li>If they board their Melbourne-bound flight (the one on this booking) and it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and will be at the &#39;meeting point&#39; to align with their new arrival time.  </li>
															<li>To change or cancel their airport pick-up booking, contact <i class="fa fa-envelope"></i> <b><a href="mailto:aero@aerocorporatecars.com" class="">Aero admin</a></b> (<b>NOT the driver</b>) at least one full working day before they are due to arrive to avoid additional costs. They can contact us by  <a href="mailto:aero@aerocorporatecars.com"> email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change their arrival details on Saturday or Sunday. </li>
															<li>If they are overseas and miss their flight or if their flight is cancelled, please <a href="mailto:aero@aerocorporatecars.com"> email</a> Aero immediately to confirm their new arrival details. If your notification is received within a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.</li>
															<li>If they catch their Melbourne-bound flight but it is delayed, note that Aero monitors all Melbourne-bound flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>
															
															<!--<b>Enrolment</b><br/>
															Each course has its own enrolment date, time and location. Refer to the following <a href="https://www.monash.edu/study/why-choose-monash/student-life/getting-started"> website</a> for details.<br/><br/>

															<b>Orientation program</b><br/>
															Details of the Orientation program will be available on the following <a href="https://monash.edu/orientation"> website</a>.<br/><br/>

															In preparation for their arrival on campus, ask your student to create their personalised Orientation schedule using the eOrientation planner. <br/><br/>
															 
															Your student must attend Orientation.  They will get a lot of valuable information about studying at Monash University including; their enrolment, study timetable and learning how to access the University&#39;s computer resources. <br/> <br/>

															Orientation includes sessions on academic and study skills, Australian culture and working in Australia, campus tours and social opportunities to meet other students.<br/><br/>-->

															We wish your student a pleasant journey and look forward to welcoming them to ACVET.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '871') // AHN 
									{
										$mail->Body  	.=	'Please refer to your attachments<br/>
															Thank you for your airport pick-up request.<br/><br/>
															
															The driver will hold an &#34;AERO&#34; sign for easy identification and will take you to the following address:<br/>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'<br/>
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/>
															'.$j1_details ['to_state'].'<br/>
															
															<b>PLANE DELAY OR CANCELLATION</b><br/>
															*Please not that there is a luggage limit.  You are able to put the equivalent of 2 suitcases and 1 carry bag into your pick-up car.  If you exceed this limit your driver will be unable to take you to your homestay.<br/> 
															AHN must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give AHN 24 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Corporate Cars on 1800 350 850 or AHN on +61 3 9435 6621<br/>
															
															If you require further assistance please do not hesitate to contact us:
																During business hours on +61 3 9435 6621.
																After hours on +61 2 8905 0321 if outside Australia or 1300 697 829 from inside Australia<br/>
															
															If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.
															This will ensure your driver is at Melbourne Airport to meet you.<br/><br/>
															
															We wish you a pleasant journey and look forward to welcoming you to Australia.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1035') // Victoria University student agent
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your booking. Your arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> You must ensure that your <u>phone is switched</u> on and that you have <u>enabled global roaming</u> before you arrive at Melbourne Airport. Your driver will ring or text you after your flight lands.</li>
															<li> DO NOT go shopping in the airport terminal, you must go directly to the &#39;meeting point&#39;. DO NOT leave the airport. Aero cars will not compensate you for the cost of alternative transport if you miss your pick-up.   </li>
															<li> If you cannot find your driver, text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure you do not miss your pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). The driver will also have your name and contact number provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport, Melbourne at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 2) </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to <u>and</u> wait at the &#39;Welcome Centre&#39; (see attachment). <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on your arrival terminal:
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel </li>
															</UL>
															<strong>Avalon Airport </strong><br>
															<UL>
															<li>Your student&#39;s driver will meet your student at their luggage carousel.<br><br></li>
															</UL>
															Please ensure that your student does not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  They may need to make a private arrangement to have their lost property delivered to them.  The cost you will incur will be dependent on their address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If their driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate their driver. When calling, please be ready to provide their flight number, Victoria University Student ID number (this is listed below on their booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if they do not arrive at your booked time or do not arrive at all without informing us, they may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing their flight</strong>
															<UL>
															<li>To change or cancel their airport pick-up booking, contact us at least one full working day before they are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Melbourne time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Melbourne time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change their arrival details on Saturday or Sunday. </li>
															<li>If they are overseas and they miss their flight or if their flight is cancelled, please email Aero immediately to confirm their new arrival details. If their notification is received within a minimum of 14 hours before their arrival, Aero will schedule a driver for their new arrival time.</li>
															<li>If they catch their flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/current-students/your-course/enrolment <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/current-students/new-to-vu/orientation <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '1040') // Victoria Uni Sydney on behalf of
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your student&#39;s booking. Student&#39;s arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that you tell your student to turn their phones on, and to connect their phones to the airport&#39;s free Wi-fi, and or to enable global roaming.</li>
															<li> <b>DO NOT</b> go shopping in the airport terminal, please inform your student that they must go directly to the &#39;meeting point&#39;. <b>NOT</b> to leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> If your student cannot find their driver, ask them to text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure they do not miss their pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). The driver will also have your student&#39;s name, contact number and destination address provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your student&#39;s driver will meet them at Sydney Airport, at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 1 T1) </strong><br>
															If arriving on a international flight (SYD T1), find the meeting point, which is inside the Arrival Hall at McDonald&#39;s Restaurant. Drivers will meet students with a VU or Aero sign.. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will be by your luggage carousel for your flight.:
															<UL>
															<li><strong>Qantas domestic (Terminal 3)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 2)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 2)</strong>, wait at your baggage carousel </li>
															</UL>
															Please ensure that they do not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  they may need to make a private arrangement to have their lost property delivered to them.  The cost they will incur will be dependent on their address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If the driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your student&#39;s driver. When calling, please be ready to provide your flight number, Victoria University Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if your student does not arrive at their booked time or do not arrive at all without informing us, they may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your student&#39;s airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Sydney time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Sydney time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your student&#39;s arrival details on Saturday or Sunday. </li>
															<li>If your student is overseas and miss their flight or if their flight is cancelled, please email Aero immediately to confirm their new arrival details. If their notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your student&#39;s new arrival time.</li>
															<li>If they catch their flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/first-time-enrolment-at-vu-sydney <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/orientation-at-vu-sydney <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '1041') // Victoria Uni Brisbane NEED TO BE CHANGED on behalf of
									{
										$mail->Body  	.=	'Thank you for booking with us, we are pleased to confirm your student&#39;s booking. Student&#39;s arrival details are -  '.formatDate($j1_details ['job_date'],12).' on flight '.$j1_details ['frm_flight_no'].' arriving at '.calculateTimeInAmPmFormatWithoutSeconds($j1_details ['job_time']).'.<br/><br/>
															
															<strong>IMPORTANT INFORMATION - Please read carefully and thoroughly</strong><br/>
																	
						<b><u><font color="#FF0000;"><h4>Do not bring food.</h4></u></font></b> Visit the  <a href= https://www.abf.gov.au/entering-and-leaving-australia/can-you-bring-it-in/categories/food#:~:text=Oil-,Food%20and%20drink,to%20arrival%20in%20Australian%20territory. href="#">Australian Border Force Website</a> to guide you on food that <u>must</u> be declared and specific food you can bring into the country. <br>
						Please note that lengthy delays encountered during this process may result in your booking being cancelled if you arrive through customs late. <br><br></ul>
															<strong>Important items to note:</strong> 
															<UL>
															<li> Driver will ring or text your student <b>after</b> their flight lands. Please make sure that you tell your student to turn their phones on, and to connect their phones to the airport&#39;s free Wi-fi, and or to enable global roaming.</li>
															<li> <b>DO NOT</b> go shopping in the airport terminal, please inform your student that they must go directly to the &#39;meeting point&#39;. <b>NOT</b> to leave the airport. Aero cars will not compensate your student for the cost of alternative transport if they miss their pick-up.   </li>
															<li> If your student cannot find their driver, ask them to text  +61 425 865 955 via <a href="https://www.whatsapp.com" class="">WhatsApp</a> or call  Aero Cars on 1300 650 019 to ensure they do not miss their pick up.
															<li> Bring a digital copy of this confirmation email to show the driver.</li>
															<li> Before accepting their ride, <b>make sure the driver has suitable identification,</b> such as an Aero or a Victoria University sign confirming they are a representative of Victoria University (see attachments). The driver will also have your student&#39;s name, contact number and destination address provided in this booking.</li>
															<li> QR code is for Aero drivers only.</li>
															</UL>
															Your student&#39;s driver will meet them at Sydney Airport, at one of the following:<br><br>
 
															<strong>International arrivals (Terminal 1 T1) </strong><br>
															If arriving on a international flight (SYD T1), find the meeting point, which is inside the Arrival Hall at McDonald&#39;s Restaurant. Drivers will meet students with a VU or Aero sign.. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will be by your luggage carousel for your flight.:
															<UL>
															<li><strong>Qantas domestic (Terminal 3)</strong>, wait opposite baggage carousel 3</li>
															<li><strong>Virgin Australia (Terminal 2)</strong>, wait at the coffee shop opposite the baggage carousels</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 2)</strong>, wait at your baggage carousel </li>
															</UL>
															Please ensure that they do not leave any of their belongings in our vehicles, we cannot guarantee the safety of their lost luggage.  they may need to make a private arrangement to have their lost property delivered to them.  The cost they will incur will be dependent on their address.<br><br>
															
															Please review your booking details and let us know as soon as possible if they are not accurate.<br/><br>
															The driver will hold a &#39;Victoria University&#39; (see attachments) sign for easy identification and will take you to the following address:<br/><br>
															'.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/><br/>
															<!--'.$j1_details ['to_state'].'<br/></br>-->
															<!--<b>City of Melbourne - International Student Welcome Booth</b><br/>
															At key times of the year, the City of Melbourne operates the "Student Welcome Desk" at Melbourne Airport. At the welcome desk, volunteers greet you
															and provide information about welfare services, public transport, housing, employment options and social integration to help you with your stay in
															Melbourne.<br/><br/>-->
															
															<b>No driver waiting at the Airport</b><br/>
															
															If the driver is not at the designated meeting point as above within 15 minutes, <b><u>text</u></b> using <a href="https://www.whatsapp.com" class="">WhatsApp</a> <!-- or <a href="https://www.wechat.com" class="">WeChat</a> --> on +61 425 865 955. Alternatively, find a public phone and make a free call (no coins required) to Aero on 1300 650 019.  Staff will then locate your student&#39;s driver. When calling, please be ready to provide your flight number, Victoria University Student ID number (this is listed below on your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if your student does not arrive at their booked time or do not arrive at all without informing us, they may have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' <br /><br />
															
															<strong>Changes to, cancellation of or missing your flight</strong>
															<UL>
															<li>To change or cancel your student&#39;s airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by  <a href="mailto:aero@aerocorporatecars.com"> Email</a>.  Our office hours are 8am to 7pm Monday to Friday, <a href="https://24timezones.com/difference/" class="">Sydney time</a>.  Staff at Aero do not check emails between the hours of 10pm and 6am <a href="https://24timezones.com/difference/" class="">Sydney time</a> Monday to Friday and not at all on the weekends. </li>
															<li><a href="mailto:aero@aerocorporatecars.com"> Email</a> Aero to change your student&#39;s arrival details on Saturday or Sunday. </li>
															<li>If your student is overseas and miss their flight or if their flight is cancelled, please email Aero immediately to confirm their new arrival details. If their notification is received within a minimum of 14 hours before your arrival, Aero will schedule a driver for your student&#39;s new arrival time.</li>
															<li>If they catch their flight but it is delayed, note that Aero monitors all flights and will be aware of delayed arrival times and be there to meet their new arrival time.</li>
															</UL>
															
															We are committed to providing you with the best transport experience possible. To help us continuously review and improve our service, please complete our quick feedback questionnaire <u>attached</u> and email it back to us at: <a href="mailto:aero@aerocorporatecars.com"> Aero</a> following your airport pick up and completion of our airport reception service.<br><br>

															
															<strong>Victoria University Enrolment</strong><br/><br/>
															Each course has its own enrolment date, time and location; to locate your enrolment information please refer below.<br/><br/> 
															Victoria University students:  https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/first-time-enrolment-at-vu-sydney <br/><br/>
															
															<strong>Orientation program</strong><br/><br/>
															If you are studying the English Language, College Diploma program or Postgraduate course, your enrolment and orientation information can be found at:<br/>
															https://www.vu.edu.au/vu-sydney/current-students-at-vu-sydney/orientation-at-vu-sydney <br/><br/>
															You must attend Orientation,  you will get a lot of valuable information about studying at Victoria University including your enrolment, study timetable and learning how to access Victoria University computer resources.<br/><br/>  
															Orientation includes sessions on academic and study skills, Australian culture, campus tours and social opportunities to meet other students.<br/><br/>
															We wish you a pleasant journey and look forward to welcoming you to Victoria University.<br/><br/>
															Kind regards<br/>
															Victoria University<br/><br/>';
									}
								else if($job_reference_details['charge_acc_id'] == '15') // RMIT Agent's Confirmation
									{
										$mail->Body  	.=	'<b>It is important that you refer to the attachments<br/><br/>
															Your driver will be waiting for you at the Meeting Point near OPTUS store/ near the TRAVELEX Foreign Exchange counter. If you cannot find your driver, you must ring 1800 350 850 (Free Call) from any public phone.<br/><br/></b> 
															Thank you for booking with us and we are now pleased to confirm your arrival pick-up. <b>Please show this email confirmation to your driver.<br/><br/></b>
															Our driver will meet you at the airport and will be holding a placard <b>"AERO" or "RMIT UNIVERSITY"</b>.<br/><br/>
															Please note a no show fee of AU$125 applies if you do not inform Aero of any changes to your arrival itinerary or do not use the service.<br/><br/>
															
															You have to let us know the number of luggage you have.  Please note if your excess luggage do not fit in a standard sedan&#39;s boot, you will
															have to arrange a taxi to transport any excess luggage. <br/><br/>
															
															Please refrain from bringing food into Australia. As this <b>will</b> delay your immigration and customs clearance time and you <b>may incur extra charges</b>.<br/><br/>
															Click the following link for more information https://www.agriculture.gov.au/travelling/arriving-in-australia#fresh-fruit-and-vegetables<br/><br/>
															You must look for Aero&#39;s driver <b>immediately</b> at the Meeting Point of your arriving terminal. <br/><br/>
															
															If you arrive at:
															<ul>
																<li><b>Melbourne Airport-T2 (International) </b>, Please go to the Meeting Point near OPTUS store/ near the TRAVELEX Foreign Exchange counter.  Refer to the "Key 8 & 10" of the attached Melbourne Airport Map.</li>
																<li><b>Qantas Domestic Terminal</b>, please go to the &#34;Meeting Point&#34; located opposite Baggage Carousel 3.  If you can&#39;t find your driver at the Domestic terminal, please go to <b>T2 International</b>, next door to your right). </li>
																<li><b>Virgin Australia Terminal</b>, please go to the &#34;Meeting Point&#34; below the escalators. If you can&#39;t find your driver at the Domestic terminal, please go to<b> T2 (International) </b>, next door to your left). </li>
																<li><b>Terminal 4 (Tiger Airways) </b>, you have to ring Aero Corporate Cars on <b>1800 350 850</b> from <b>any</b> public phone (Free Call), the staff will direct you to the meeting point. </li>
															</ul>
															If you are unable to find our staff or have made changes to your arrival itinerary, you must call us. Otherwise we cannot guarantee airport pick-up and you will be charged for the service. <br/><br/>
															Thank you.<br/><br/>
															Kind Regards<br/><br/>
															Admin<br/>
															<!-- <b>'.$chargeaccount_details['account_name'].'</b><br/><br/> -->
															';
									}
								else if($job_reference_details['charge_acc_id'] == '900') // Sydney University Agent
									{
										$mail->Body  	.=	'Thank you for your airport pick-up request.<br/><br/>
															
															The driver will hold an &#34;AERO&#34; sign for easy identification and will take you to the following address:<br/>
															<!-- '.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'<br/>
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/>
															'.$j1_details ['to_state'].'<br/> -->
															
															<b>PLANE DELAY OR CANCELLATION</b><br/>
															*Please not that there is a luggage limit.  You are able to put the equivalent of 2 suitcases and 1 carry bag into your pick-up car.  If you exceed this limit your driver may be unable to take you to your homestay.<br/> 
															Aero must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give Aero 12 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Corporate Cars on +61 425 865 955<br/>
															
															If you require further assistance please do not hesitate to contact us:
																During business hours on +61 425 865 955 if outside Australia.
																or 1800 350 850 from inside Australia<br/>
															
															If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.
															This will ensure your driver is at Sydney Airport to meet you.<br/><br/>
															
															We wish you a pleasant journey and look forward to welcoming you to Australia.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else if($job_reference_details['charge_acc_id'] == '1022') // Griffith University student?
									{
										$mail->Body  	.=	'Thank you for your airport pick-up request.,<br/><br/>
															
															The driver will hold an &#34;AERO&#34; sign for easy identification and will take you to your destination as per your instructions below:<br/><br/>
															<!-- '.$j1_details ['to_line1'].'<br/>
															'.$j1_details ['to_line2'].'<br/>
															'.$j1_details ['to_sub'].' '.$j1_details ['to_pc'].'<br/>
															'.$j1_details ['to_state'].'<br/> -->
															
															<strong>IMPORTANT INFORMATION</strong><br/><br/>
															
															<strong>IF YOU CAN\'T FIND YOUR DRIVER, FIND A PUBLIC PHONE AND RING US ON 1800 350 850</STRONG> (this is a <strong>free</strong>
															call, <strong>NO</strong> coins needed)<br /><br />
															
															<strong>YOU NEED TO BRING A COPY OF THIS CONFIRMATION EMAIL TO SHOW OUR REPRESENTATIVE.</strong><br /><br />
															
															<b>PLANE DELAY OR CANCELLATION</b><br/><br/>
															*Please not that there is a luggage limit.  You are able to put the equivalent of 2 suitcases and 1 carry bag into your pick-up car.  If you exceed this limit your driver may be unable to take you to your homestay.<br/> 
															Aero must be advised of any changes to your plans prior to your arrival.  If you change your flight or arrival details; you must give Aero 14 business hours notice, otherwise you will be charged the cost of the airport pick-up service.<br/>
															If you miss your connecting flight, please notify Aero Cars on 1800 350 850<br/><br/>
															
															If you require further assistance please do not hesitate to contact us:
																During business hours on +61 425 865 955 if outside Australia.
																or 1800 350 850 from inside Australia<br/><br/>
															
															If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 425 865 955 immediately to confirm your new arrival details.
															This will ensure your driver is at Sydney Airport to meet you.<br/><br/>
															
															We wish you a pleasant journey and look forward to welcoming you to Australia.<br/><br/>
															Thank you.<br/>
															Kind Regards<br/>
															<b>'.$chargeaccount_details['account_name'].'</b><br/><br/>
															';
									}
								else //common body
									{
										$mail->Body  	.=	'Thank you for your recent booking. <br /><br />
															Please review the booking details and tell us immediately if they are not correct. <br /><br />
															
															<strong>IMPORTANT INFORMATION</strong>
															<UL>
															<li> Bring a copy of this confirmation email to show the driver.</li>
															<li> Before accepting your ride, make sure the driver has suitable identification, such as an Aero Car or your University sign, confirming they&#39;re a representative of your University. The driver will also have your name and contact number provided in this booking.</li>
															<li> If you can&#39;t find your driver, follow the instructions below. Do not just leave! Aero will not compensate you for the cost of alternative transport if you missed the pick-up.</li>
															</UL>
															Your driver will meet you at Tullamarine Airport in Melbourne at one of the following points.<br><br>
 
															<strong>International arrivals (Terminal 2). </strong><br>
															If you are on a flight arriving from overseas, turn left when you leave the customs area and go to wait at the Welcome Centre. <br><br>
 
															<strong>Domestic arrivals </strong><br>
															If you are arriving from somewhere else in Australia, the meeting points will vary depending on the terminal.
															<UL>
															<li><strong>Qantas domestic (Terminal 1)</strong>, go and wait opposite Baggage Carousel 3.</li>
															<li><strong>Virgin Australia (Terminal 3)</strong>, go and wait at the coffee shop opposite the baggage caroucels.</li>
															<li><strong>Jetstar - Tiger Airways (Terminal 4)</strong>, wait at your baggage carousel. </li>
															</UL>
															
															<strong>No driver waiting</strong><br/>
															
															If your driver is not at the meeting point designated above within 15 minutes, text using WhatsApp or WeChat on +61 425 865 955. Alternatively find a public phone and make a free call (no coins required) to Aero on 1800 350 850.  Staff will then locate your driver. When calling, please provide your University Student ID number (this is listed below from your booking), family name and given name.<br/><br/>
															
															<STRONG>Note:</STRONG> if you do not arrive at your booked time or do not arrive at all without informing us, you will have to pay a cancellation fee to '.$chargeaccount_details['account_name'].' . <br /><br />
															
															<strong>Changes to, cancellation of or missing flight</strong>
															<UL>
															<li>To change or cancel your airport pick-up booking, contact us at least one full working day before you are due to arrive to avoid additional costs. You can contact us by email aero@aerocorporatecars.com or by telephone +61 1800 350 850.  Our office hours are 9am to 5pm Monday to Friday, Melbourne time.  Staff at Aero Cars do not check emails between the hours of 10pm and 6am Melbourne time Monday to Friday and not all on the weekends. </li>
															<li>To change your arrival details on Saturday or Sunday, telephone +61 1800 350 850. </li>
															<li>If you are overseas and miss your flight or if your flight is cancelled, please telephone +61 1800 350 850 immediately to confirm your new arrival details. This will ensure your driver is at Melbourne Airport to meet you.</li>
															<li>If you catch your flight but it is delayed, Aero Cars monitors flights and will be aware of delayed arrival times and be there to meet your new arrival time.</li>
															</UL>
															
															We wish you a safe journey and thank you for booking with Aero Cars.<br/><br>
															Yours sincerely, <br /><br/>
															<strong>Aero Cars </strong><br/>ABN: 186 2673 9884<br /><br/>
															<strong>Email:</strong> aero@aerocorporatecars.com <br />
															<strong>Telephone:</strong> 1800 350 850 <br /><br/>';
									}						
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						
						// 5 - Under 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								$query = "SELECT * from variable__university where charge_acc_id = '".$job_reference_details['charge_acc_id']."'";
								$database = new database;
								$result = $database->query($query);
								$row = mysqli_fetch_assoc($result);
						
								if($row['under_18_email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$emails = explode(',', $row['under_18_email']);
										foreach($emails as $email){
											$mail->addAddress($email,  ''.$chargeaccount_details['account_name'].' UNDER 18');
										}

										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' BOOKING CONFIRMED for Booking ID - '.$job_reference_details['j1_id'].'';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' BOOKING CONFIRMED for Booking ID - '.$job_reference_details['j1_id'].'';
											}
										
										$mail->Body    	.= 	'<h3>BOOKING CONFIRMATION</h3>';
										$mail->Body  	.=	'The following are the details of booking for under 18 student of '.$chargeaccount_details['account_name'].'.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
							
						// 6- Home Stay Department
						if($job_reference_details['is_homestay'] == '1')
							{
								$query = "SELECT * from variable__university where charge_acc_id = '".$job_reference_details['charge_acc_id']."'";
								$database = new database;
								$result = $database->query($query);
								$row = mysqli_fetch_assoc($result);
						
								if($row['under_18_email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$emails = explode(',', $row['homestay_email']);
										foreach($emails as $email){
											$mail->addAddress($email,  ''.$chargeaccount_details['account_name'].' '.$row['homestay_label'].'');
										}
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' BOOKING CONFIRMED for Booking ID - '.$job_reference_details['j1_id'].'';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' BOOKING CONFIRMED for Booking ID - '.$job_reference_details['j1_id'].'';
											}
										
										$mail->Body    	.= 	'<h3>BOOKING CONFIRMATION</h3>';
										$mail->Body  	.=	'The following are the details of booking for '.$chargeaccount_details['account_name'].' student availing '.$row['homestay_label'].'.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
							
						
					}
				
// 	7 	ON EDITING STUDENT BOOKING - DATE/TIME AND DROPOFF LOCATION ARE SAME
				//	if edit_flage = 0, send notification to - 1, 2, 4, 7 (edit flag 0 means limited editing)
				//	if edit_flage = 1, send notification to - 1, 2, 3, 4, 5, 6, 7 (edit flag 0 means limited editing)
				if($process_type == '7')
					{
						
						//Send to student
						$mail 			= new PHPMailer();
						$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
						
						
						//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
						//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
						$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
						$mail->Body    	.=	self::MOBILE_HEADER;
						if($job_reference_details['under_18'] == '1')
							{
								$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, BOOKING EDITED';
							}
						else
							{
								$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), BOOKING EDITED';
							}
						
						$mail->Body    	.= 	'<h3>BOOKING EDITED</h3>';
						$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].',</strong><br/><br/>';
						$mail->Body  	.=	'Your booking has been edited by Aero Cars.<br/><br/>
											Please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
						$mail->Body    	.= 	$booking_html;
						$mail->Body    	.= 	self::MOBILE_FOOTER;
						$mail->send();
						
						// 2 - TO ON BEHALF OF
						if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['on_behalf_email'],  ''.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].'');
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18,BOOKING EDITED';
									}
								else
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), BOOKING EDITED';
									}
								
								$mail->Body    	.= 	'<h3>BOOKING EDITED</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].',</strong><br/><br/>';
								$mail->Body  	.=	'Your booking has been edited by Aero Cars.<br/><br/>
													Please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 3 - TO GUARDIAN
						if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
							{
								// Do Nothing
							}	
						// 4 - TO AGENT
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['agents_email'],  $job_reference_details['agents_name']);
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, BOOKING EDITED';
									}
								else
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), BOOKING EDITED';
									}
								
								$mail->Body    	.= 	'<h3>BOOKING EDITED</h3>';
								$mail->Body    	.= 	'<strong>'.$job_reference_details['agents_name'].',</strong><br/><br/>';
								$mail->Body  	.=	'Your booking has been edited by Aero Cars.<br/><br/>
													Please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 5 - UNDER 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								// Do Nothing
							}
						// 6 - HOMESTAY Department
						if($job_reference_details['is_homestay'] == '1')
							{
								// Do Nothing
							}	
						// 7 - TO UNIVERSITY
						$admin_array = $chargeaccounts->getAllChargeAccountContacts($job_reference_details['charge_acc_id']);
						foreach($admin_array AS $admin)
							{
								if($admin['email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$mail->addAddress($admin['email'],  ''.$admin['title'].' '.$admin['fname'].' '.$admin['lname'].'');
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Booking ID - '.$job_reference_details['j1_id'].' EDITED';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Booking ID - '.$job_reference_details['j1_id'].' EDITED';
											}
										
										$mail->Body    	.= 	'<h3>BOOKING EDITED</h3>';
										$mail->Body  	.=	'The following student booking has been edited by Aero Cars.<br/><br/>
															Please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
						if($edit_flag == '1') // means pick-up data and time or dropoff address changed
							{
								// 3 - TO GUARDIAN
								if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
									{
										// Do Nothing
									}	
								// 5 - UNDER 18 Department and not to RMIT
								if($job_reference_details['under_18'] == '1' && $job_reference_details['id'] !='15')
									{
										$query = "SELECT * from variable__university where charge_acc_id = '".$job_reference_details['charge_acc_id']."'";
										$database = new database;
										$result = $database->query($query);
										$row = mysqli_fetch_assoc($result);
								
										if($row['under_18_email'] != '')
											{
												$mail 			= new PHPMailer();
												$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
												
												
												//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
												//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
												$emails = explode(',', $row['under_18_email']);
												foreach($emails as $email){
													$mail->addAddress($email,  ''.$chargeaccount_details['account_name'].' UNDER 18');
												}
												$mail->Body    	.=	self::MOBILE_HEADER;
												if($job_reference_details['under_18'] == '1')
													{
														$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' EDITED';
													}
												else
													{
														$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' EDITED';
													}
												
												$mail->Body    	.= 	'<h3>BOOKING EDITED</h3>';
												$mail->Body  	.=	'The following booking for under 18 student of '.$chargeaccount_details['account_name'].' has been edited.<br/><br/>';
												$mail->Body    	.= 	$booking_html;
												$mail->Body    	.= 	self::MOBILE_FOOTER;
												$mail->send();
											}
									}
								// 6 - HOMESTAY Department
								if($job_reference_details['is_homestay'] == '1')
									{
										$query = "SELECT * from variable__university where charge_acc_id = '".$job_reference_details['charge_acc_id']."'";
										$database = new database;
										$result = $database->query($query);
										$row = mysqli_fetch_assoc($result);
								
										if($row['homestay_email'] != '')
											{
												$mail 			= new PHPMailer();
												$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
												
												
												//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
												//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
												$emails = explode(',', $row['homestay_email']);
												foreach($emails as $email){
													$mail->addAddress($email,  ''.$chargeaccount_details['account_name'].' '.$row['homestay_label'].'');
												}
												$mail->Body    	.=	self::MOBILE_HEADER;
												if($job_reference_details['under_18'] == '1')
													{
														$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' EDITED';
													}
												else
													{
														$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' EDITED';
													}
												
												$mail->Body    	.= 	'<h3>BOOKING EDITED</h3>';
												$mail->Body  	.=	'The following booking for under 18 student of '.$chargeaccount_details['account_name'].' has been edited.<br/><br/>';
												$mail->Body    	.= 	$booking_html;
												$mail->Body    	.= 	self::MOBILE_FOOTER;
												$mail->send();
											}
									}	
							}
					}
				
// 	8 	ON BOOKING CANCELLATION EMAIL for Students
				if($process_type == '8')
					{
						//Send to student
						$mail 			= new PHPMailer();
						$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
						
						
						//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
						//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
						$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
						$mail->Body    	.=	self::MOBILE_HEADER;
						if($job_reference_details['under_18'] == '1')
							{
								$mail->Subject 	= 	'BOOKING CANCELLED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, BOOKING CANCELLED';
							}
						else
							{
								$mail->Subject 	= 	'BOOKING CANCELLED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'),';
							}
						
						$mail->Body    	.= 	'<h3>BOOKING CANCELLED </h3>';
						$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].',</strong><br/><br/>';
						$mail->Body  	.=	'Your arrival booking request has been cancelled due to one of the reasons stated in the table below.<br/>
													
													<OL>
													<li> You have used the wrong booking form.<br>
													<li> Booking has been cancelled as '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' does not meet enrolment criteria.<br/>
													<li> You have requested your airport transfer booking less than four (4) days prior to your arrival day.<br/>
													<li> You have requested to cancel this booking.<br/>
													<li> You are not a new international student.<br>
													<li> You have used this free service before.<br/>
													<li> You are not entitled to a complimentary Airport Transfer.<br/>												
													<li> You did not supply a valid flight number.<br/>
													<li> You did not supply a correct destination address.<br/>
													<li> You are not an exchange/inter campus exchange or study abroad student.<br/>
													<li> You are arriving with too many bags.<br/>
													<li> You have entered your booking more than once.<br/>
													<li> You have not accepted your offer.<br/>
													<li> You have not enrolled in units.<br/>
													<li> You have selected more that two (2) passengers, and you are undergraduate or postgraduate student.<br/>
													<li> Some of the above and or other important information is missing.<br/><br/>
													</OL>';
													if($job_reference_details['charge_acc_id'] == '15') //For RMIT
														{
															$mail->Body  	.=	'Should you require further assistance, please email RMIT at isarrival@rmit.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '1035') //For VU  
														{
															$mail->Body  	.=	'<b>Please note:</b><br> Only VU international students with a student visa (subclass 500) are eligible for this service.<br><br> If you are not an international student, please explore alternative transportation options below&#58; <br>Melbourne Airport https://www.melbourneairport.com.au/getting-to-from-the-airport and Avalon Airport https://avalonairport.com.au/getting-here/. <br><br>
																Should you require further assistance, please contact VU at International.Arrivals@vu.edu.au<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '19') //For Abroad  
														{
															$mail->Body  	.=	'Should you require further assistance, please contact us at aero@aerocorporatecars.com<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '55') //For College 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a student studying an undergraduate or postgraduate course. You need to go to https://aerocorporatecars.com/Monash.php to enter your booking. <br><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash College at arrival.services@monashcollege.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '9') //For Connect 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a Monash College student starting one of the following courses:<br>
																				Monash University Diplomas<br>
																				Monash University Foundation Year (MUFY)<br>
																				Monash English.<br>
																				You will need to go to https://aerocorporatecars.com/Monash_College.php to enter your booking. <br><br>
																				If you are <b>not</b> a Monash College student, you will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash University at airportpickup@monash.edu.<br/><br/>';
														}
						$mail->Body  	.=	'Copy of your cancelled - declined booking request is as follows';
						$mail->Body    	.= 	$booking_html;
						$mail->Body    	.= 	self::MOBILE_FOOTER;
						$mail->send();
								
						// 2 - CANCELATION EMAIL TO ON BEHALF OF
						if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['on_behalf_email'],  ''.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].'');
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'BOOKING CANCELLED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, BOOKING CANCELLED';
									}
								else
									{
										$mail->Subject 	= 	'BOOKING CANCELLED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'),';
									}
								
								$mail->Body    	.= 	'<h3>BOOKING CANCELLED </h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].',</strong><br/><br/>';
								$mail->Body  	.=	'Your arrival booking request has been cancelled due to one of the reasons stated in the table below.<br/>
													
													<OL>
													<li> You have used the wrong booking form.<br>
													<li> Booking has been cancelled as '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' does not meet enrolment criteria.<br/>
													<li> You have requested your airport transfer booking less than four (4) days prior to your arrival day.<br/>
													<li> You have requested to cancel this booking.<br/>
													<li> You are not a new international student.<br>
													<li> You have used this free service before.<br/>
													<li> You are not entitled to a complimentary Airport Transfer.<br/>												
													<li> You did not supply a valid flight number.<br/>
													<li> You did not supply a correct destination address.<br/>
													<li> You are not an exchange/inter campus exchange or study abroad student.<br/>
													<li> You are arriving with too many bags.<br/>
													<li> You have entered your booking more than once.<br/>
													<li> You have not accepted your offer.<br/>
													<li> You have not enrolled in units.<br/>
													<li> You have selected more that two (2) passengers, and you are undergraduate or postgraduate student.<br/>
													<li> Some of the above and or other important information is missing.<br/><br/>
													</OL>';
													if($job_reference_details['charge_acc_id'] == '15') //For RMIT
														{
															$mail->Body  	.=	'Should you require further assistance, please email RMIT at isarrival@rmit.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '1035') //For VU  
														{
															$mail->Body  	.=	'<b>Please note:</b><br> Only VU international students with a student visa (subclass 500) are eligible for this service.<br><br> If you are not an international student, please explore alternative transportation options below&#58; <br>Melbourne Airport https://www.melbourneairport.com.au/getting-to-from-the-airport and Avalon Airport https://avalonairport.com.au/getting-here/. <br><br>
																Should you require further assistance, please contact VU at International.Arrivals@vu.edu.au<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '19') //For Abroad  
														{
															$mail->Body  	.=	'Should you require further assistance, please contact us at aero@aerocorporatecars.com<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '55') //For College 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a student studying an undergraduate or postgraduate course. You need to go to https://aerocorporatecars.com/Monash.php to enter your booking. <br><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash College at arrival.services@monashcollege.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '9') //For Connect 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a Monash College student starting one of the following courses:<br>
																				Monash University Diplomas<br>
																				Monash University Foundation Year (MUFY)<br>
																				Monash English.<br>
																				You will need to go to https://aerocorporatecars.com/Monash_College.php to enter your booking. <br><br>
																				If you are <b>not</b> a Monash College student, you will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash University at airportpickup@monash.edu.<br/><br/>';
														}
								$mail->Body  	.=	'Copy of your cancelled - declined booking request is as follows';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 3 - TO GUARDIAN
						if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
							{
								// Do Nothing
							}	
						// 4 - CANCELLATION EMAIL TO AGENT
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['agents_email'],  $job_reference_details['agents_name']);
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'BOOKING CANCELLED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, BOOKING CANCELLED';
									}
								else
									{
										$mail->Subject 	= 	'BOOKING CANCELLED. Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'),';
									}
								
								$mail->Body    	.= 	'<h3>BOOKING CANCELLED</h3>';
								$mail->Body    	.= 	'<strong>'.$job_reference_details['agents_name'].',</strong><br/><br/>';
								$mail->Body  	.=	'Your student airport booking request has been cancelled due to one of the reasons stated in the table below.<br/><br/>
													
													<OL>
													<li> You have used the wrong booking form.<br>
													<li> Booking has been cancelled as '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' does not meet enrolment criteria.<br/>
													<li> You have requested your airport transfer booking less than four (4) days prior to your arrival day.<br/>
													<li> You have requested to cancel this booking.<br/>
													<li> You are not a new international student.<br>
													<li> You have used this free service before.<br/>
													<li> You are not entitled to a complimentary Airport Transfer.<br/>												
													<li> You did not supply a valid flight number.<br/>
													<li> You did not supply a correct destination address.<br/>
													<li> You are not an exchange/inter campus exchange or study abroad student.<br/>
													<li> You are arriving with too many bags.<br/>
													<li> You have entered your booking more than once.<br/>
													<li> You have not accepted your offer.<br/>
													<li> You have not enrolled in units.<br/>
													<li> You have selected more that two (2) passengers, and you are undergraduate or postgraduate student.<br/>
													<li> Some of the above and or other important information is missing.<br/><br/>
													</OL>';
													if($job_reference_details['charge_acc_id'] == '15') //For RMIT
														{
															$mail->Body  	.=	'Should you require further assistance, please email RMIT at isarrival@rmit.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '1035') //For VU  
														{
															$mail->Body  	.=	'<b>Please note:</b><br> Only VU international students with a student visa (subclass 500) are eligible for this service.<br><br> If you are not an international student, please explore alternative transportation options below&#58; <br>Melbourne Airport https://www.melbourneairport.com.au/getting-to-from-the-airport and Avalon Airport https://avalonairport.com.au/getting-here/. <br><br>
																Should you require further assistance, please contact VU at International.Arrivals@vu.edu.au<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '19') //For Abroad  
														{
															$mail->Body  	.=	'Should you require further assistance, please contact us at aero@aerocorporatecars.com<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '55') //For College 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a student studying an undergraduate or postgraduate course. You need to go to https://aerocorporatecars.com/Monash.php to enter your booking. <br><br>
																				You will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash College at arrival.services@monashcollege.edu.au.<br/><br/>';
														}
													if($job_reference_details['charge_acc_id'] == '9') //For Connect 
														{
															$mail->Body  	.=	'<b>Please note:</b><br>
																				If you are a Monash College student starting one of the following courses:<br>
																				Monash University Diplomas<br>
																				Monash University Foundation Year (MUFY)<br>
																				Monash English.<br>
																				You will need to go to https://aerocorporatecars.com/Monash_College.php to enter your booking. <br><br>
																				If you are <b>not</b> a Monash College student, you will now have to make your own transport arrangement to your pre-arranged destination.<br/><br/>Should you require further assistance, please email Monash University at airportpickup@monash.edu.<br/><br/>';
														}
								$mail->Body  	.=	'Copy of your cancelled - declined booking request is as follows';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 5 - UNDER 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								// Do Nothing
							}
						// 6 - HOMESTAY Department
						if($job_reference_details['is_homestay'] == '1')
							{
								// Do Nothing
							}	
						// 7 - TO UNIVERSITY
						$admin_array = $chargeaccounts->getAllChargeAccountContacts($job_reference_details['charge_acc_id']);
						foreach($admin_array AS $admin)
							{
								if($admin['email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$mail->addAddress($admin['email'],  ''.$admin['title'].' '.$admin['fname'].' '.$admin['lname'].'');
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Booking ID - '.$job_reference_details['j1_id'].' CANCELLED';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Booking ID - '.$job_reference_details['j1_id'].' CANCELLED';
											}
										
										$mail->Body    	.= 	'<h3>BOOKING CANCELLED</h3>';
										$mail->Body  	.=	'The following student booking has been Cancelled.<br/><br/>
															Please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
								
						// 5 - UNDER 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								// 3 - TO GUARDIAN
								if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$mail->addAddress($job_reference_details['std_guar_email'],  ''.$job_reference_details['std_guar_title'].' '.$job_reference_details['std_guar_fname'].' '.$job_reference_details['std_guar_lname'].'');
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, CANCELLED';
											}
										else
											{
												$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), CANCELLED';
											}
										
										$mail->Body    	.= 	'<h3>BOOKING CANCELLED</h3>';
										$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_guar_title'].' '.$job_reference_details['std_guar_fname'].' '.$job_reference_details['std_guar_lname'].',</strong><br/><br/>';
										$mail->Body  	.=	'The following student booking has been Cancelled.<br/><br/>
															Please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}	
								// 5 To UNDER 18 Department
								$query = "SELECT * from variable__university where charge_acc_id = '".$job_reference_details['charge_acc_id']."'";
								$database = new database;
								$result = $database->query($query);
								$row = mysqli_fetch_assoc($result);
						
								if($row['under_18_email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$emails = explode(',', $row['under_18_email']);
										foreach($emails as $email){
											$mail->addAddress($email,  ''.$chargeaccount_details['account_name'].' UNDER 18');
										}
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' CANCELLED';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' CANCELLED';
											}
										$mail->Body    	.= 	'<h3>BOOKING CANCELLED</h3>';
										$mail->Body  	.=	'The following student booking has been Cancelled.<br/><br/>
															Please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
						// 6 - HOMESTAY Department
						if($job_reference_details['is_homestay'] == '1')
							{
								$query = "SELECT * from variable__university where charge_acc_id = '".$job_reference_details['charge_acc_id']."'";
								$database = new database;
								$result = $database->query($query);
								$row = mysqli_fetch_assoc($result);
						
								if($row['homestay_email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$emails = explode(',', $row['homestay_email']);
										foreach($emails as $email){
											$mail->addAddress($email,  ''.$chargeaccount_details['account_name'].' '.$row['homestay_label'].'');
										}
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' CANCELLED';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' CANCELLED';
											}
										
										$mail->Body    	.= 	'<h3>BOOKING CANCELLED</h3>';
										$mail->Body  	.=	'The following student booking has been Cancelled.<br/><br/>
															Please review the booking details and let us know immediately if they are not accurate.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}	
					}				
				
// 	9 	ON NO SHOW

				if($process_type == '9')
					{
						//Send to student
						$mail 			= new PHPMailer();
						$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
						
						
						//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
						//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
						$mail->addAddress($job_reference_details['std_email'],  ''.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].'');
						$mail->Body    	.=	self::MOBILE_HEADER;
						$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), NO SHOW';
						$mail->Body    	.= 	'<h3>DRIVER REPORTED - NO SHOW</h3>';
						$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].',</strong><br/><br/>';
						$mail->Body  	.=	'For the following booking, our driver has reported No Show for student.<br/><br/>';
						$mail->Body    	.= 	$booking_html;
						$mail->Body    	.= 	self::MOBILE_FOOTER;
						$mail->send();
								
						// 2 - TO ON BEHALF OF
						if($job_reference_details['on_behalf'] == '1' && $job_reference_details['on_behalf_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->FromName = 'Universities';
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['on_behalf_email'],  ''.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].'');
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, NO SHOW';
									}
								else
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), NO SHOW';
									}
								
								$mail->Body    	.= 	'<h3>DRIVER REPORTED - NO SHOW</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['on_behalf_title'].' '.$job_reference_details['on_behalf_fname'].' '.$job_reference_details['on_behalf_lname'].',</strong><br/><br/>';
								$mail->Body  	.=	'For the following booking, our driver has reported No Show for student.<br/><br/>';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 3 - TO GUARDIAN
						if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
							{
								// Do Nothing
							}	
						// 4 - TO AGENT
						if($job_reference_details['has_agent'] == '1' && $job_reference_details['agents_email'] != '')
							{
								$mail 			= new PHPMailer();
								$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
								
								
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
								//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
								$mail->addAddress($job_reference_details['agents_email'],  $job_reference_details['agents_name']);
								$mail->Body    	.=	self::MOBILE_HEADER;
								if($job_reference_details['under_18'] == '1')
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, NO SHOW';
									}
								else
									{
										$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), NO SHOW';
									}
								
								$mail->Body    	.= 	'<h3>DRIVER REPORTED - NO SHOW</h3>';
								$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['agents_name'].',</strong><br/><br/>';
								$mail->Body  	.=	'For the following booking, our driver has reported No Show for student.<br/><br/>';
								$mail->Body    	.= 	$booking_html;
								$mail->Body    	.= 	self::MOBILE_FOOTER;
								$mail->send();
							}
						// 7 - TO UNIVERSITY
						$admin_array = $chargeaccounts->getAllChargeAccountContacts($job_reference_details['charge_acc_id']);
						foreach($admin_array AS $admin)
							{
								if($admin['email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$mail->addAddress($admin['email'],  ''.$admin['title'].' '.$admin['fname'].' '.$admin['lname'].'');
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Booking ID - '.$job_reference_details['j1_id'].' NO SHOW';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Booking ID - '.$job_reference_details['j1_id'].' NO SHOW';
											}
										
										$mail->Body    	.= 	'<h3>DRIVER REPORTED - NO SHOW</h3>';
										$mail->Body  	.=	'For the following booking, our driver has reported No Show for student.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
								
						// 5 - UNDER 18 Department
						if($job_reference_details['under_18'] == '1')
							{
								// 3 - TO GUARDIAN
								if($job_reference_details['under_18'] == '1' && $job_reference_details['stu_guar_email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$mail->addAddress($job_reference_details['std_guar_email'],  ''.$job_reference_details['std_guar_title'].' '.$job_reference_details['std_guar_fname'].' '.$job_reference_details['std_guar_lname'].'');
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].') UNDER 18, NO SHOW';
											}
										else
											{
												$mail->Subject 	= 	'Booking ID - '.$job_reference_details['j1_id'].', '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' ('.$job_reference_details['std_id'].'), NO SHOW';
											}
										
										$mail->Body    	.= 	'<h3>DRIVER REPORTED - NO SHOW</h3>';
										$mail->Body    	.= 	'<strong>Dear '.$job_reference_details['std_guar_title'].' '.$job_reference_details['std_guar_fname'].' '.$job_reference_details['std_guar_lname'].',</strong><br/><br/>';
										$mail->Body  	.=	'For the following booking, our driver has reported No Show for student.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}	
								// 5 To UNDER 18 Department
								$query = "SELECT * from variable__university where charge_acc_id = '".$job_reference_details['charge_acc_id']."'";
								$database = new database;
								$result = $database->query($query);
								$row = mysqli_fetch_assoc($result);
						
								if($row['under_18_email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$emails = explode(',', $row['under_18_email']);
										foreach($emails as $email){
											$mail->addAddress($email, ''.$chargeaccount_details['account_name'].' UNDER 18');
										}
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' NO SHOW';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' NO SHOW';
											}
										
										$mail->Body    	.= 	'<h3>DRIVER REPORTED - NO SHOW</h3>';
										$mail->Body  	.=	'For the following booking, our driver has reported No Show for student.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}
						// 6 - HOMESTAY Department
						if($job_reference_details['is_homestay'] == '1')
							{
								$query = "SELECT * from variable__university where charge_acc_id = '".$job_reference_details['charge_acc_id']."'";
								$database = new database;
								$result = $database->query($query);
								$row = mysqli_fetch_assoc($result);
						
								if($row['homestay_email'] != '')
									{
										$mail 			= new PHPMailer();
										$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
										
										
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'header_image');
										//$mail->AddEmbeddedImage('Images/logo_Allied.png', 'footer_image');
										$emails = explode(',', $row['homestay_email']);
										foreach($emails as $email){
											$mail->addAddress($email,  ''.$chargeaccount_details['account_name'].' '.$row['homestay_label'].'');
										}
										$mail->Body    	.=	self::MOBILE_HEADER;
										if($job_reference_details['under_18'] == '1')
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].' UNDER 18, Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' NO SHOW';
											}
										else
											{
												$mail->Subject 	= 	''.$job_reference_details['std_id'].' '.$job_reference_details['std_title'].' '.$job_reference_details['std_fname'].' '.$job_reference_details['std_lname'].', Pick-up Date '.formatDate($j1_details['job_date'], 12).' Booking ID - '.$job_reference_details['j1_id'].' NO SHOW';
											}
										
										$mail->Body    	.= 	'<h3>DRIVER REPORTED - NO SHOW</h3>';
										$mail->Body  	.=	'For the following booking, our driver has reported No Show for student.<br/><br/>';
										$mail->Body    	.= 	$booking_html;
										$mail->Body    	.= 	self::MOBILE_FOOTER;
										$mail->send();
									}
							}	
					}								
			}
		public function testEmail()
			{
				$mail 			= new PHPMailer();
				$mail->addReplyTo('aero@aerocorporatecars.com', 'Universities');
				
				$mail->addAddress('felix@apex.host', 'Felix O');
				// $mail->addAddress('bbobbymmahaaalaannaabis@gmghail.comn',  'Anirvan Mahalanabis'); // put extra n at end of Bobby's email
				//$mail->AddEmbeddedImage('/var/www/bookingsglobal/Images/logo_Allied.png', 'header_image');
				//$mail->AddEmbeddedImage('/var/www/bookingsglobal/Images/logo_Allied.png', 'footer_image');
				$mail->Body    	.=	self::MOBILE_HEADER;
				$mail->Body    	.= 	self::MOBILE_FOOTER;
				$mail->send();
				//$mime_message = $mail->CreateBody(); //Retrieve the message content
				//echo $mime_message; // Echo it to the screen or send it using whatever method you want
			}
	}
?>
