<div>
	<div data-ng-hide="loading || data.length == 0">
		<table class="table table-hover table-striped table-condensed">
			<thead class="table-header">
				<th>ID</th>
				<th>Customer</th>
				<th>Contract</th>
				<th>Description</th>
				<th class="centered">Items</th>
				<th>Assigned To</th>
				<th>Status</th>
				<th class="centered">Booked In</th>
			</thead>
			<tbody>
				<tr data-ng-repeat="task in data">
					<td><a href="{!! URL::to('tasks') !!}/{[{ task | taskUrl }]}">{[{ task.id }]}</a></td>
					<td><i data-ng-class="{'fa fa-user': task.client_type == 'customer', 'fa fa-building-o': task.client_type == 'client'}"></i> {[{ task.client.name }]}</td>
					<td><span class="label label-success">{[{ task.client.contract.name }]}</span></td>
					<td><span strip-html="{[{ task.problem | limitTo:40 }]}"></span></td>
					<td class="centered">{[{ task.total_items }]}</td>
					<td>{[{ task.user.name }]}</td>
					<td>{[{ task.status.name }]}</td>
					<td class="centered"><span tooltip="{[{ task.created_at }]}">{[{ task.created_at | fromNow }]}</span></td>
				</tr>
			</tbody>
		</table>
		<div data-paginator="paginator"></div>
	</div>
	<div class="alert alert-warning" data-ng-show="data.length == 0 && !loading">
		<i class="fa fa-meh-o"></i> Meh, nothing here...
	</div>
	<div class="row" data-ng-show="loading">
		<i class="fa fa-spinner fa-spin"></i> Loading, please wait...
	</div>
</div>