srp testing

This commit is contained in:
2019-07-08 22:47:58 -05:00
parent 30be401b30
commit 0deae9e495

View File

@@ -137,9 +137,8 @@ class SRPAdminController extends Controller
//Get the losses by Fleet Commander Name, and populate variables for the table
$fcNames = SRPShip::groupBy('fleet_commander_name')->get(['fleet_commander_name']);
dd($fcNames);
foreach($fcNames as $name) {
$total = SRPShip::where(['fleet_commander_name' => $name])
$total = SRPShip::where(['fleet_commander_name' => $name->fleet_commander_name])
->sum('loss_value');
$temp = [
'fc' => $name,