{extends file="{$mvcView->getModulePath()}/View/_tpl/humanReadableFile/base.tpl"}

{block name="itinerary-data"}{/block}

{block name="transaction-data" append}
	<tr>
		<td class="label">validity period</td>
		<td class="value">
			{$transaction->locations->departure->date|dateTimeFormat} - {$transaction->locations->destination->date|dateTimeFormat}
		</td>
	</tr>

	<tr>
		<td class="label">valid for</td>
		<td class="value validFor">
			{if $transaction->locations->departure->suggestions && (string)$transaction->locations->departure->suggestions->area}
				<span>{(string)$transaction->locations->departure->suggestions->area},</span>
			{/if}
			<span>{$transaction->serviceDetails->occupancy}
				{if $transaction->serviceDetails->occupancy==1}
					persons
				{else}
					person
				{/if}
			</span>
		</td>
	</tr>
{/block}

{block name="supplier-data"}
	<tr>
		<td class="label">provider</td>
		<td class="value">
			<span class="note">{(string)$transaction->serviceDetails->insurance_providerCode}</span>

			{(string)$transaction->serviceDetails->insurance_providerCode_text}
		</td>
	</tr>

	<tr>
		<td class="label">product</td>
		<td class="value">
			<span class="note">{(string)$transaction->serviceDetails->insurance_productCode}</span>

			{(string)$transaction->serviceDetails->insurance_productCode_text}
		</td>
	</tr>

	<tr>
		<td class="label">extensions</td>
		<td class="value">
			{if $transaction->serviceDetails->insurance_extensions && $transaction->serviceDetails->insurance_extensions->EXTN}
				{$separator=""}
				{foreach $transaction->serviceDetails->insurance_extensions->EXTN as $ext}
					{$separator}
					<div>
						<span class="note">
							{$separator}
							({(string)$ext->type}, {(string)$ext->code})
						</span>
						{(string)$ext->name}
					</div>
					{$separator=","}
				{/foreach}
			{/if}
		</td>
	</tr>
{/block}