@extends($templatePathAdmin.'layout') @section('main')

{{ $title_description??'' }}

@php $descriptions = $category?$category->descriptions->keyBy('lang')->toArray():[]; @endphp @foreach ($languages as $code => $language)

{{ $language->name }} {!! sc_image_render($language->icon,'20px','20px', $language->name) !!}

@if ($errors->has('descriptions.'.$code.'.title')) {{ $errors->first('descriptions.'.$code.'.title') }} @else {{ sc_language_render('admin.max_c',['max'=>200]) }} @endif
@if ($errors->has('descriptions.'.$code.'.keyword')) {{ $errors->first('descriptions.'.$code.'.keyword') }} @else {{ sc_language_render('admin.max_c',['max'=>200]) }} @endif
@if ($errors->has('descriptions.'.$code.'.description')) {{ $errors->first('descriptions.'.$code.'.description') }} @else {{ sc_language_render('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
@endsection @push('styles') @endpush @push('scripts') @include($templatePathAdmin.'component.ckeditor_js') @endpush