Translate country name in PDF #1225

This commit is contained in:
Hillel Coren 2017-02-17 16:28:42 +02:00
parent 86816cbb66
commit 1619e893fa

View File

@ -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);