@php
$descriptions = $content?$content->descriptions->keyBy('lang')->toArray():[];
@endphp
@foreach ($languages as $code => $language)
@if ($errors->has('descriptions.'.$code.'.title'))
{{ $errors->first('descriptions.'.$code.'.title') }}
@else
{{ trans('admin.max_c',['max'=>200]) }}
@endif
@if ($errors->has('descriptions.'.$code.'.keyword'))
{{ $errors->first('descriptions.'.$code.'.keyword') }}
@else
{{ trans('admin.max_c',['max'=>200]) }}
@endif
{{ old()?old('descriptions.'.$code.'.description'):($descriptions[$code]['description']??'') }}
@if ($errors->has('descriptions.'.$code.'.description'))
{{ $errors->first('descriptions.'.$code.'.description') }}
@else
{{ trans('admin.max_c',['max'=>300]) }}
@endif
@if ($errors->has('descriptions.'.$code.'.content'))
{{ $errors->first('descriptions.'.$code.'.content') }}
@endif
@endforeach
{{-- select category --}}
@if ($errors->has('category_id'))
{{ $errors->first('category_id') }}
@endif
{{-- //select category --}}
@if ($errors->has('alias'))
{{ $errors->first('alias') }}
@endif
@if ($errors->has('image'))
{{ $errors->first('image') }}
@endif
@if (old('image',$content['image']??''))
) }})
@endif
@if ($errors->has('sort'))
{{ $errors->first('sort') }}
@endif