Form label multilingual issue solved..

This commit is contained in:
Cüneyt Şentürk 2022-06-03 09:12:58 +03:00
parent e7ea84f62f
commit 80b6b19b52
15 changed files with 25 additions and 25 deletions

View File

@ -60,7 +60,7 @@
</x-slot> </x-slot>
<x-slot name="body"> <x-slot name="body">
<x-form.group.select name="landing_page" label="{!! trans('auth.landing_page') !!}" :options="$landing_pages" /> <x-form.group.select name="landing_page" label="{{ trans('auth.landing_page') }}" :options="$landing_pages" />
<x-form.group.locale /> <x-form.group.locale />
</x-slot> </x-slot>

View File

@ -7,7 +7,7 @@
path="{{ $path }}" path="{{ $path }}"
name="{{ $name }}" name="{{ $name }}"
label="{{ trans_choice('general.categories', 1) }}" label="{!! trans_choice('general.categories', 1) !!}"
:options="$categories" :options="$categories"
:selected="$selected" :selected="$selected"
sort-options="false" sort-options="false"
@ -27,7 +27,7 @@
path="{{ $path }}" path="{{ $path }}"
name="{{ $name }}" name="{{ $name }}"
label="{{ trans_choice('general.categories', 1) }}" label="{!! trans_choice('general.categories', 1) !!}"
:options="$categories" :options="$categories"
:selected="$selected" :selected="$selected"
sort-options="false" sort-options="false"
@ -47,7 +47,7 @@
remote_action="{{ $remoteAction }}" remote_action="{{ $remoteAction }}"
name="{{ $name }}" name="{{ $name }}"
label="{{ trans_choice('general.categories', 1) }}" label="{!! trans_choice('general.categories', 1) !!}"
:options="$categories" :options="$categories"
:selected="$selected" :selected="$selected"
sort-options="false" sort-options="false"
@ -64,7 +64,7 @@
@else @else
<x-form.group.select <x-form.group.select
name="{{ $name }}" name="{{ $name }}"
label="{{ trans_choice('general.categories', 1) }}" label="{!! trans_choice('general.categories', 1) !!}"
:options="$categories" :options="$categories"
:selected="$selected" :selected="$selected"
sort-options="false" sort-options="false"

View File

@ -26,7 +26,7 @@
<x-form.icon icon="{{ $icon }}" /> <x-form.icon icon="{{ $icon }}" />
@endif @endif
title="{{ $label }}" title="{!! $label !!}"
@if (isset($attributes['placeholder'])) @if (isset($attributes['placeholder']))
placeholder="{{ $attributes['placeholder'] }}" placeholder="{{ $attributes['placeholder'] }}"

View File

@ -8,7 +8,7 @@
add-new add-new
name="{{ $name }}" name="{{ $name }}"
label="{{ $label }}" label="{!! $label !!}"
:options="$contacts" :options="$contacts"
:selected="$selected" :selected="$selected"
@ -28,7 +28,7 @@
add-new add-new
name="{{ $name }}" name="{{ $name }}"
label="{{ $label }}" label="{!! $label !!}"
:options="$contacts" :options="$contacts"
:selected="$selected" :selected="$selected"
@ -48,7 +48,7 @@
add-new add-new
name="{{ $name }}" name="{{ $name }}"
label="{{ $label }}" label="{!! $label !!}"
:options="$contacts" :options="$contacts"
:selected="$selected" :selected="$selected"
@ -65,7 +65,7 @@
<x-form.group.select <x-form.group.select
add-new add-new
name="{{ $name }}" name="{{ $name }}"
label="{{ $label }}" label="{!! $label !!}"
:options="$contacts" :options="$contacts"
:selected="$selected" :selected="$selected"

View File

@ -1,6 +1,6 @@
<x-form.group.select <x-form.group.select
name="country" name="country"
label="{{ trans_choice('general.countries', 1) }}" label="{!! trans_choice('general.countries', 1) !!}"
:options="trans('countries')" :options="trans('countries')"
:selected="setting('company.country')" :selected="setting('company.country')"
not-required not-required

View File

@ -5,7 +5,7 @@
:path="$path" :path="$path"
:field="$field" :field="$field"
name="{{ $name }}" name="{{ $name }}"
label="{{ trans_choice('general.currencies', 1) }}" label="{!! trans_choice('general.currencies', 1) !!}"
:options="$currencies" :options="$currencies"
:selected="$selected" :selected="$selected"
change="onChangeCurrency" change="onChangeCurrency"
@ -22,7 +22,7 @@
@else @else
<x-form.group.select <x-form.group.select
name="{{ $name }}" name="{{ $name }}"
label="{{ trans_choice('general.currencies', 1) }}" label="{!! trans_choice('general.currencies', 1) !!}"
:options="$currencies" :options="$currencies"
:selected="$selected" :selected="$selected"
change="onChangeCurrency" change="onChangeCurrency"

