refactored widgets
This commit is contained in:
@ -29,67 +29,67 @@ class Widgets extends Seeder
|
||||
$rows = [
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.total_incomes'),
|
||||
'alias' => 'total-incomes',
|
||||
'settings' => ['width'=>'col-md-4'],
|
||||
'name' => trans('dashboard.total_income'),
|
||||
'alias' => 'total-income',
|
||||
'settings' => ['width' => 'col-md-4'],
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.total_expenses'),
|
||||
'alias' => 'total-expenses',
|
||||
'settings' => ['width'=>'col-md-4'],
|
||||
'settings' => ['width' => 'col-md-4'],
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.total_profit'),
|
||||
'alias' => 'total-profit',
|
||||
'settings' => ['width'=>'col-md-4'],
|
||||
'settings' => ['width' => 'col-md-4'],
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.cash_flow'),
|
||||
'alias' => 'cash-flow',
|
||||
'settings' => ['width'=>'col-md-12'],
|
||||
'settings' => ['width' => 'col-md-12'],
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.incomes_by_category'),
|
||||
'alias' => 'incomes-by-category',
|
||||
'settings' => ['width'=>'col-md-6'],
|
||||
'name' => trans('dashboard.income_by_category'),
|
||||
'alias' => 'income-by-category',
|
||||
'settings' => ['width' => 'col-md-6'],
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.expenses_by_category'),
|
||||
'alias' => 'expenses-by-category',
|
||||
'settings' => ['width'=>'col-md-6'],
|
||||
'settings' => ['width' => 'col-md-6'],
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.account_balance'),
|
||||
'alias' => 'account-balance',
|
||||
'settings' => ['width'=>'col-md-4'],
|
||||
'settings' => ['width' => 'col-md-4'],
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.latest_incomes'),
|
||||
'alias' => 'latest-incomes',
|
||||
'settings' => ['width'=>'col-md-4'],
|
||||
'name' => trans('dashboard.latest_income'),
|
||||
'alias' => 'latest-income',
|
||||
'settings' => ['width' => 'col-md-4'],
|
||||
'enabled' => 1,
|
||||
],
|
||||
[
|
||||
'company_id' => $company_id,
|
||||
'name' => trans('dashboard.latest_expenses'),
|
||||
'alias' => 'latest-expenses',
|
||||
'settings' => ['width'=>'col-md-4'],
|
||||
'settings' => ['width' => 'col-md-4'],
|
||||
'enabled' => 1,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($rows as $row) {
|
||||
|
Reference in New Issue
Block a user