Refactor how we get incidents
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
<?php
|
||||
$incidentDate = Carbon\Carbon::now()->subDays($i);
|
||||
$incidents = Incident::whereBetween('created_at', [
|
||||
$incidentDate->format('Y-m-d') . ' 00:00:00',
|
||||
$incidentDate->format('Y-m-d') . ' 23:59:59',
|
||||
])->orderBy('created_at', 'desc')->get();
|
||||
?>
|
||||
<h4>{{ $incidentDate->format('jS F Y') }}</h4>
|
||||
<h4>{{ $date }}</h4>
|
||||
<div class='timeline'>
|
||||
<div class='content-wrapper'>
|
||||
@forelse($incidents as $incidentID => $incident)
|
||||
Reference in New Issue
Block a user