From 1619e893fadcda2ac5d6862d2e5fac2214e29990 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 17 Feb 2017 16:28:42 +0200 Subject: [PATCH] Translate country name in PDF #1225 --- app/Http/Controllers/ClientPortalController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ClientPortalController.php b/app/Http/Controllers/ClientPortalController.php index b30dc8c0ebffc..11f37a7074a36 100644 --- a/app/Http/Controllers/ClientPortalController.php +++ b/app/Http/Controllers/ClientPortalController.php @@ -103,10 +103,13 @@ class ClientPortalController extends BaseController 'phone', ]); - // translate the client country name + // translate the country names if ($invoice->client->country) { $invoice->client->country->name = trans('texts.country_' . $invoice->client->country->name); } + if ($invoice->account->country) { + $invoice->account->country->name = trans('texts.country_' . $invoice->account->country->name); + } $data = []; $paymentTypes = $this->getPaymentTypes($account, $client, $invitation);