Re-design the layout
This commit is contained in:
@@ -2,19 +2,14 @@
|
||||
$incidentDate = Carbon::now()->subDays($i);
|
||||
$incidents = Incident::whereRaw('DATE(created_at) = "' . $incidentDate->format('Y-m-d') . '"')->orderBy('created_at', 'desc')->get();
|
||||
?>
|
||||
<li class='list-group-item'>
|
||||
<h1>{{ $incidentDate->format('jS M, Y') }}</h1>
|
||||
<ul class='list-group'>
|
||||
@if($incidents->count() === 0)
|
||||
<li class='list-group-item'>No incidents reported.</li>
|
||||
@else
|
||||
@foreach($incidents as $incident)
|
||||
<li class='list-group-item'>
|
||||
<h2>{{ $incident->name }}, <small>{{ $incident->humanStatus }}</small></h2>
|
||||
<h3><time>{{ $incident->created_at->format('H:i:s A') }}</time></h3>
|
||||
<p>{{ $incident->message }}</p>
|
||||
</li>
|
||||
@endforeach
|
||||
@endif
|
||||
</ul>
|
||||
</li>
|
||||
<h2>{{ $incidentDate->format('jS M, Y') }}</h2>
|
||||
<hr />
|
||||
@if($incidents->count() === 0)
|
||||
<p>No incidents reported.</p>
|
||||
@else
|
||||
@foreach($incidents as $incident)
|
||||
<h3>{{ $incident->name }}, <span class='label label-info'>{{ $incident->humanStatus }}</span></h3>
|
||||
<p>{{ $incident->message }}</p>
|
||||
<h4><time>{{ $incident->created_at->format('H:i:s A') }} {{ Config::get('app.timezone') }}</time></h4>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user