<table class="services list">
	<th>#</th>
	<th>{$_LANG['Orders']['MiceProject']['reports']['th']['service']}</th>


	{*{foreach $formData['reportData']['servicesPerDay'] as $date=>$services}
		<th  style="text-align: center;">
			{$date|date_format:"%d.%m"}
		</th>
	{/foreach}*}

	{foreach $formData['reportData']['time'] as $day}
		<th  style="text-align: center;">
			{$day|date_format:"%d.%m"}
		</th>
	{/foreach}

	{*{counter name=resultsCount start=0 print=false}
	{foreach $formData['reportData']['serviceDistributionPerDays'] as $idService=>$dates}
		<tr>
			<td>{counter name=resultsCount assign="currentResult" print=true}.</td>

			<td>
				{$formData['reportData']['services'][$idService]['serviceName']}

				<a href="#;" class="icon-infoOrange"
					onClick="RemoteLoad.loadEntity(this, 'service', '{$idService}');"
				></a>
			</td>

			{foreach $dates as $date=>$serviceAvailable}
				<td style="text-align: center;">
					{if $serviceAvailable}
						&bull;
					{else}
						&middot;
					{/if}
				</td>
			{/foreach}
		</tr>
	{/foreach}*}

	{counter name=resultsCount start=0 print=false}
	{foreach $formData['reportData']['services'] as $service}

		<tr>
			<td>{counter name=resultsCount assign="currentResult" print=true}.</td>
			<td> {$service['serviceName']}</td>

			{foreach $formData['reportData']['time'] as $day}
				<td style="text-align: center;">
					{if $service['endTime']}
						{if $service['startTime'] <= $day && $service['endTime'] >= $day}
							&bull;
						{else}
							&middot;
						{/if}
					{else}
						{if $service['startTime'] == $day}
							&bull;
						{else}
							&middot;
						{/if}
					{/if}
				</td>
			{/foreach}
	{/foreach}

</table>

