<!-- content_customer_center/order_data.tpl -->
<div class="full_box">
	<div class="title_wrapper">
		<div class="title"><h2>Ihre Bestellungen</h2></div>
	</div>

	<div class="box_content">
		<div class="box_padder">

			<table id="content_customer_center_order_table" cellspacing="0" cellpadding="5">
				<thead>
					<tr>
						<th class="left">Bestell-Nr.</th>
						<th class="right">Summe</th>
						<th class="right">Bestell-Datum</th>
						<th class="center">Details</th>
						<th class="center">Rechnung</th>
					</tr>
					<tr>
						<td colspan="6"><hr /></td>
					</tr>
				</thead>
				<tbody>
					{foreach from=$orders item=order}
						{if $order->order_status != 10}
							<tr class="{if $order@iteration is even by 1}odd{else}even{/if}">
								<td class="left">{$order->order_number}</td>
								<td class="right">{$order->order_total|number_format:2:",":"."} EUR</td>
{*								<td class="right">{$order->order_date|date_format:"%A, %d. %B %Y"}</td>*}
								<td class="right">{$order->order_date|date_format:"%d.%m.%Y"}</td>
								<td class="center">
									{*
									{if $order->billing_date}
										<a class="getOrderDetailsTrigger" href="/index.php?website_modul=website_order_editor&order_id={$order->id}">bearbeiten</a>
									{/if}
									*}
									<a class="getOrderDetailsTrigger" rel="{$order->id}" href="/index.php?website_modul=website_order_editor&order_id={$order->id}">Details</a>
								</td>
								<td class="center">
									{if $order->invoice_number}
										<a href="/Kundencenter/?action=get_invoice_pdf&order_id={$order->id}">{$order->invoice_number}</a>
									{/if}
								</td>
							</tr>
						{/if}
					{/foreach}
				</tbody>
			</table>
		</div>
	</div>
</div>
