changed positions

This commit is contained in:
denisdulici
2020-01-10 17:49:31 +03:00
parent 134bed0cc6
commit b5519004a0
9 changed files with 108 additions and 66 deletions

View File

@@ -7,6 +7,18 @@ use App\Models\Setting\Category;
class ExpensesByCategory extends Widget
{
public function getDefaultName()
{
return trans('widgets.expenses_by_category');
}
public function getDefaultSettings()
{
return [
'width' => 'col-md-6',
];
}
public function show()
{
Category::with('expense_transactions')->type('expense')->enabled()->each(function ($category) {
@@ -27,16 +39,4 @@ class ExpensesByCategory extends Widget
'chart' => $chart,
]);
}
public function getDefaultName()
{
return trans('widgets.expenses_by_category');
}
public function getDefaultSettings()
{
return [
'width' => 'col-md-6',
];
}
}