<!DOCTYPE html>
<html lang="en-US">
	<head>
		<meta charset="utf-8">
	</head>

	<style type="text/css">
		body{
			padding: 0px;
			margin: 10px;
			font-size: 15px;
		}
		b{
			font-weight: 700;
		}
		table {
    border-collapse: collapse;
    width: 600px;
    font-size: 11px;
}

table, th, td {
    border: 1px solid #dcd9d9;
    padding-left: 5px;
    padding: 5px;

}
td{

}

td:nth-child(1){
    border-right:none;
}



.page-break {
    page-break-after: always;
}




	</style>
	<body style="font-family: sans-serif;">


	<?php if(isset($preview)): ?>

                      <a style="display: inline-block;
                      float: right;
                          background-color: #CC9900;

                              border-radius: 0;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 300;
    outline: 0;
    border: 1px solid transparent;
    padding: 10px 40px;
    right: 10px;
    position: fixed;
    margin-bottom: 0;
    max-width: 100px;
    min-width: 100px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;" href="<?php echo URL('/admin/bookings/confirmation/send'); ?>/<?php echo $confirmation->id; ?>" class="btn btn-green">Send</a>

                 <a style="display: inline-block;
                      float: right;
                          background-color: #CC9900;

                              border-radius: 0;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 300;
    outline: 0;
    border: 1px solid transparent;
    padding: 10px 40px;
    max-width: 100px;
    min-width: 100px;
    top:70px;
    right: 10px;
    position: fixed;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;" href="<?php echo URL('/admin/bookings/confirmation/download'); ?>/<?php echo $confirmation->id; ?>" class="btn btn-green">Download</a>


                 
	<?php endif; ?>


<p>
Dear <?php echo $client->name; ?>,
<br>
<br>
Warm Greetings from All Travels Maldives!
<br>
<br>
We are very pleased to confirm your booking at <?php echo $booking->hotel_name; ?>.
<br>
<br>
Booking confirmation attached for your kind review. 
<br>
<br>



		<div style="text-align:center; padding:10px; width: 100%; font-weight:bold; background:#d4a244; font-size:14px; color:#fff; margin-top:15px; margin-bottom:15px;font-family: sans-serif;">BOOKING CONFIRMATION</div>
		

		<div style="width: 100%;">

		<table style="padding:5px; margin: 0 auto; ">
			<tr>
				<td style="width: 32%;"><b>Booking ID.</b></td> <td><?php echo $booking->booking_no; ?></td>
			</tr>
			<tr>
				<td><b>Resort/ Hotel Confirmation No.</b></td> <td><?php echo $confirmation->confirmation_no; ?></td>
			</tr>
			<tr>
				<td><b>Resort/ Hotel</b></td> <td><?php echo $booking->hotel_name; ?></td>
			</tr>
			
			<tr>
				<td><b>Total No. of Pax</b></td> <td><?php echo $total_pax; ?></td>
			</tr>

			<tr>
				<td><b>Total No. of Rooms</b></td> <td><?php echo $total_rooms; ?></td>
			</tr>

			<?php
			$count = 0;
			?>

			<?php foreach($booking_rooms as $room): ?>
			<?php
			$count = $count + 1;
			?>
			<tr>
				<td><?php echo '<b>ROOM '.$count.'</b> ' .$room->room_name; ?><br>
				</td> <td>
				<b>Check-in:</b>
				 <?php echo Carbon\Carbon::parse($room->arrival)->format('d-M-Y'); ?> - <b>Check-out:</b>
				<?php echo Carbon\Carbon::parse($room->departure)->format('d-M-Y'); ?>

				 - <b>No. of Nights:</b>
				<?php echo $room->nights_count; ?>

				<br>
				<b>Room Configuration:</b>
					<?php echo $room->room_configuration; ?>

				 - <b>Meal Plan:</b>
				<?php echo $room->meal_plan; ?>

				<br>

				<b>Customers</b>
				<?php foreach($room->clients as $client): ?>

						<?php echo $client->title; ?><?php echo $client->name; ?>(<?php echo $client->passport_no; ?>) - <?php echo $client->nationality; ?> -  <?php echo $client->category; ?><br>
						
				<?php endforeach; ?>


				
				</td>

				
			</tr>
	
			<?php endforeach; ?>

			<tr>
				<td><b>Special Requirements</b></td> <td> <?php echo $booking->special_request; ?></td>
			</tr>
	

			<tr>
				<td><b>Transfer Details</b></td> <td> <?php echo $confirmation->transfer_time; ?> - <?php echo $confirmation->transfer_location; ?> - <?php echo $confirmation->transfer_boat_name; ?></td>
			</tr>


			<tr>
				<td><b>Remarks</b></td> <td> <?php echo $booking->remarks; ?> </td>
			</tr>

			<tr>
				<td><b>Reservation made by</b></td> <td><?php echo AppHelper::getUser($booking->user_id); ?></td>
			</tr>
		
		</table>

		</div>



<br>
<br>

Note: ID cards should be submitted to the Resort\ Hotel on Arrival.
<br>
<br>
Kindly please check and let us know if there are any discrepancies.
</p>

<?php echo Auth::user()->signature; ?>


	</body>
</html>
