@php
$descriptions = $category?$category->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
@endforeach
@if ($errors->has('parent'))
{{ $errors->first('parent') }}
@endif
@if ($errors->has('alias'))
{{ $errors->first('alias') }}
@endif
@if ($errors->has('image'))
{{ $errors->first('image') }}
@endif
@if (old('image',$category['image']??''))
) }})
@endif
@if ($errors->has('sort'))
{{ $errors->first('sort') }}
@endif