Add certainty to chart.

This commit is contained in:
James Cole 2015-03-27 19:45:47 +01:00
parent aae2ab2693
commit 32a036b076

View File

@ -52,9 +52,11 @@ class GoogleChartController extends Controller
$start = Session::get('start', Carbon::now()->startOfMonth());
$end = Session::get('end', Carbon::now()->endOfMonth());
$current = clone $start;
$today = new Carbon;
while ($end >= $current) {
$chart->addRow(clone $current, Steam::balance($account, $current), false);
$certain = $current > $today;
$chart->addRow(clone $current, Steam::balance($account, $current), $certain);
$current->addDay();
}