close #1053 Added: Dashboard date filter
This commit is contained in:
@ -9,11 +9,11 @@ class LatestIncome extends Widget
|
||||
{
|
||||
public function show()
|
||||
{
|
||||
$transactions = Transaction::with('category')->type('income')->orderBy('paid_at', 'desc')->isNotTransfer()->take(5)->get();
|
||||
$transactions = $this->applyFilters(Transaction::with('category')->type('income')->orderBy('paid_at', 'desc')->isNotTransfer()->take(5))->get();
|
||||
|
||||
return view('widgets.latest_income', [
|
||||
'config' => (object) $this->config,
|
||||
'transactions' => $transactions,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user