Variable Name Changed
This commit is contained in:
parent
de9f7859c3
commit
40382c83bc
|
|
@ -8,7 +8,7 @@
|
|||
<div class="content">
|
||||
@php
|
||||
$locale = request()->get('locale') ?: app()->getLocale();
|
||||
$translations = $content->translations->where('locale', $locale)->first();
|
||||
$translation = $content->translations->where('locale', $locale)->first();
|
||||
@endphp
|
||||
|
||||
<form
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
{{ __('velocity::app.admin.contents.page.title') }}
|
||||
<span class="locale">[{{ $locale }}]</span>
|
||||
</label>
|
||||
<input type="text" v-validate="'required|max:100'" class="control" id="title" name="{{$locale}}[title]" value="{{ old($locale)['title'] ?? isset($translations->title) ? $translations->title : '' }}" data-vv-as=""{{ __('velocity::app.admin.contents.page.title') }}""/>
|
||||
<input type="text" v-validate="'required|max:100'" class="control" id="title" name="{{$locale}}[title]" value="{{ old($locale)['title'] ?? isset($translation->title) ? $translation->title : '' }}" data-vv-as=""{{ __('velocity::app.admin.contents.page.title') }}""/>
|
||||
|
||||
<span class="control-error" v-if="errors.has('{{$locale}}[title]')">@{{ errors.first('{!!$locale!!}[title]') }}</span>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue