@php $isEdit = isset($row) && $row; $action = $isEdit ? route('admin.directory.listings.update', $row) : route('admin.directory.listings.store'); @endphp
{{-- ==================== LEFT CANVAS NAVIGATION MENU ==================== --}} {{-- ==================== RIGHT CONTENT CANVAS ==================== --}}
@if(isset($errors) && $errors->any())
⚠️ Please check the following errors:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- Single Main Form for Sections 1 to 10 --}}
@csrf @if($isEdit) @method('PUT') @endif
Section 1 of 13

🏢 Entity Classification & Role

Choose the institutional identity
@php $curRole = old('entity_type', $row->entity_type ?? 'business'); @endphp
Section 2 of 13

🏷️ Basic Details, Story & Branding

Public facing brand identity & vendor ownership
{{-- Mode Switcher: Link Existing vs Register New Vendor --}}
{{-- Existing User Searchable Dropdown --}}
@php $selectedUser = null; $selectedUserId = old('user_id', $row->user_id ?? null); if ($selectedUserId && isset($users)) { $selectedUser = $users->firstWhere('id', $selectedUserId); } @endphp
@if($selectedUser) 👤 {{ $selectedUser->name }} ({{ $selectedUser->email }} · {{ $selectedUser->mobile ?: 'No Phone' }}) @else — Unassigned (Search & link Vendor by Name, Email or Phone) — @endif ▼
Assigned vendor can manage profile and view leads at /vendor/dashboard. यदि नया वेंडर खाता बनाना है तो ऊपर "➕ Register New Vendor Account" चुनें।
{{-- Inline New Vendor Account Registration --}}
Section 3 of 13

⚖️ Legal KYC & Compliance Details (दस्तावेज़ व कर विवरण)

Verification credentials, licenses, tax certifications & document uploads
📁
Instant Interactive Uploads: Aap kisi bhi upload box par kahin bhi click karein ya computer se file drag & drop karein — file turant background me upload hokar green verification badge dikhayegi aur images/directory/documents/ folder me secure store ho jayegi.
{{-- Registration No. + Document Upload --}}
📎
Upload Reg Certificate / Trust Deed Click anywhere or drag & drop (PDF / Image)
@if($isEdit && !empty($row?->kyc_documents['reg_doc']))
✓ Uploaded: {{ basename($row->kyc_documents['reg_doc']) }} 📄 View File ↗
@endif
{{-- GSTIN + Document Upload --}}
📎
Upload GSTIN Certificate Click anywhere or drag & drop (PDF / Image)
@if($isEdit && !empty($row?->kyc_documents['gstin_doc']))
✓ Uploaded: {{ basename($row->kyc_documents['gstin_doc']) }} 📄 View File ↗
@endif
{{-- PAN Number + Document Upload --}}
📎
Upload PAN Card Copy Click anywhere or drag & drop (PDF / Image)
@if($isEdit && !empty($row?->kyc_documents['pan_doc']))
✓ Uploaded: {{ basename($row->kyc_documents['pan_doc']) }} 📄 View File ↗
@endif
{{-- FSSAI License + Document Upload --}}
📎
Upload FSSAI Food License Proof Click anywhere or drag & drop (PDF / Image)
@if($isEdit && !empty($row?->kyc_documents['fssai_doc']))
✓ Uploaded: {{ basename($row->kyc_documents['fssai_doc']) }} 📄 View File ↗
@endif
{{-- Professional Title & Experience --}}
{{-- Darpan ID + Document Upload --}}
📎
Upload NITI Aayog Darpan Certificate Click anywhere or drag & drop (PDF / Image)
@if($isEdit && !empty($row?->kyc_documents['darpan_doc']))
✓ Uploaded: {{ basename($row->kyc_documents['darpan_doc']) }} 📄 View File ↗
@endif
{{-- Non-Profit & Religious Tax Exemptions (80G, 12A, FCRA) with File Uploads --}}
🛕 Religious Trust & Non-Profit Tax Exemptions (दान व आयकर छूट प्रमाणपत्र)
{{-- 80G --}}
📎
Upload Section 80G Order Certificate Click anywhere or drag & drop (PDF only)
@if($isEdit && !empty($row?->kyc_documents['doc_80g']))
✓ Uploaded: {{ basename($row->kyc_documents['doc_80g']) }} 📄 View File ↗
@endif
{{-- 12A --}}
📎
Upload Section 12A / 12AB Order Click anywhere or drag & drop (PDF only)
@if($isEdit && !empty($row?->kyc_documents['doc_12a']))
✓ Uploaded: {{ basename($row->kyc_documents['doc_12a']) }} 📄 View File ↗
@endif
{{-- FCRA --}}
📎
Upload FCRA Approval Document Click anywhere or drag & drop (PDF only)
@if($isEdit && !empty($row?->kyc_documents['doc_fcra']))
✓ Uploaded: {{ basename($row->kyc_documents['doc_fcra']) }} 📄 View File ↗
@endif
Section 4 of 13

