From ecaf16f9bdb9f0e8599a16edf31489f6c6423b66 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 28 Feb 2019 15:07:40 +0200 Subject: [PATCH] Fix placholder translation --- resources/views/clients/edit.blade.php | 2 +- resources/views/vendors/edit.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/clients/edit.blade.php b/resources/views/clients/edit.blade.php index 9c3a74b682f1..5e172d1674b0 100644 --- a/resources/views/clients/edit.blade.php +++ b/resources/views/clients/edit.blade.php @@ -219,7 +219,7 @@
{!! Former::select('currency_id')->addOption('','') - ->placeholder($account->currency ? trans('texts.currency_'.Str::slug($account->currency->name, '_')) : '') + ->placeholder($account->currency ? $account->currency->getTranslatedName() : '') ->fromQuery($currencies, 'name', 'id') !!} {!! Former::select('language_id')->addOption('','') ->placeholder($account->language ? trans('texts.lang_'.$account->language->name) : '') diff --git a/resources/views/vendors/edit.blade.php b/resources/views/vendors/edit.blade.php index 77270b2e10bd..5f22416aa577 100644 --- a/resources/views/vendors/edit.blade.php +++ b/resources/views/vendors/edit.blade.php @@ -118,7 +118,7 @@
{!! Former::select('currency_id')->addOption('','') - ->placeholder($account->currency ? $account->currency->name : '') + ->placeholder($account->currency ? $account->currency->getTranslatedName() : '') ->fromQuery($currencies, 'name', 'id') !!} {!! Former::textarea('private_notes')->rows(6) !!}