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

{block name=widget_name}dashboard_widget_backorder_items{/block}

{block name=widget_title}Neue Nachrichten{/block}

{block name=widget_content}
	{if $ticket_list}
		<table>
			<thead>
				<tr>
					<th>Ticket</th>
					<th>Kunde</th>
					<th class="money">Nachricht</th>
					<th class="date">Datum</th>
				</tr>
			</thead>
			<tbody>
				{foreach $ticket_list as $ticket}
					<tr>
						<td>
							<a href="{$info->base_url}index.php?admin_modul=admin_cs_ticket_editor&id={$ticket->id}">{$ticket->number}</a>
						</td>
						<td>
							{$ticket->customer->firstname} {$ticket->customer->surname} {if $ticket->customer->company}({$ticket->customer->company}){/if}
						</td>
						<td class="money">{$ticket->first_message->subject}</td>
						<td class="date">{$ticket->first_message->create_time}</td>
					</tr>
				{/foreach}
			</tbody>
		</table>
	{else}
		<p>Keine Nachlieferung</p>
	{/if}
{/block}