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\Banking\Transaction;
class LatestIncome extends Widget
{
public function getDefaultName()
{
return trans('widgets.latest_income');
}
public function getDefaultSettings()
{
return [
'width' => 'col-md-4',
];
}
public function show()
{
$transactions = $this->applyFilters(Transaction::with('category')->type('income')->orderBy('paid_at', 'desc')->isNotTransfer()->take(5))->get();
@ -15,9 +27,4 @@ class LatestIncome extends Widget
'transactions' => $transactions,
]);
}
public function getDefaultName()
{
return trans('widgets.latest_income');
}
}