@php $isEdit = isset($campaign) && $campaign->exists; $action = $isEdit ? route('admin.campaigns.update', $campaign) : route('admin.campaigns.store'); $meta = $campaign->category_meta ?? []; @endphp
@csrf @if($isEdit) @method('PUT') @endif
{{-- ================= LEFT STICKY NAVIGATION ================= --}}
⚡ CAMPAIGN CANVAS STEPS
{{-- ================= RIGHT CONTENT PANELS ================= --}}
{{-- ---------------- STEP 1: BASIC DETAILS & GOAL ---------------- --}}

📋 1. Basic Details & Seva Goal (अभियान विवरण व लक्ष्य)

Set the core cause, headline, financial goal, and campaign duration.

श्रेणी बदलते ही Step 3 के फ़ील्ड्स और आवश्यक दस्तावेज़ स्वतः अनुकूलित हो जाएंगे।
@if($campaign->patient_photo)
Current Photo
@endif
@if($campaign->cover_banner)
Current Banner
@endif
{{-- ---------------- STEP 2: FUNDRAISER ACCOUNT ---------------- --}}

👤 2. Fundraiser Account (अभियान कर्ता खाता प्रबंधन)

Link an existing devotee/fundraiser account with instant live search, or create a brand new account directly.

{{-- Mode A: Link Existing Fundraiser with Live Search Box --}}
@foreach($users as $u)
{{ $u->name }} {{ $u->email }} | {{ $u->mobile ?: 'No mobile' }}
@endforeach
Selected: {{ $campaign->user?->name ?? ($users->first()->name ?? 'Devotee') }} ({{ $campaign->user?->email ?? ($users->first()->email ?? '') }})
{{-- Mode B: Register New Fundraiser Account --}}
{{-- ---------------- STEP 3: DYNAMIC CATEGORY FIELDS ---------------- --}}

🏷️ 3. Dynamic Category Details (श्रेणी-आधारित विशिष्ट विवरण)

These fields adapt automatically based on the chosen category in Step 1.

{{-- 3.1 Medical Treatment --}}
🏥 Medical Treatment & Surgery (चिकित्सा व जीवन रक्षा)

अस्पताल और डॉक्टर के विवरण का सत्यापन प्रत्यक्ष फोन कॉल द्वारा किया जाएगा।

{{-- 3.2 Religious Trust & Ashram --}} {{-- 3.3 Gau Seva --}} {{-- 3.4 Vidya Daan --}} {{-- 3.5 Mandir Restoration --}} {{-- 3.6 Emergency Relief --}}
{{-- ---------------- STEP 4: ESCROW PAYOUT & BANK ---------------- --}}

🏦 4. Escrow Payout & Bank Details (प्रत्यक्ष भुगतान खाता)

To prevent fraud, donations for medical cases over ₹1,00,000 are transferred directly to the Hospital's official bank account.

{{-- ---------------- STEP 5: ADMIN INTERNAL FEES (CONFIDENTIAL) ---------------- --}}

🔒 5. Admin Internal Financial Controls (आंतरिक वित्तीय प्रबंधन)

Strictly Confidential / पूर्णतः गुप्त: यह सेक्शन पब्लिक को या फंडरेज़र को कभी नहीं दिखेगा। केस-दर-केस ऑपरेशनल व एडमिन फ़ीस रिटेंशन का निर्णय यहाँ से लें।

डिफ़ॉल्ट 0% है। यदि किसी केस में विशेष विधिक या व्यवस्था खर्च हो तो प्रतिशत यहाँ दर्ज करें।
{{-- ---------------- STEP 6: VERIFICATION & VISIBILITY ---------------- --}}

🛡️ 6. Verification Status & Visibility Badges (सत्यापन व बैज)

Manage campaign lifecycle, verified trust seal, emergency tag, and homepage spotlight.

{{-- ---------------- STEP 7: PROOF DOCUMENTS VAULT ---------------- --}}

📄 7. Proof Documents Vault (प्रमाण पत्र व मेडिकल रिपोर्ट्स)

Upload verified doctor estimate letters, prescriptions, clinical bed photos, or trust deeds for public transparency.

➕ Upload New Document (नया प्रमाण पत्र संलग्न करें)

{{-- Attached Documents List --}} @if($isEdit && $campaign->documents->isNotEmpty())

📎 Attached Documents (संलग्न प्रमाण पत्र)

@foreach($campaign->documents as $doc)
{{ $doc->label }}
View Document ↗
📄
@endforeach
@endif
{{-- ================= STICKY SUBMIT BAR ================= --}}
Cancel / Back