srp admin controller

This commit is contained in:
2019-07-03 20:08:33 -05:00
parent e027147c99
commit abc9364afb

View File

@@ -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');