<?php Block::put('breadcrumb') ?>
	<ul>
		<li><a href="<?= Backend::url('netsti/system/inbox') ?>"><?= trans('netsti.system::lang.inbox.title') ?></a></li>
		<li><?= e($this->pageTitle) ?></li>
	</ul>
<?php Block::endPut() ?>

<style>
	.font-huge{ font-size: 26px; line-height: 1em; }
	.font-small{ line-height: 1em; padding: 0; margin: 0; }
</style>

<?php if (!$this->fatalError): ?>

	<div class="form-preview">
		<div class="layout container">
			<div class="layout-row">
				<?php if ($this->vars['formModel']->subject): ?>
					<h2><i class="icon icon-envelope icon-3x pull-left"></i><small><?= trans('netsti.system::lang.inbox.subject') ?></small><br><?= $this->vars['formModel']->subject ?></h2>
					<hr>
				<?php endif ?>
				<div class="form-group span-left">
					<label><?= trans('netsti.system::lang.inbox.name') ?></label>
					<p class="font-huge"><?= $this->vars['formModel']->name ?></p>
					<p class="font-small text-muted"><em><?= $this->vars['formModel']->position ?></em></p>
				</div>

				<div class="form-group span-right">
					<label><?= trans('netsti.system::lang.inbox.company') ?></label>
					<p class="font-huge"><?= $this->vars['formModel']->company ?></p>
				</div>

				<div class="form-group span-left">
					<label><?= trans('netsti.system::lang.inbox.email') ?></label>
					<p class="font-huge"><?= $this->vars['formModel']->email ?></p>
				</div>

				<div class="form-group span-right">
					<label><?= trans('netsti.system::lang.inbox.phone') ?></label>
					<p class="font-huge"><?= $this->vars['formModel']->phone ?></p>
				</div>

				<div class="form-group span-full">
					<label><?= trans('netsti.system::lang.inbox.message') ?></label>
					<p class="font-huge"><?= $this->vars['formModel']->message ?></p>
				</div>
			</div>
		</div>
	</div>

<?php else: ?>

	<p class="flash-message static error"><?= e($this->fatalError) ?></p>
	<p><a href="<?= Backend::url('netsti/system/inbox') ?>" class="btn btn-default"><?= trans('netsti.system::lang.returnlist') ?></a></p>

<?php endif ?>