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