<div class="passengers">
	$[repeat:passengers]
		<div class="passenger">Passenger: Surname: <b>${lastName}</b> First name: <b>${firstName}</b></div><br/>
	$[repeat]
</div>
<table border="1" width="100%">
	<tr>
		<th>Airline</th>
		<th>Departure</th>
		<th>Arrival</th>
		<th>Flight №</th>
		<th>Class</th>
		<th>Duration</th>
	</tr>
	$[repeat:segments]
		<tr>
			<td>${airline}
				$[if:airlineLocator]<br/>Airline confirmation: <b>${airlineLocator}</b>$[if]
				$[if:operatingAirline]<br/>Рейс выполняется а/к: "${operatingAirline}"$[if]
			</td>
			<td>${departCity}, <b>${departAirport}</b>$[if:departTerminal]<br/>Terminal: <b>${departTerminal}</b>$[if]<br/>${departDate} <b>${departTime}</b></td>
			<td>${arriveCity}, <b>${arriveAirport}</b>$[if:arriveTerminal]<br/>Terminal: <b>${arriveTerminal}</b>$[if]<br/>${arriveDate} <b>${arriveTime}</b></td>
			<td style="text-align:center;">${airlineCode}${flightNumber}</td>
			<td style="text-align:center;">${classOfService}</td>
			<td style="text-align:center;">${duration}</td>
		</tr>
	$[repeat]
</table>
<div id="price">
	<h3>Price info</h3>
	<table border="1" width="100%">
		<tr>
			$[if:showTariffCols]
				<th>Fare<br/>(per person)</th>
				$[if:showFeeCol]
					<th>Taxes and fees (airline)<br/>(per person)</th>
					<th>Service fee<br/>(per person)</th>
				$[if]
				$[ifnot:showFeeCol]
					<th>Taxes and fees<br/>(per person)</th>
				$[ifnot]
			$[if]
			<th>Passengers</th>
			<th>Total cost</th>
		</tr>
		$[if:count_ADULT]
            <tr>
                $[if:showTariffCols]
                    <td style="text-align:right;">${tariff_ADULT}</td>
                    <td style="text-align:right;">${taxes_ADULT}</td>
                    $[if:showFeeCol]
                        <td style="text-align:right;">${fee_ADULT}</td>
                    $[if]
                $[if]
                <td style="text-align:right;">Adults: ${count_ADULT} person</td>
                <td style="text-align:right;">${total_ADULT} ${currency}</td>
            </tr>
		$[if]
		$[if:count_CHILD]
			<tr>
				$[if:showTariffCols]
					<td style="text-align:right;">${tariff_CHILD}</td>
					<td style="text-align:right;">${taxes_CHILD}</td>
					$[if:showFeeCol]
						<td style="text-align:right;">${fee_CHILD}</td>
					$[if]
				$[if]
				<td style="text-align:right;">Children: ${count_CHILD} person</td>
				<td style="text-align:right;">${total_CHILD} ${currency}</td>
			</tr>
		$[if]
		$[if:count_INFANT]
			<tr>
				$[if:showTariffCols]
					<td style="text-align:right;">${tariff_INFANT}</td>
					<td style="text-align:right;">${taxes_INFANT}</td>
					$[if:showFeeCol]
						<td style="text-align:right;">${fee_INFANT}</td>
					$[if]
				$[if]
				<td style="text-align:right;">Infants: ${count_INFANT} person</td>
				<td style="text-align:right;">${total_INFANT} ${currency}</td>
			</tr>
		$[if]
		$[if:count_INFANT_WITH_SITE]
			<tr>
				$[if:showTariffCols]
					<td style="text-align:right;">${tariff_INFANT_WITH_SITE}</td>
					<td style="text-align:right;">${taxes_INFANT_WITH_SITE}</td>
					$[if:showFeeCol]
						<td style="text-align:right;">${fee_INFANT_WITH_SITE}</td>
					$[if]
				$[if]
				<td style="text-align:right;">Infants with seat: ${count_INFANT_WITH_SITE} person</td>
				<td style="text-align:right;">${total_INFANT_WITH_SITE} ${currency}</td>
			</tr>
		$[if]
		$[if:count_YOUTH]
            <tr>
                $[if:showTariffCols]
                    <td style="text-align:right;">${tariff_YOUTH}</td>
                    <td style="text-align:right;">${taxes_YOUTH}</td>
                    $[if:showFeeCol]
                        <td style="text-align:right;">${fee_YOUTH}</td>
                    $[if]
                $[if]
                <td style="text-align:right;">Youths: ${count_YOUTH} person</td>
                <td style="text-align:right;">${total_YOUTH} ${currency}</td>
            </tr>
        $[if]
        $[if:count_SENIOR]
            <tr>
                $[if:showTariffCols]
                    <td style="text-align:right;">${tariff_SENIOR}</td>
                    <td style="text-align:right;">${taxes_SENIOR}</td>
                    $[if:showFeeCol]
                        <td style="text-align:right;">${fee_SENIOR}</td>
                    $[if]
                $[if]
                <td style="text-align:right;">Seniors: ${count_SENIOR} person</td>
                <td style="text-align:right;">${total_SENIOR} ${currency}</td>
            </tr>
        $[if]
		$[if:showTariffCols]
			<tr>
				<td colspan="$[if:showFeeCol]4$[if]$[ifnot:showFeeCol]3$[ifnot]" style="text-align:right;font-weight:bold;">Total taxes and fees</td>
				<td style="text-align:right;">${totalTaxesFee} ${currency}</td>
			</tr>
		$[if]
        $[if:withInsurance]
            <tr>
                <td $[if:showTariffCols]colspan="$[if:showFeeCol]4$[if]$[ifnot:showFeeCol]3$[ifnot]"$[if] style="text-align:right;font-weight:bold;">Страховка</td>
                <td style="text-align:right;">${insurancePrice} ${currency}</td>
            </tr>
        $[if]		
		<tr>
			<td $[if:showTariffCols]colspan="$[if:showFeeCol]4$[if]$[ifnot:showFeeCol]3$[ifnot]"$[if] style="text-align:right;font-weight:bold;">Total cost</td>
			<td style="text-align:right;">${total} ${currency}</td>
		</tr>
	</table>
</div>