srp testing
This commit is contained in:
@@ -137,9 +137,8 @@ class SRPAdminController extends Controller
|
|||||||
|
|
||||||
//Get the losses by Fleet Commander Name, and populate variables for the table
|
//Get the losses by Fleet Commander Name, and populate variables for the table
|
||||||
$fcNames = SRPShip::groupBy('fleet_commander_name')->get(['fleet_commander_name']);
|
$fcNames = SRPShip::groupBy('fleet_commander_name')->get(['fleet_commander_name']);
|
||||||
dd($fcNames);
|
|
||||||
foreach($fcNames as $name) {
|
foreach($fcNames as $name) {
|
||||||
$total = SRPShip::where(['fleet_commander_name' => $name])
|
$total = SRPShip::where(['fleet_commander_name' => $name->fleet_commander_name])
|
||||||
->sum('loss_value');
|
->sum('loss_value');
|
||||||
$temp = [
|
$temp = [
|
||||||
'fc' => $name,
|
'fc' => $name,
|
||||||
|
|||||||
Reference in New Issue
Block a user