srp testing

This commit is contained in:
2019-07-08 22:44:42 -05:00
parent f194d91d90
commit d81ca33b0a
2 changed files with 8 additions and 1 deletions

View File

@@ -137,6 +137,7 @@ class SRPAdminController extends Controller
//Get the losses by Fleet Commander Name, and populate variables for the table
$fcNames = SRPShip::pluck('fleet_commander_name');
dd($fcNames);
foreach($fcNames as $name) {
$total = SRPShip::where(['fleet_commander_name' => $name])
->sum('loss_value');
@@ -148,6 +149,8 @@ class SRPAdminController extends Controller
array_push($barChartData, $temp);
}
dd($barChartData);
//Pie Chart for approval, denied, and under review
$lava = new Lavacharts; // See note below for Laravel