From 312e8e8e48fcb4c5bc879c3cd4fbb2c015283515 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 20 Dec 2016 15:09:41 +0200 Subject: [PATCH] Fixes #1211 --- app/Http/Controllers/ClientPortalController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Controllers/ClientPortalController.php b/app/Http/Controllers/ClientPortalController.php index 848942d85385..99c183012c89 100644 --- a/app/Http/Controllers/ClientPortalController.php +++ b/app/Http/Controllers/ClientPortalController.php @@ -99,6 +99,11 @@ class ClientPortalController extends BaseController 'phone', ]); + // translate the client country name + if ($invoice->client->country) { + $invoice->client->country->name = trans('texts.country_' . $invoice->client->country->name); + } + $data = []; $paymentTypes = $this->getPaymentTypes($account, $client, $invitation); $paymentURL = '';