@extends('admin.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') !!}
@if ($errors->has('descriptions.'.$code.'.title')) {{ $errors->first('descriptions.'.$code.'.title') }} @endif
@if ($errors->has('descriptions.'.$code.'.keyword')) {{ $errors->first('descriptions.'.$code.'.keyword') }} @endif
@if ($errors->has('descriptions.'.$code.'.description')) {{ $errors->first('descriptions.'.$code.'.description') }} @endif
@endforeach
@if ($errors->has('parent')) {{ $errors->first('parent') }} @endif
@if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if ($errors->has('sort')) {{ $errors->first('sort') }} @endif
@endsection @push('styles') {{-- switch --}} @endpush @push('scripts') {{-- switch --}} @endpush