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 IncomeByCategory extends Widget
{
public function getDefaultName()
{
return trans('widgets.income_by_category');
}
public function getDefaultSettings()
{
return [
'width' => 'col-md-6',
];
}
public function show()
{
Category::with('income_transacions')->type('income')->enabled()->each(function ($category) {
@@ -27,16 +39,4 @@ class IncomeByCategory extends Widget
'chart' => $chart,
]);
}
public function getDefaultName()
{
return trans('widgets.income_by_category');
}
public function getDefaultSettings()
{
return [
'width' => 'col-md-6',
];
}
}