diff --git a/app/Http/Controllers/SRP/SRPAdminController.php b/app/Http/Controllers/SRP/SRPAdminController.php index 75b5f3baf..c10c5580d 100644 --- a/app/Http/Controllers/SRP/SRPAdminController.php +++ b/app/Http/Controllers/SRP/SRPAdminController.php @@ -136,7 +136,7 @@ class SRPAdminController extends Controller $gaugeReview = $pieOpen; //Get the losses by Fleet Commander Name, and populate variables for the table - $fcNames = SRPShip::pluck('fleet_commander_name')->groupBy('fleet_commander_name'); + $fcNames = SRPShip::groupBy('fleet_commander_name')->get(['fleet_commander_name']); dd($fcNames); foreach($fcNames as $name) { $total = SRPShip::where(['fleet_commander_name' => $name])