<!DOCTYPE html>
<html lang="en-US">
	<head>
		<meta charset="utf-8">

		<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
	</head>
	<body>
		<h4>Hi {!! $user->name !!},</h4>

		<p>Seraph has detected that the following jobs have not been touched for more than 72 hours.</p>

		<div>

			<table class="table" style="padding: 0 15px;">
				<thead>
					<th>ID</th>
					<th>Title</th>
					<th>Client</th>
					<th>Contract</th>
					<th>Priority</th>
					<th>Created</th>
					<th>Updated</th>
				</thead>
				<tbody>
					@foreach ($tasks as $task)
						<tr>
							<td><a href="{!! URL::to('tasks/repairs/'.$task->id) !!}">{!! $task->id !!}</a></td>
							<td>{!! $task->title !!}</td>
							<td>{!! $task->client->name !!}</td>
							<td>
								@if ($task->client->contract_id)
									<span class="label label-info">{!! $task->client->contract->name !!}</span>
								@endif
							</td>
							<td>{!! $task->severity ? $task->severity->name : 'No severity' !!}</td>
							<td>{!! $task->created_at !!}</td>
							<td>{!! $task->updated_at !!}</td>
						</tr>
					@endforeach
				</tbody>
			</table>

		</div>
	</body>
</html>