chart for admin dashboard

This commit is contained in:
2020-12-26 20:57:36 +09:00
parent a5532120e9
commit 6d88c9b703
2 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ class AdminDashboardController extends Controller
->addRow(['market', $market])
->addRow(['gate', $gate]);
Lava::PieChart('Income', $iChart, [
$lava->PieChart('Alliance Income', $iChart, [
'title' => 'Alliance Income',
'is3D' => true,
]);
@@ -102,6 +102,6 @@ class AdminDashboardController extends Controller
->addRow(['bridge_fuel', $bridgeFuel])
->addRow(['jammer_fuel', $jammerFuel]);
*/
return view('admin.dashboards.dashboard');
return view('admin.dashboards.dashboard')->with('lava', $lava);
}
}

View File

@@ -13,6 +13,6 @@
</div>
<div id="income-div"></div>
@piechart('Income', 'income-div')
{!! $lava->render('PieChart', 'Alliance Income', 'income-div') !!}
</div>
@endsection