@php $isEdit = isset($article) && $article; $action = $isEdit ? route('admin.articles.update', $article) : route('admin.articles.store'); @endphp
@csrf @if($isEdit) @method('PUT') @endif
{{-- Left Sticky Canvas Navigation --}}
Article Editor Canvas
कथा व आलेख संपादन
{{-- Right Panel Sections --}}
{{-- 1. Title & Subject --}}

🪶 1. Article Title & Sacred Subject

लेख का मुख्य पावन शीर्षक एवं 8 स्वीकृत सनातन विषयों में से चयन करें।

{{-- 2. Author Contributor Attribution --}}

👤 2. Author / Devotee Attribution

यह लेख किस लेखक या विद्वान के नाम से प्रकाशित होगा।

{{-- Mode Switcher: Existing vs New Author --}}
{{-- Existing Author Searchable Dropdown --}}
@php $selectedAuthor = null; $selectedAuthorId = old('user_id', $article->user_id ?? null); if ($selectedAuthorId && isset($authors)) { $selectedAuthor = $authors->firstWhere('id', $selectedAuthorId); } if (!$selectedAuthor && isset($authors) && $authors->isNotEmpty()) { $selectedAuthor = $authors->first(); } @endphp
@if($selectedAuthor) 👤 {{ $selectedAuthor->name }} ({{ $selectedAuthor->username ? '@' . $selectedAuthor->username : 'ID: ' . $selectedAuthor->id }}) — {{ $selectedAuthor->email }} @else — Select Author / Blogger by Name, @username or Email — @endif ▼
सूची में से लेखक खोजें। यदि नया लेखक जोड़ना है तो ऊपर "➕ नया लेखक रजिस्टर करें" चुनें।
{{-- Inline New Author Registration Box --}}
{{-- 3. Sacred Geography --}}

📍 3. Sacred Geography & Place Linking

आलेख को पावन तीर्थ, मंदिर या नगर से लिंक करें ताकि यह उनके पेज पर भी दिखे।

{{-- 4. Cover Media --}}

🖼️ 4. Cover Banner Image

लेख के शीर्ष पर प्रदर्शित होने वाला उच्च गुणवत्ता वाला चित्र (अनुशंसित 1200x630)।

📷 कवर चित्र अपलोड करें (Click to Choose Image) JPG, PNG, WebP (Max 5MB) @if($isEdit && $article->cover_image)
@endif
{{-- 5. Content Editor --}}

✍️ 5. Sacred Content & Summary

आलेख का संक्षिप्त सार एवं संपूर्ण लीला कथा / दर्शन वृत्तांत।

{{-- 6. Status & Publishing --}}

⚙️ 6. Publishing Status & Time

आलेख की लाइव स्थिति और पठन समय का निर्धारण।