|
@@ -16,6 +16,7 @@ use App\Models\Accounting\JournalEntry;
|
16
|
16
|
use App\Models\Accounting\Transaction;
|
17
|
17
|
use App\Models\Banking\BankAccount;
|
18
|
18
|
use App\Models\Company;
|
|
19
|
+use App\Services\PlaidService;
|
19
|
20
|
use App\Utilities\Currency\CurrencyAccessor;
|
20
|
21
|
use App\Utilities\Currency\CurrencyConverter;
|
21
|
22
|
use Awcodes\TableRepeater\Header;
|
|
@@ -123,6 +124,7 @@ class Transactions extends Page implements HasTable
|
123
|
124
|
->after(fn (Transaction $transaction) => $transaction->updateAmountIfBalanced()),
|
124
|
125
|
Actions\Action::make('connectBank')
|
125
|
126
|
->label('Connect your bank')
|
|
127
|
+ ->visible(app(PlaidService::class)->isEnabled())
|
126
|
128
|
->url(ConnectedAccount::getUrl()),
|
127
|
129
|
])
|
128
|
130
|
->label('More')
|