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