{extends file=$smarty.const.SMARTY_LAYOUT_DASHBOARD_WIDGET_DEFAULT}

{block name="content"}
	{* display error message - if any *}
	{if $widget['data']['errorMessage']}
		<div class="messageDivContainer layout-inline">
			{message type='error' message=$widget['data']['errorMessage']}
		</div>
	{/if}

	{* REPORTS LIST ============================================================================ *}
	{if $widget['data']['reportsList']}
		<table class="simpleList w100p">
			<thead>
				<tr>
					<th>{$widgetLang['th']['category']}</th>
					<th>{$widgetLang['th']['report']}</th>
				</tr>
			</thead>

			<tbody>
				{foreach $widget['data']['reportsList'] as $idx=>$report}
					<tr class="{cycle values="odd,even"}">
						<td>{$report['categoryName']}</td>
						<td class="bold">{$report['reportName']}</td>
					</tr>
				{/foreach}
			</tbody>
		</table>
	{else}
		<div class="messageDivContainer layout-inline">
			{message type='info' message=$widgetLang['msgs']['noRepList']}
		</div>
	{/if}

{/block}

