changed positions
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user