updated category structure of reports

This commit is contained in:
denisdulici
2020-01-04 13:42:58 +03:00
parent bc46b1f8f6
commit dca5a64122
11 changed files with 107 additions and 145 deletions

View File

@@ -32,8 +32,6 @@ abstract class Report
public $filters = [];
public $category = 'income-expense';
public $icon = 'fa fa-chart-pie';
public $indents = [
@@ -80,14 +78,14 @@ abstract class Report
abstract public function getTotals();
public function getName()
public function getDefaultName()
{
return Str::title(str_replace('_', ' ', Str::snake((new \ReflectionClass($this))->getShortName())));
}
public function getCategory()
{
return $this->category;
return trans('reports.income_expense');
}
public function getIcon()