@section('body')

	<br/>
	<br/>

	<style type="text/css">
		@media print {
			.widget, .widget-content {
				border: none;
			}
		}
	</style>

	<div class="container">

		<div class="widget widget-classic">
			<div class="widget-content">
				<h1><strong>{!! $task->client->name !!}</strong></h1>

				<hr/>
				<div class="row">
					<div class="col-sm-6">
						<dl class="dl-horizontal">
							@if ($task->client->type == "client")

								<dt>Contact person:</dt>
								<dd>{!! $task->site_user()->first()->name !!}</dd>

								<dt>Email:</dt>
								<dd>{!! $task->site_user()->first()->email !!}</dd>

								<dt>Address:</dt>
								<dd>{!! $task->site->inline_address !!}</dd>

								<dt>Telephone numbers:</dt>
								<dd>
									<ul class="unstyled">
										<li><div style="float: left; width: 120px;">{!! $task->site_user()->first()->phone !!}</div> - user landline</li>
										<li><div style="float: left; width: 120px;">{!! $task->site_user()->first()->mobile !!}</div> - user mobile</li>
										<li><div style="float: left; width: 120px;">{!! $task->site->primary_phone !!}</div> - site telephone</li>
									</ul>
								</dd>

							@else

								<dt>Email:</dt>
								<dd>{!! $task->client->email !!}</dd>

								<dt>Address:</dt>
								<dd>{!! $task->client->inline_address !!}</dd>

								<dt>Landline:</dt>
								<dd>{!! $task->client->phone !!}</dd>

								<dt>Additional Phone:</dt>
								<dd>{!! $task->client->phone2 !!}</dd>

								<dt>Mobile:</dt>
								<dd>{!! $task->client->mobile !!}</dd>

							@endif
						</dl>
					</div>

					<div class="col-sm-6">
						<span data-ng-init="address = '{!! $task->client->type == "client" ? $task->site->inline_address : $task->client->inline_address !!}'"></span>
						<div widget-map data-address="address">
							<iframe height="180" frameborder="0" style="width: 100%; border:0"
									ng-src="{[{ trustSrc('https://www.google.com/maps/embed/v1/place?key={{ config('services.google.maps') }}&q=' + address) }]}" allowfullscreen>
							</iframe>
						</div>
					</div>
				</div>

				<hr/>

				<h2>{!! $task->title !!}</h2>
				<p>{!! $task->problem !!}</p>

			</div>
		</div>

	</div>

@stop