diff --git a/resources/views/accounts/product.blade.php b/resources/views/accounts/product.blade.php index 082c99396382..4e0677809bbc 100644 --- a/resources/views/accounts/product.blade.php +++ b/resources/views/accounts/product.blade.php @@ -33,7 +33,9 @@ {!! Former::text('cost') !!} - @include('partials.tax_rates') + @if ($account->invoice_item_taxes) + @include('partials.tax_rates') + @endif diff --git a/resources/views/partials/tax_rates.blade.php b/resources/views/partials/tax_rates.blade.php index 01008471b3cf..293c5065b555 100644 --- a/resources/views/partials/tax_rates.blade.php +++ b/resources/views/partials/tax_rates.blade.php @@ -1,29 +1,26 @@ -@if ($account->invoice_item_taxes) - {!! Former::select('tax_select1') - ->addOption('','') - ->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate')) - ->onchange('taxSelectChange(event)') - ->fromQuery($taxRates) !!} +{!! Former::select('tax_select1') + ->addOption('','') + ->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate')) + ->onchange('taxSelectChange(event)') + ->fromQuery($taxRates) !!} -
- {!! Former::input('tax_rate1') !!} - {!! Former::input('tax_name1') !!} -
+
+ {!! Former::input('tax_rate1') !!} + {!! Former::input('tax_name1') !!} +
-
- {!! Former::select('tax_select2') - ->addOption('','') - ->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate')) - ->onchange('taxSelectChange(event)') - ->fromQuery($taxRates) !!} - -
- {!! Former::input('tax_rate2') !!} - {!! Former::input('tax_name2') !!} -
-
-@endif +
+ {!! Former::select('tax_select2') + ->addOption('','') + ->label(isset($taxRateLabel) ? $taxRateLabel : trans('texts.tax_rate')) + ->onchange('taxSelectChange(event)') + ->fromQuery($taxRates) !!} +
+ {!! Former::input('tax_rate2') !!} + {!! Former::input('tax_name2') !!} +
+