diff --git a/app/views/partials/incident.blade.php b/app/views/partials/incident.blade.php index cc7c0e7c..f05b32db 100644 --- a/app/views/partials/incident.blade.php +++ b/app/views/partials/incident.blade.php @@ -1,7 +1,9 @@ subDays($i); - $incidents = Incident::whereRaw('DATE(created_at) = "' . $incidentDate->format('Y-m-d') . '"') - ->orderBy('created_at', 'desc')->get(); + $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(); ?>