<!-- template content_order_editor/items.tpl -->
<div class="full_box">
	<div class="title_wrapper">
		<div class="title"><h2>Ihre Bestellung - {$order->order_number}</h2></div>
		<div class="clear"></div>
	</div>

	<div class="box_content">
		<div class="box_padder">
			{if $orderitems}
			<table class="content_item_view">
				<thead>
					<tr>
						<th style="text-align:center;">Pos.</th>
						
						<th style="text-align:left;">Art-Nr./Beschreibung</th>
						
						<th style="text-align:right;">St&uuml;ckpreis</th>
						
						<th style="text-align:center;">St.</th>
						
						<th style="text-align:right;">Gesamtpreis</th>
					</tr>
					
					<tr>
						<th colspan="5"><hr /></th>
					</tr>
				</thead>
				
				<tbody>
				{foreach from=$orderitems item=item}
					<tr {if $item@last}class="last"{/if}>
						<td style="text-align:center;">
							{$item@index + 1}
						</td>
						
						<td style="text-align:left;">
							{$item->item_name}
							<div>Art-Nr.: {$item->item_number}</div>
						</td>
						
						<td style="text-align:right;">
							<span>
								{$item->price_with_tax} &euro;
								<div>inc. {$item->tax}% MwSt.</div>
							</span>
						</td>
						
						<td style="text-align:center;">
							{$item->amount}
						</td>
						
						<td style="text-align:right;">
							{$item->shown_total} &euro;
						</td>
					</tr>
				{/foreach}
				</tbody>
				<tfoot>
					<tr>
						<td colspan="5"><hr /></td>
					</tr>
					
					<tr class="item_total">
						<td colspan="2"></td>
						
						<td colspan="2" style="font-weight:bold;"><span style="padding-left:20px;">Summe aller Artikel</span></td>
						
						<td class="total" style="text-align:right;">{$footer->item_total_with_tax} &euro;</td>
					</tr>
					
					<tr class="tax">
						<td colspan="2"></td>
						
						<td colspan="2" class="greyed"><span style="padding-left:20px;">Inclusive  MwSt.</span></td>
						
						<td class="total" style="text-align:right;"></td>
					</tr>
					
					<tr class="shipping">
						<td colspan="2"></td>
						
						<td colspan="2"><span style="padding-left:20px;">Versandkosten</span></td>
						
						<td class="total" style="font-weight:normal;text-align:right;">{$footer->shipping} &euro;</td>
					</tr>
					
					<tr class="payment_method">
						<td colspan="2"></td>
						
						<td colspan="2"><span style="padding-left:20px;">Zahlungsgeb&uuml;hren</span></td>
						
						<td class="total" style="font-weight:normal;text-align:right;"">{$footer->payment_method} &euro;</td>
					</tr>
					
					<tr class="order_total">
						<td colspan="2"></td>
						
						<td colspan="2" style="font-weight:bold;"><span style="padding-left:20px;">F&auml;lliger Betrag</span></td>
						
						<td class="total" style="text-align:right;">{$footer->order_total_with_tax} &euro;</td>
					</tr>
				</tfoot>
			</table>
			{/if}
		</div>
	</div>
</div>
