@version(2)
@load('css/contact.css')

<div class="ctc">
	<div class="ctc-head">
		<h2 class="ctc-title">{{ $entry->title ?: $lang->entry }}</h2>
		<p class="ctc-desc">
			<span class="ctc-status ctc-status-{{ $entry->status }}">{{ $lang->{'status_' . $entry->status} }}</span>
			<span class="ctc-meta">{{ zdate($entry->regdate, 'Y.m.d H:i') }}</span>
			@if($form)<span class="ctc-meta">{{ $form->title }}</span>@endif
		</p>
	</div>

	<table class="ctc-table ctc-table-view">
		<tbody>
			@foreach($entry_data as $item)
			<tr>
				<th scope="row">{{ $item['label'] }}</th>
				<td>{!! nl2br(htmlspecialchars(is_array($item['value']) ? implode(', ', $item['value']) : $item['value'], ENT_QUOTES, 'UTF-8')) !!}</td>
			</tr>
			@endforeach
			@if(count($entry_files))
			<tr>
				<th scope="row">{{ $lang->attachment }}</th>
				<td>
					@foreach($entry_files as $file)
					<a href="{{ $file->download_url }}">{{ $file->source_filename }}</a><br />
					@endforeach
				</td>
			</tr>
			@endif
		</tbody>
	</table>

	<p class="ctc-foot-links">
		<a href="{{ getUrl('', 'mid', $module_info->mid, 'act', 'dispContactMyList') }}">{{ $lang->go_list }}</a>
	</p>
</div>
