<?php global $access; if($access != 1){ exit("Direct Access not allowed"); } ?>

			  <div class="ConfTitleBG">
                <p class="p-1">Reservation Details</p>
              </div>
              <table class="table ConfResDetailTable">
                <thead></thead>
                <tbody>
                  <tr>
                    <td class="ConfResDetLeft">Itinerary ID</td>
                    <td id="ConfResDetRight"><?php echo $itinerary_id; ?></td>
                  </tr>
                  <tr>
                    <td class="ConfResDetLeft">Room Type:</td>
                    <td id="ConfResDetRight"><?php echo $roomnamedescription; ?></td>
                  </tr>
                  <tr>
                    <td class="ConfResDetLeft">Check-in</td>
                    <td id="ConfResDetRight"><?php echo $arrivalDate; ?></td>
                  </tr>
                  <tr>
                    <td class="ConfResDetLeft">Check-out</td>
                    <td id="ConfResDetRight"><?php echo $departureDate; ?></td>
                  </tr>
                  <tr>
                    <td colspan="2" class="ConfResDetLeft confresdetleft-1">Guest:</td>
                  </tr>
                  <tr>
                    <td class="ConfResDetLeft">Adults</td>
                    <td id="ConfResDetRight"><?php echo $totaladults; ?></td>
                  </tr>
                  <tr>
                    <td class="ConfResDetLeft">Children</td>
                    <td id="ConfResDetRight"><?php echo $totalchildren; ?></td>
                  </tr>
                </tbody>
              </table>
              <div class="ConfTitleBG">
                <p>Rates per&nbsp;Room</p>
              </div>
              <table class="table ConfResDetailTable">
                <thead></thead>
                <tbody>
			  <?php
				$taxsum         = '0.00';
				$totalroomarray = '0.00';
				for ($ki = 1; $ki <= $totalrooms; $ki++) {
					$valorki      = $ki - 1;
					$prarray      = $arraypriceroom[$valorki]['room_price_total'];
					$valorprarray = strval($prarray);
					$valorprarray = number_format($valorprarray, 2, '.', '');
					$taxarray     = $arraypriceroom[$valorki]['taxfee'];
					$taxarray     = strval($taxarray);
					$allprarray   = $arraypriceroom[$valorki]['allrooms_pricetotal'];
					$allprarray   = strval($allprarray);
					$totalperoom  = $valorprarray*$finaltotal;
					echo "
									<tr>
										<td class='ConfResDetLeft'>Room $ki</td>
										<td id='ConfResDetRight'>".$currencysymbol."".number_format($totalperoom, 2, '.', '')."</td>
									</tr>";
					$taxsum         = $taxsum + $taxarray;
					$totalroomarray = $totalroomarray + $allprarray;
					$finalprice = $totalroomarray*$finaltotal;           
				}
				$taxarraytotal = $taxsum*$finaltotal;
			  ?>
                </tbody>
              </table>
              <div class="ConfSubTitle">
                <p>(excluding tax recovery charges and service fees)</p>
              </div>
              <table class="table ConfResDetailTable">
                <thead></thead>
                <tbody>
                  <tr>
                    <td class="ConfResDetLeft">Tax Recovery Charges and Service Fees</td>
                    <td id="ConfResDetRight"><?php echo $currencysymbol . number_format($taxarraytotal, 2, '.', ''); ?></td>
                  </tr>
                  <tr>
                    <td class="ConfResDetLeft">Total Charges</td>
                    <td id="ConfResDetRight"><?php echo $currencysymbol . number_format($finalprice, 2, '.', ''); ?></td>
                  </tr>
                </tbody>
              </table>
              <div class="ConfTitleBG">
                <p>Cancellation Policy</p>
              </div>
              <div class="ConfTherms">
                <p><?php echo $cancelpolicy; ?></p>
              </div>