From abc9364afb687718c2c190bf52b8243ed02ca8e2 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Wed, 3 Jul 2019 20:08:33 -0500 Subject: [PATCH] srp admin controller --- app/Http/Controllers/SRP/SRPAdminController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/SRP/SRPAdminController.php b/app/Http/Controllers/SRP/SRPAdminController.php index 3c5010591..e7b4aea4b 100644 --- a/app/Http/Controllers/SRP/SRPAdminController.php +++ b/app/Http/Controllers/SRP/SRPAdminController.php @@ -130,8 +130,7 @@ class SRPAdminController extends Controller $gaugeReview = $pieOpen; //Get the losses by Fleet Commander Name, and populate variables for the table - $fcNames = SRPShip::whereBetween('created_at', [$now, $previous]) - ->pluck('fleet_commander_name'); + $fcNames = SRPShip::pluck('fleet_commander_name'); foreach($fcNames as $name) { $total = SRPShip::where(['fleet_commander_name' => $name]) ->sum('loss_value');