diff --git a/app/Http/Controllers/SRP/SRPAdminController.php b/app/Http/Controllers/SRP/SRPAdminController.php index 49fb3cf95..75b5f3baf 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'); + $fcNames = SRPShip::pluck('fleet_commander_name')->groupBy('fleet_commander_name'); dd($fcNames); foreach($fcNames as $name) { $total = SRPShip::where(['fleet_commander_name' => $name])