2014-11-16 23:17:34 +00:00
|
|
|
<?php
|
|
|
|
$incidentDate = Carbon::now()->subDays($i);
|
2014-11-17 00:10:02 +00:00
|
|
|
$incidents = Incident::whereRaw('DATE(created_at) = "' . $incidentDate->format('Y-m-d') . '"')->orderBy('created_at', 'desc')->get();
|
2014-11-16 23:17:34 +00:00
|
|
|
?>
|
2014-11-17 13:45:25 +00:00
|
|
|
<h2>{{ $incidentDate->format('jS M, Y') }}</h2>
|
|
|
|
<hr />
|
|
|
|
@if($incidents->count() === 0)
|
|
|
|
<p>No incidents reported.</p>
|
|
|
|
@else
|
|
|
|
@foreach($incidents as $incident)
|
2014-11-19 12:02:51 +00:00
|
|
|
<h3><span class='label {{ $incident->labelColor }}'>{{ $incident->humanStatus }}</span> {{ $incident->name }}</h3>
|
2014-11-17 13:45:25 +00:00
|
|
|
<p>{{ $incident->message }}</p>
|
|
|
|
<h4><time>{{ $incident->created_at->format('H:i:s A') }} {{ Config::get('app.timezone') }}</time></h4>
|
|
|
|
@endforeach
|
|
|
|
@endif
|