🗂️ Primary Category, Offerings & Facilities

Controlled taxonomy, sub-offerings checklist & verified amenities
{{-- Sub-Offerings Checklist --}}
Please select a Primary Business Category above to view and tick approved sub-services.
{{-- Facilities & Amenities Checklist --}}
+ Facilities Master ↗
@php $selectedFacilities = old('facilities', $row?->facilities ?? []); if (!is_array($selectedFacilities)) { $selectedFacilities = (array) $selectedFacilities; } $renderedSlugs = []; @endphp
@if(isset($allFacilities) && $allFacilities->isNotEmpty()) @foreach($allFacilities as $fac) @php $renderedSlugs[] = $fac->slug; $isFacChecked = in_array($fac->slug, $selectedFacilities, true); @endphp @endforeach @endif @foreach((array) $selectedFacilities as $sel) @if(!in_array($sel, $renderedSlugs, true) && isset($facilityLabels[$sel])) @endif @endforeach
@php $fallbackCatId = \App\Models\Category::first()?->id ?? 509; $candidateCatId = old('category_id', $row->category_id ?? $fallbackCatId); $defaultCatId = \App\Models\Category::where('id', $candidateCatId)->exists() ? $candidateCatId : $fallbackCatId; @endphp
@if(!$isEdit)
Section 5 of 13

🛎️ Services & Offerings Catalog

List puja rituals, stays, tours, or guidance for your business (Direct WhatsApp enquiry)
{{-- Sub-Keywords Quick Fill Banner --}}
✨ Quick Fill from Sub-Keywords (Section 4): (Click any keyword to set Service Name)
Tick sub-keywords in Step 4 to see quick chips here.
{{-- Service Row 0 --}}
1 Service Item Details
📲 WhatsApp Enquiry button will be auto-generated for Yatris on your profile
You can also add or edit services at any time later.
Section 6 of 13

📦 Products & Sacred Bhog Catalog

List spiritual goods, prasad, books, puja items (display & WhatsApp inquiry)
{{-- Sub-Keywords Quick Fill Banner --}}
✨ Quick Fill from Sub-Keywords (Section 4): (Click any keyword to set Product Name)
Tick sub-keywords in Step 4 to see quick chips here.
{{-- Product Row 0 --}}
1 Product Item Details
📲 WhatsApp Enquiry button will be auto-generated for Yatris on your profile
Strictly informational listing & WhatsApp inquiry model (no cart/checkout).
@endif
Section 7 of 13

📞 Contact & Omnichannel Social Presence

Direct connect (Phone, WhatsApp, Websites & Global Networks)
{{-- Additional Global Social Accounts Repeater --}}

Additional Global Social Accounts & Channels (अंतर्राष्ट्रीय / अन्य सोशल लिंक्स)

Add Telegram, LinkedIn, WhatsApp Channel, Threads, TripAdvisor, Pinterest, Discord, etc.

@php $existingSocials = old('additional_social_links', $row->additional_social_links ?? []); @endphp @if(is_array($existingSocials) && count($existingSocials) > 0) @foreach($existingSocials as $idx => $s)
@endforeach @endif
Section 8 of 13

📍 Location, Google Maps & Mandir Proximity

Global geography hierarchy, postal code & pilgrimage landmarks
{{-- Global Geography Cascading Hierarchy --}}
🌐 Global Geography Hierarchy (Country ➔ State ➔ City ➔ Postal Code)
{{-- 1. Country --}}
@php $defaultCountryId = old('country_id', $row->country_id ?? ($countries->firstWhere('iso_code_2', 'IN')->id ?? ($countries->first()->id ?? ''))); @endphp
{{-- 2. State / Province --}}
@php $defaultStateId = old('state_id', $row->state_id ?? ''); @endphp
{{-- 3. City / Locality --}}
@php $defaultCityId = old('city_id', $row->city_id ?? ''); @endphp
{{-- 4. Postal / PIN Code --}}
{{-- Sacred Kshetra / Dham & Street Address Details --}}
@if(!empty($row->map_url)) Open ↗ @endif

💡 Coordinates will be auto-detected into Latitude & Longitude below if available in the link.

Section 9 of 13

