From fbc0895f104a5f8025b1e4bf0a85b83e93e97fb7 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 25 May 2023 16:09:12 +1000 Subject: [PATCH] Improve auto bill text in client portal --- lang/en/texts.php | 1 + .../livewire/recurring-invoices-switch-autobilling.blade.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en/texts.php b/lang/en/texts.php index 0d420fe76aea..b73e5f782c6e 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -5094,6 +5094,7 @@ $LANG = array( 'order_id' => 'Order', 'total_invoices_outstanding' => 'Total Invoices Outstanding', 'recent_activity' => 'Recent Activity', + 'enable_auto_bill' => 'Enable auto billing', ); diff --git a/resources/views/portal/ninja2020/components/livewire/recurring-invoices-switch-autobilling.blade.php b/resources/views/portal/ninja2020/components/livewire/recurring-invoices-switch-autobilling.blade.php index c9c080cd41b2..a7392639f9c4 100644 --- a/resources/views/portal/ninja2020/components/livewire/recurring-invoices-switch-autobilling.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/recurring-invoices-switch-autobilling.blade.php @@ -3,6 +3,6 @@ wire:change="updateAutoBilling" {{ $invoice->auto_bill_enabled ? 'checked' : '' }}> - {{ $invoice->auto_bill_enabled || $invoice->auto_bill === 'optout' ? ctrans('texts.auto_bill_enabled') : ctrans('texts.auto_bill_disabled') }} + {{ ctrans('texts.enable_auto_bill') }}