View File

@ -39,7 +39,7 @@
icon="{{ $icon }}" icon="{{ $icon }}"
@endif @endif
title="{{ $label }}" title="{!! $label !!}"
placeholder="{{ $placeholder }}" placeholder="{{ $placeholder }}"

View File

@ -31,7 +31,7 @@
icon="{{ $icon }}" icon="{{ $icon }}"
@endif @endif
title="{{ $label }}" title="{!! $label !!}"
placeholder="{{ $placeholder }}" placeholder="{{ $placeholder }}"

View File

@ -43,7 +43,7 @@
<x-form.icon icon="{{ $icon }}" /> <x-form.icon icon="{{ $icon }}" />
@endif @endif
title="{{ $label }}" title="{!! $label !!}"
@if (isset($attributes['placeholder'])) @if (isset($attributes['placeholder']))
placeholder="{{ $attributes['placeholder'] }}" placeholder="{{ $attributes['placeholder'] }}"

View File

@ -1,6 +1,6 @@
<x-form.group.select <x-form.group.select
name="locale" name="locale"
label="{{ trans_choice('general.languages', 1) }}" label="{!! trans_choice('general.languages', 1) !!}"
:options="language()->allowed()" :options="language()->allowed()"
:selected="$selected" :selected="$selected"
/> />

View File

@ -39,7 +39,7 @@
{{-- :error="{{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }}" --}} {{-- :error="{{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }}" --}}
name="{{ $name }}" name="{{ $name }}"
title="{{ $label }}" title="{!! $label !!}"
:group_class="'{{ $formGroupClass }}'" :group_class="'{{ $formGroupClass }}'"
@if (! empty($icon)) @if (! empty($icon))

View File

@ -1,6 +1,6 @@
<x-form.group.select <x-form.group.select
name="payment_method" name="payment_method"
label="{{ trans_choice('general.payment_methods', 1) }}" label="{!! trans_choice('general.payment_methods', 1) !!}"
:options="$payment_methods" :options="$payment_methods"
:selected="$selected" :selected="$selected"

View File

@ -1,12 +1,12 @@
<akaunting-recurring <akaunting-recurring
start-text="{{ trans('recurring.limit_date', ['type' => \Str::replace('-recurring', '', $type)]) }}" start-text="{!! trans('recurring.limit_date', ['type' => \Str::replace('-recurring', '', $type)]) !!}"
:date-range-text="{{ json_encode(trans('general.date_range')) }}" :date-range-text="{{ json_encode(trans('general.date_range')) }}"
middleText="{{ trans('recurring.limit_middle') }}" middleText="{!! trans('recurring.limit_middle') !!}"
endText="{{ Str::plural($type) }}" endText="{{ Str::plural($type) }}"
:frequencies="{{ json_encode($frequencies) }}" :frequencies="{{ json_encode($frequencies) }}"
frequency-text="{{ trans('recurring.frequency_type', ['type' => \Str::replace('-recurring', '', $type)]) }}" frequency-text="{!! trans('recurring.frequency_type', ['type' => \Str::replace('-recurring', '', $type)]) !!}"
frequency-every-text="{{ trans('recurring.every') }}" frequency-every-text="{!! trans('recurring.every') !!}"
frequency-value="{{ $frequency }}" frequency-value="{{ $frequency }}"
:frequency-error="form.errors.get('recurring_frequency')" :frequency-error="form.errors.get('recurring_frequency')"
@if ($attributes->has('@frequency')) @if ($attributes->has('@frequency'))

View File

@ -31,7 +31,7 @@
<x-form.icon icon="{{ $icon }}" /> <x-form.icon icon="{{ $icon }}" />
@endif @endif
title="{{ $label }}" title="{!! $label !!}"
@if (isset($attributes['placeholder'])) @if (isset($attributes['placeholder']))
placeholder="{{ $attributes['placeholder'] }}" placeholder="{{ $attributes['placeholder'] }}"

View File

@ -35,7 +35,7 @@
icon="{{ $icon }}" icon="{{ $icon }}"
@endif @endif
title="{{ $label }}" title="{!! $label !!}"
placeholder="{{ $placeholder }}" placeholder="{{ $placeholder }}"