<div class="passengers">
	$[repeat:passengers]
		<div class="passenger">Passenger: Second name: <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>
        <th>Fare basis</th>
	</tr>
	$[repeat:segments]
		<tr>
			<td>${airline}
				$[if:airlineLocator]<br/>Airline confirmation: <b>${airlineLocator}</b>$[if]
				$[if:operatingAirline]<br/>Operated by: "${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>
            <td>
                $[if:brandedFareName]<b>${brandedFareName}</b><br/>$[if]
                $[if:mealService]Meal service: ${mealService}<br/>$[if]
                $[if:businessLounge]Business lounge<br/>$[if]
                $[if:classUpgrade]Class upgrade<br/>$[if]
                $[if:extraMileage]Additional miles<br/>$[if]
                $[if:priorityBoarding]Priority boarding<br/>$[if]
                $[if:seatChoice]Seat choice<br/>$[if]
                $[if:transferIncluded]Transfer included<br/>$[if]
                $[if:luggageInfo]Charge-free baggage: $[if:luggageInfoPieces] ${luggageInfoPieces},$[if] $[if:luggageInfoWeight]Weight (kg): ${luggageInfoWeight},$[if] $[if:luggageInfoSize]Size (cm): ${luggageInfoSize}$[if]$[if]
                $[if:luggageInfoGDS]$[if:luggageInfoQuantity]Charge-free baggage:  ${luggageInfoQuantity}$[if]$[if:luggageInfoUnit]  ${luggageInfoUnit} $[if]$[if]<br/>
                $[if:paidLuggageInfo]Paid baggage: $[if:paidLuggageInfoPieces] ${paidLuggageInfoPieces},$[if] $[if:paidLuggageInfoWeight]Weight (kg): ${paidLuggageInfoWeight},$[if] $[if:paidLuggageInfoSize]Size (cm): ${paidLuggageInfoSize},$[if] $[if:paidLuggageInfoPrice]Price: ${paidLuggageInfoPrice}$[if]$[if]<br/>
                $[if:cabinLuggageInfo]Charge-free cabin baggage: $[if:cabinLuggageInfoPieces] ${cabinLuggageInfoPieces},$[if] $[if:cabinLuggageInfoWeight]Weight (kg): ${cabinLuggageInfoWeight},$[if] $[if:cabinLuggageInfoSize]Size (cm): ${cabinLuggageInfoSize}$[if]$[if]<br/>
                $[if:paidCabinLuggageInfo]Paid cabin baggage: $[if:paidCabinLuggageInfoPieces] ${paidCabinLuggageInfoPieces},$[if] $[if:paidCabinLuggageInfoWeight]Weight (kg): ${paidCabinLuggageInfoWeight},$[if] $[if:paidCabinLuggageInfoSize]Size (cm): ${paidCabinLuggageInfoSize},$[if] $[if:paidCabinLuggageInfoPrice]Price: ${paidCabinLuggageInfoPrice}$[if]$[if]<br/>
            </td>
		</tr>
	$[repeat]
</table>
$[repeat:refundAndExchangeProperties]
    <div>
        <br/>
        $[if:refundBefore]
            <b>Refund:</b> ${passengerType}: before departure (fine amount) - ${refundBefore}<br/>
        $[if]
        $[if:notRefundBefore]
            <b>Refund:</b> ${passengerType}: before departure N/A<br/>
        $[if]
        $[if:refundAfter]
            <b>Refund:</b> ${passengerType}: after departure (fine amount) - ${refundAfter}<br/>
        $[if]
        $[if:notRefundAfter]
            <b>Refund:</b> ${passengerType}: after departure  N/A<br/>
        $[if]
        $[if:exchangeBefore]
             <b>Exchange:</b> ${passengerType}:  before departure (fine amount) - ${exchangeBefore}<br/>
        $[if]
        $[if:notExchangeBefore]
            <b>Exchange:</b> ${passengerType}: before departure N/A<br/>
        $[if]
        $[if:exchangeAfter]
            <b>Exchange:</b> ${passengerType}: after departure (fine amount) - ${exchangeAfter}<br/>
        $[if]
        $[if:notExchangeAfter]
            <b>Exchange:</b> ${passengerType}: after departure  N/A<br/>
        $[if]
    </div>
$[repeat]
<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;">Insurance</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>
