Update Dashboard.php

This commit is contained in:
sausin 2018-12-14 19:48:30 +05:30 committed by GitHub
parent 1f4ff6175a
commit 54431e3bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ class Dashboard extends Controller
public function index() public function index()
{ {
$this->today = Date::today(); $this->today = Date::today();
$this->financial_start = $financial_start = Date::parse(Setting::where('key', 'general.financial_start')->first()->value)->format('Y-m-d'); $this->financial_start = $financial_start = Date::parse(setting('general.financial_start'))->format('Y-m-d');
list($total_incomes, $total_expenses, $total_profit) = $this->getTotals(); list($total_incomes, $total_expenses, $total_profit) = $this->getTotals();