@csrf @if ($errors->any()) @endif @php $selectedCategoryIds = collect(old('categories', isset($article) && $article->exists ? $article->categories->pluck('id')->all() : [])) ->map(fn ($id) => (int) $id) ->all(); $selectedTagIds = collect(old('tags', isset($article) && $article->exists ? $article->tags->pluck('id')->all() : [])) ->map(fn ($id) => (int) $id) ->all(); $metaBefore = old('meta.before_start', isset($article) ? ($article->meta['before_start'] ?? '') : ''); $metaQuick = old('meta.quick_solutions', isset($article) ? ($article->meta['quick_solutions'] ?? '') : ''); $metaLinks = old('meta.external_links', isset($article) ? ($article->meta['external_links'] ?? []) : []); if (! is_array($metaLinks) || $metaLinks === []) { $metaLinks = [['url' => '', 'label' => '']]; } @endphp
@error('title') {{ $message }} @enderror
@error('slug') {{ $message }} @enderror
يمكنك اختيار أكثر من تصنيفة.
@include('admin.partials.show-new-toggle', ['model' => $article ?? null, 'toggleId' => 'show_new_badge_article'])
يمكنك اختيار أكثر من وسم .
@error('body') {{ $message }} @enderror

أقسام إضافية (الشريط الجانبي في صفحة المقالة)

يظهر القسم في المقالة فقط عند إضافة رابط واحد على الأقل.

عودة
@once @push('scripts') @php $tinymceToolbar = 'undo redo | blocks | bold italic underline strikethrough | forecolor backcolor | alignright aligncenter alignleft alignjustify | bullist numlist | link image table | removeformat | code | fullscreen'; @endphp @endpush @endonce