From 324c4d107f5c6634110b7c41fe7a3de6aae4f4ad Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 22 May 2017 10:52:14 +0300 Subject: [PATCH] =?UTF-8?q?Show=20=E2=80=98Default=20tax=20rate=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/accounts/tax_rates.blade.php | 2 +- resources/views/partials/tax_rates.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/accounts/tax_rates.blade.php b/resources/views/accounts/tax_rates.blade.php index e850f462f6f3..7373b4ece29f 100644 --- a/resources/views/accounts/tax_rates.blade.php +++ b/resources/views/accounts/tax_rates.blade.php @@ -47,7 +47,7 @@   - @include('partials.tax_rates') + @include('partials.tax_rates', ['taxRateLabel' => trans('texts.default_tax_rate_id')])   {!! Former::actions( Button::success(trans('texts.save'))->submit()->appendIcon(Icon::create('floppy-disk')) ) !!} diff --git a/resources/views/partials/tax_rates.blade.php b/resources/views/partials/tax_rates.blade.php index 9e1d546f802b..01008471b3cf 100644 --- a/resources/views/partials/tax_rates.blade.php +++ b/resources/views/partials/tax_rates.blade.php @@ -1,7 +1,7 @@ @if ($account->invoice_item_taxes) {!! Former::select('tax_select1') ->addOption('','') - ->label(trans('texts.tax_rate')) + ->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate')) ->onchange('taxSelectChange(event)') ->fromQuery($taxRates) !!} @@ -13,7 +13,7 @@
{!! Former::select('tax_select2') ->addOption('','') - ->label(trans('texts.tax_rate')) + ->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate')) ->onchange('taxSelectChange(event)') ->fromQuery($taxRates) !!}