@extends('layouts.app') @section('title', 'Project Dashboard') @section('description', 'Manage your projects and track funding progress') @section('content')

Project Dashboard

Manage your projects and track funding progress

Total Projects

{{ $stats['total_projects'] ?? '0' }}

{{ $stats['active_projects'] ?? '0' }} active

Total Funding

{{ $stats['total_funding'] ?? '₦0' }}

{{ $stats['funding_growth'] ?? '0' }}% this month

Beneficiaries

{{ number_format($stats['total_beneficiaries'] ?? 0) }}

Growing impact

Total Views

{{ number_format($stats['total_views'] ?? 0) }}

{{ $stats['views_growth'] ?? '0' }}% increase

Funding Progress

Project Status

My Projects

Add New Project
@if($projects->count() > 0)
@foreach($projects as $project)

{{ $project->title }}

{{ $project->region }}

@if($project->status === 'approved') Approved @elseif($project->status === 'pending') Pending @elseif($project->status === 'rejected') Rejected @elseif($project->status === 'completed') Completed @endif

{{ Str::limit($project->short_description ?? $project->description, 80) }}

Progress {{ number_format($project->funding_progress, 1) }}%
{{ $project->formatted_funding_raised }} raised Goal: {{ $project->formatted_funding_goal }}
{{ number_format($project->views_count) }} {{ number_format($project->likes_count) }} {{ number_format($project->current_beneficiaries) }}
View Details @if($project->status === 'pending') Edit @endif @if($project->status === 'approved') Update @endif
@endforeach
@else

No projects yet

Start making an impact by creating your first project

Create Your First Project
@endif

Recent Project Updates

@if($recentUpdates->count() > 0)
@foreach($recentUpdates as $update)

{{ $update->title }}

{{ $update->created_at->diffForHumans() }}

{{ Str::limit($update->content, 150) }}

{{ $update->project->title }}
View Project
@endforeach
@else

No updates yet

Start posting updates to keep your funders informed about project progress

@endif
@push('styles') @endpush @push('scripts') @endpush @endsection