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

{block name=widget_name}dashboard_widget_show_warehouse_inventory{/block}

{block name=widget_title}Lagerbestand{/block}

{block name=widget_content}
	{if $low_inventory}
		<table>
			<thead>
				<tr>
					<th>Bezeichnung</th>
					<th class="quantity">Anzahl
				</tr>
			</thead>
			<tbody>
				{foreach from=$low_inventory item=item}
					<tr>
						<td><a href="./index.php?admin_modul=admin_item_editor&id={$item->id}">{$item->name}</a></td>
						<td class="quantity">{$item->inventory}</td>
					</tr>
				{/foreach}
			</tbody>
		</table>
	{else}
		<p>Minimal Lagerbest&auml;nde von allen Produkten sind vorhanden.</p>
	{/if}
{/block}