@extends('layouts.admin') @section('title', 'Pledges') @section('page-title', 'Pledges') @section('page-subtitle', 'Manage member pledges') @section('content')
Create Pledge

Total Pledges

GH₵{{ number_format($stats['total_pledged'] ?? 0, 2) }}

Fulfilled

GH₵{{ number_format($stats['total_fulfilled'] ?? 0, 2) }}

Outstanding

GH₵{{ number_format($stats['total_outstanding'] ?? 0, 2) }}

Active Pledges

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

@forelse($pledges as $pledge) @empty @endforelse
Member Campaign Amount Fulfilled Progress Status Deadline Actions
{{ substr($pledge->member->first_name ?? 'U', 0, 1) }}{{ substr($pledge->member->last_name ?? 'U', 0, 1) }}

{{ $pledge->member->full_name ?? 'Unknown' }}

{{ $pledge->member->member_id ?? '' }}

{{ $pledge->campaign?->name ?? 'N/A' }} GH₵{{ number_format($pledge->amount, 2) }} GH₵{{ number_format($pledge->fulfilled_amount, 2) }}

{{ round(($pledge->fulfilled_amount / $pledge->amount) * 100) }}%

{{ ucfirst($pledge->status) }} {{ $pledge->end_date?->format('M d, Y') ?? 'No deadline' }}

No pledges found

@if($pledges->hasPages())
{{ $pledges->withQueryString()->links() }}
@endif
@endsection