📁 Media, Documents & Gallery Cabinet (फ़ोल्डर-वार फ़ाइल प्रबंधन)

Organized folder-wise: Legal Documents Vault, Brand Visuals, Photo Gallery & Catalog Images
{{-- FOLDER 1: LEGAL & KYC DOCUMENTS VAULT --}}
📁

Folder 1: images/directory/documents/

Legal KYC Certificates, Tax Orders, Trade License & General Brochure PDFs

{{-- Table of KYC documents status --}}
@php $kycItems = [ 'reg_doc' => ['label' => 'Registration Certificate', 'icon' => '📜'], 'gstin_doc' => ['label' => 'GSTIN Certificate', 'icon' => '💳'], 'pan_doc' => ['label' => 'PAN Card Document', 'icon' => '🆔'], 'fssai_doc' => ['label' => 'FSSAI License', 'icon' => '🥗'], 'doc_80g' => ['label' => '80G Tax Exemption Order', 'icon' => '🛕'], 'doc_12a' => ['label' => '12A Non-Profit Order', 'icon' => '🏛️'], 'doc_fcra' => ['label' => 'FCRA Approval Order', 'icon' => '🌍'], 'darpan_doc' => ['label' => 'Darpan Portal Document', 'icon' => '📋'], ]; @endphp @foreach($kycItems as $key => $info) @php $isUp = $isEdit && !empty($row?->kyc_documents[$key]); @endphp
{{ $info['icon'] }}
{{ $info['label'] }}
{{ $isUp ? '✓ Uploaded in documents/' : 'Not uploaded yet' }}
@if($isUp) View ↗ @endif
@endforeach
{{-- General Brochure PDF Upload --}}
Stored directly into images/directory/documents/ folder
@if($isEdit && !empty($row?->brochure_pdf)) 📄 View Uploaded Brochure @endif
{{-- FOLDER 2: BRAND & STOREFRONT MEDIA --}}
🏷️

Folder 2: Brand Visual Assets (logos/, covers/, storefronts/)

Profile logo emblem, main storefront cover banner & street outer signboard photo

{{-- Logo --}}
Saved to images/directory/logos/ @if($isEdit && $row->logo)
Current Logo
@endif
{{-- Cover Image --}}
Saved to images/directory/covers/ @if($isEdit && $row->cover_image)
Current Banner
@endif
{{-- Signboard Photo --}}
Saved to images/directory/storefronts/ @if($isEdit && !empty($row?->storefront_image))
Current Signboard
@endif
{{-- Ratings & Tour Video --}}
{{-- FOLDER 3: PHOTO GALLERY --}}
🖼️

Folder 3: Photo Gallery (images/directory/gallery/) @if($isEdit)({{ $row->gallery->count() }} photos uploaded)@endif

Upload campus, room views, darshan pandal, or shop interior photos for visitors.

@if(!$isEdit) {{-- Multi-photo upload for Create mode --}}
📸

Select Gallery Photos (एकाधिक फोटो चुनें)

You can select multiple photos at once. They will be saved to images/directory/gallery/ upon profile creation.

@else {{-- In edit mode: Multi upload + existing gallery grid --}}
New photos will be stored into images/directory/gallery/
@if($row->gallery->isNotEmpty())
@foreach($row->gallery as $photo)
@endforeach
@else

No photos in the gallery yet.

@endif @endif
{{-- FOLDER 4: CATALOG OFFERINGS MEDIA --}}
📦

Folder 4: Catalog Media Folders

Services Images stored in images/directory/services/ • Products Images stored in images/directory/products/

Section 10 of 13

⏰ Business Hours & Split Darshan Timings

Split temple shifts (morning/evening) and weekly calendar schedule
{{-- Split Shifts --}}
⏰ Temple Darshan Split Shifts (Automatic Bhog & Afternoon Break Detection)
to
to
{{-- 7-Day Day-by-Day Table --}}
Weekly Day-by-Day Opening Schedule
@foreach(['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'] as $d => $day) @php $h = $hoursByDay->get($d); @endphp
{{ $day }}
@endforeach
Section 11 of 13

🔍 SEO & Search Discovery

Google search preview and metadata tags
{{-- PANEL 12: COMMERCIAL PLANS & SUBSCRIPTIONS (MANAGED BY ANGARE WORLD) --}}
Section 12 of 13

💎 Commercial Plans & Subscription

