Break up incidents on the same day

This commit is contained in:
James Brooks
2014-11-19 14:41:04 +00:00
parent 132c18d65a
commit 189890154e
6 changed files with 22 additions and 2 deletions

View File

@@ -10,10 +10,13 @@
<p>No incidents reported.</p>
@endunless
@foreach($incidents as $incident)
@foreach($incidents as $incidentID => $incident)
<span class='badge badge-{{ $incident->color }}'><i class='glyphicon {{ $incident->icon }}'></i></span>
<h4>{{ $incident->name }}</h4>
<time>{{ $incident->created_at->format('H:i:s A') }} {{ Config::get('app.timezone') }}</time>
<p>{{ $incident->message }}</p>
@if($incidentID < ($incident->count() - 1))
<hr />
@endif
@endforeach
</li>