{extends file="widgets/little_widget_base.tpl"}

{block name=widget_name}dashboard_widget_order{/block}

{block name=widget_title}Offene Bestellungen{/block}

{block name=widget_content}
	{if $open_orders}
		<table>
			<thead>
				<tr>
					<th>Bestellnr.</th>
					<th>Kunde</th>
					<th class="date">Datum</th>
					<th class="money">Wert</th>
				</tr>
			</thead>
			<tbody>
				{foreach from=$open_orders item=order}
					<tr>
						<td><a href="index.php?admin_modul=admin_order_editor&action=edit&id={$order->id}">{$order->order_number}</a></td>
						<td>{$order->customer_name}</td>
						<td class="date">{$order->order_date}</td>
						<td class="money">{$order->order_total|number_format:2:",":" "} &euro;</td>
					</tr>
				{/foreach}
			</tbody>
		</table>
	{else}
		<p>Keine neue Bestellung.</p>
	{/if}
{/block}