@extends('admin.layouts.app') @section('title', 'Crowdfunding & Sacred Campaigns') @section('page-title', 'Crowdfunding & Sacred Campaigns') @section('content') {{-- ============ HEADER ============ --}}

❤️ Crowdfunding & Sacred Campaigns

Verified humanitarian & spiritual fundraising gateway for medical life-support, trusts, gau-seva, and temple heritage restoration with escrow protection.

🌐 Public Hub ↗ + Add New Campaign
{{-- Flash Alerts --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('info'))
{{ session('info') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- ============ KPI STATS ============ --}} @php $activeStatus = $status ?? 'all'; @endphp
📋
Total Campaigns {{ number_format($counts['total'] ?? 0) }} All Causes
⏳
Pending Review {{ number_format($counts['pending_review'] ?? 0) }} Needs Approval
🟢
Active Live {{ number_format($counts['active'] ?? 0) }} Accepting Seva
🚨
Emergency {{ number_format($counts['emergency'] ?? 0) }} Fast-Track ICU
💰
Total Raised ₹{{ number_format($counts['total_raised'] ?? 0) }} Cumulative Seva
{{-- ============ ALPINE ROOT & BULK MANAGER ============ --}}
{{-- ============ TOOLBAR ============ --}}
@if($search || $category || $activeStatus !== 'all') Reset @endif
{{-- ============ FLOATING BULK BAR ============ --}}
Selected: campaigns
@csrf
{{-- ============ TABLE ============ --}}
@forelse($campaigns as $camp) @php $rowNo = ($campaigns->currentPage() - 1) * $campaigns->perPage() + $loop->iteration; @endphp @empty @endforelse
# Campaign & Cause Category Target & Progress Fundraiser / Beneficiary Status Actions
{{ $rowNo }}
@if($camp->patient_photo || $camp->cover_banner) @else
❤️
@endif
{{ $camp->title }} @if($camp->is_emergency) 🚨 EMERGENCY @endif @if($camp->is_featured_home) ⭐ Featured @endif
/{{ $camp->slug }} ⏳ {{ $camp->days_remaining }} days left 👥 {{ number_format($camp->donors_count) }} donors
{{ $camp->category_label }}
{{ $camp->formatted_raised }}
of {{ $camp->formatted_target }} ({{ $camp->progress_percentage }}%)
{{ $camp->beneficiary_name }}
By: {{ $camp->user?->name ?? 'Dham Seva Trust' }}
🏦 {{ str_replace('_', ' ', ucfirst($camp->payout_type)) }}
@if($camp->status === 'active') Live @elseif($camp->status === 'pending_review') Pending @elseif($camp->status === 'draft') Draft @elseif($camp->status === 'goal_reached') Goal Reached @else Rejected @endif
{{-- 1. View Public Campaign --}} 👁️ {{-- 2. Edit Campaign Canvas --}} ✏️ {{-- 3. Quick Verify & Approve --}} @if($camp->status !== 'active')
@csrf
@else
@csrf
@endif {{-- 4. Toggle Emergency --}}
@csrf
{{-- 5. Toggle Featured --}}
@csrf
{{-- 6. Delete Record --}}
@csrf @method('DELETE')
❤️

No Crowdfunding Campaigns Found

No campaigns match your current search or filter criteria.

+ Add First Campaign
{{-- ============ PAGINATION ============ --}} @if($campaigns->hasPages())
Showing {{ $campaigns->firstItem() ?? 0 }} to {{ $campaigns->lastItem() ?? 0 }} of {{ $campaigns->total() }} campaigns
{{ $campaigns->links() }}
@endif
@endsection