From 1bd3c5a1535d03af34bdf22889c4ab20c4b6f256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 1 Sep 2025 22:25:57 +0100 Subject: [PATCH] fixed performans.. --- app/Abstracts/View/Components/Contacts/Index.php | 4 ++++ app/View/Components/Form/Group/Account.php | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Abstracts/View/Components/Contacts/Index.php b/app/Abstracts/View/Components/Contacts/Index.php index 9d223bf0d..cfa0cdf10 100644 --- a/app/Abstracts/View/Components/Contacts/Index.php +++ b/app/Abstracts/View/Components/Contacts/Index.php @@ -30,6 +30,10 @@ abstract class Index extends Component public $page; public $permissionCreate; + + public $permissionUpdate; + + public $permissionDelete; /* -- Main End -- */ /* -- Buttons Start -- */ diff --git a/app/View/Components/Form/Group/Account.php b/app/View/Components/Form/Group/Account.php index 61d170651..03141f650 100644 --- a/app/View/Components/Form/Group/Account.php +++ b/app/View/Components/Form/Group/Account.php @@ -40,7 +40,7 @@ class Account extends Form $this->selected = $account_id; if (! $this->accounts->has($account_id)) { - $account = Model::with('transactions')->find($account_id); + $account = Model::with(['transactions', 'income_transactions', 'expense_transactions', 'currency'])->find($account_id); $this->accounts->push($account); } @@ -69,9 +69,9 @@ class Account extends Form protected function getAccounts() { if ($this->hideCurrency) { - return Model::with('transactions')->enabled()->orderBy('name')->get(); + return Model::with(['transactions', 'income_transactions', 'expense_transactions', 'currency'])->enabled()->orderBy('name')->get(); } - return Model::with('transactions')->enabled()->orderBy('name')->get(); + return Model::with(['transactions', 'income_transactions', 'expense_transactions', 'currency'])->enabled()->orderBy('name')->get(); } }