{{ Form::label('name', trans('global.legend.name'), ['class' => 'col-sm-2 col-form-label required']) }}
@foreach ($activeLanguages as $language)
{{ Form::text('name[' . $language->id . ']', !!old() ? old('name[' . $language->id . ']') : (isset($article) ? $article->translate('name', $language->id, '') : null), ['class' => 'form-control']) }}
@endforeach
{{ Form::label('slug', trans('global.legend.slug'), ['class' => 'col-sm-2 col-form-label required']) }}
{{ Form::text('slug', null, ['class' => 'form-control']) }} @lang('global.tip.slug')
{{ Form::label('excerpt', trans('global.legend.excerpt'), ['class' => 'col-sm-2 col-form-label']) }}
@foreach ($activeLanguages as $language)
{{ Form::textarea('excerpt[' . $language->id . ']', !!old() ? old('excerpt[' . $language->id . ']') : (isset($article) ? $article->translate('excerpt', $language->id, '') : null), ['rows' => '3', 'class' => 'form-control']) }}
@endforeach @lang('global.tip.excerpt')
{{ Form::label('content', trans('global.legend.content'), ['class' => 'col-sm-2 col-form-label required']) }}
@foreach ($activeLanguages as $language)
{{ Form::textarea('content[' . $language->id . ']', !!old() ? old('content[' . $language->id . ']') : (isset($article) ? $article->translate('content', $language->id, '') : null), ['rows' => '10', 'class' => 'form-control tinymce']) }}
@endforeach
{{ Form::label('published_at', trans('global.legend.publishedAt'), ['class' => 'col-sm-2 col-form-label required']) }}

{{ Form::label('thumbnail', trans('global.legend.thumbnail'), ['class' => 'col-sm-2 col-form-label']) }}
@if (!old('thumbnail') && isset($article) && $article->existsThumbnail()) @lang('global.tip.thumbnail')
@endif @if (!!old() && old('thumbnail'))
@endif

{{ Form::label('attachments', trans('global.legend.attachments'), ['class' => 'col-sm-2 col-form-label']) }}
@if (isset($article) && !$article->attachments->isEmpty()) @lang('global.tip.attachments') @foreach ($article->attachments as $attachment)
{{ $attachment->name }} @if ($attachment->exists()) {{ $attachment->getExtension() }} @else @lang('global.error.fileNotFound') @endif
@endforeach @endif @if (!!old() && old('attachments')) @foreach (old('attachments') as $key => $file)
{{ old('attachmentsNames')[$key] ?? $file }} {{ pathinfo(config('constants.paths.temporary') . $file, PATHINFO_EXTENSION) }}
@endforeach @endif

{{ Form::submit($submitButtonText, ['class' => 'btn btn-primary']) }}
@push('styles') @endpush @push('scripts') @endpush