Variable Name Changed

This commit is contained in:
Devansh 2020-08-17 15:16:29 +05:30
parent de9f7859c3
commit 40382c83bc
1 changed files with 2 additions and 2 deletions

View File

@ -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="&quot;{{ __('velocity::app.admin.contents.page.title') }}&quot;"/>
<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="&quot;{{ __('velocity::app.admin.contents.page.title') }}&quot;"/>
<span class="control-error" v-if="errors.has('{{$locale}}[title]')">@{{ errors.first('{!!$locale!!}[title]') }}</span>
</div>