Official subscription tier, promotional boost & verified trust seal
{{-- ANGARE WORLD Official Partnership Banner --}}
ANGARE World
Official Technology & Commercial Partner
Commercial Plans Managed & Supported by ANGARE WORLD
Beyond the range — All commercial subscriptions, priority lead badges & promotions are officially billed with 18% GST B2B tax invoices.
@php $curPlanSlug = old('current_plan_slug', $row->current_plan_slug ?? 'free'); $curPlanId = old('vendor_plan_id', $row->vendor_plan_id ?? 1); $customDetails = old('custom_plan_details', $row->custom_plan_details ?? []); @endphp {{-- Plan Cards Selection Grid --}}
{{-- 1. Free Basic Listing --}} {{-- 2. Verified Pro (Annual) --}} {{-- 3. Featured Boost (Sponsored) --}} {{-- 4. Custom Plan / Special Offer --}}
{{-- Custom Plan Details Box (Expandable when Custom is selected) --}}
✍️ Custom Plan & Special Offer Details (कस्टम प्लान की जानकारी)

Fill the requested terms. ANGARE WORLD commerce team will review and approve these custom terms.

{{-- PANEL 13: TRUST BADGES, PAYMENT GATE & PUBLISHING APPROVAL --}}
Section 13 of 13

🛡️ Trust Badges, Payment Status & Publishing Approval

Protected live visibility: Profile only shows to visitors upon Payment & Approval
{{-- Live Visibility Security Guard Banner --}}
🔒
Live Visibility Guard (सुरक्षा नियम): वेंडर ने प्लान चुन लिया है और विवरण भर दिया है, लेकिन विज़िटर्स को यह प्रोफ़ाइल केवल Payment Confirmation (भुगतान सत्यापन) और Admin Approval (एडमिन स्वीकृति) के बाद ही लाइव दिखेगी।
{{-- 1. Payment Gate --}}
💳 1. Payment Confirmation Gate
@php $curPay = old('payment_status', $row->payment_status ?? 'pending'); @endphp
@if($isEdit && !empty($row->payment_verified_at))
✓ Payment verified on: {{ $row->payment_verified_at->format('d M Y, h:i A') }}
@endif
{{-- 2. Admin Approval Gate --}}
⚖️ 2. Admin Verification & Approval
@php $curApp = old('admin_approval_status', $row->admin_approval_status ?? 'pending'); @endphp
{{-- 3. Public Directory Live Switch --}}
🌐 3. Directory Publishing & Public Visibility Switch
@if($isEdit)
Section 5 of 13

🛎️ Services Catalog ({{ $row->services->count() }})

List puja rituals, room stay assists, tours, and seva guidance
{{-- Sub-Keywords Quick Fill Banner for Edit Mode --}}
✨ Quick Fill from Sub-Keywords (Section 4): (Click any keyword to pre-fill into Service Name below)
Select Primary Category & Sub-Keywords in Step 4 to see quick chips here.
{{-- Form to Add New Service --}}
➕ Add New Service
@csrf
{{-- Existing Services List with Expandable Edit --}}
Listed Services ({{ $row->services->count() }})
@forelse($row->services as $service)
@if($service->image) @else
🛎️
@endif
{{ $service->name }}
@if($service->serviceCategory)📁 {{ $service->serviceCategory->name }}@endif @if($service->price)₹{{ number_format($service->price, 2) }}@endif
{{ $service->is_active ? 'Active' : 'Inactive' }} ✏️ Edit
@csrf @method('PUT')
@csrf @method('DELETE')
@empty

No services added yet — use the form above to add one.

@endforelse
Section 6 of 13

📦 Products Catalog ({{ $row->products->count() }})

List spiritual goods, prasad, books, puja items (display & WhatsApp inquiry)
{{-- Sub-Keywords Quick Fill Banner for Edit Mode --}}
✨ Quick Fill from Sub-Keywords (Section 4): (Click any keyword to pre-fill into Product Name below)
Select Primary Category & Sub-Keywords in Step 4 to see quick chips here.
{{-- Form to Add New Product --}}
➕ Add New Product
@csrf
{{-- Existing Products List with Expandable Edit --}}
Listed Products ({{ $row->products->count() }})
@forelse($row->products as $product)
@if($product->image) @else
📦
@endif
{{ $product->name }}
@if($product->productCategory)📁 {{ $product->productCategory->name }}@endif @if($product->price)₹{{ number_format($product->price, 2) }}@endif
{{ $product->is_active ? 'Active' : 'Inactive' }} ✏️ Edit
@csrf @method('PUT')
@csrf @method('DELETE')
@empty

No products added yet — use the form above to add one.

@endforelse

Prices are informational only — direct connect & WhatsApp inquiry model (no cart/checkout).

@endif
{{-- JAVASCRIPT: STEP SWITCHING & COMPONENT INTERACTIVITY --}}