@extends('layouts.app') @section('title','My Profile') @section('content')
Profile

{{ $user->name }}

Registered on {{ $profile->registration_date?->format('M d, Y') ?? $user->created_at->format('M d, Y') }}

Birthday: {{ $profile->birthday?->format('M d, Y') ?? 'Not recorded' }} | Hobby: {{ $profile->hobby ?? 'Not shared' }}

Last Donation

৳{{ number_format($stats['lastDonation'] ?? 0, 2) }}

Total Donations

৳{{ number_format($stats['totalAmount'],2) }}

Total Donations

{{ $stats['count'] }}

Min / Max

৳{{ number_format($stats['minimum'] ?? 0,2) }} / ৳{{ number_format($stats['maximum'] ?? 0,2) }}

@csrf @method('PATCH')
Donation History
@forelse($donationHistory as $entry) @empty @endforelse
Amount Method Project Status Date
৳{{ number_format($entry->amount, 2) }} {{ $entry->method }} {{ $entry->project?->title ?? 'General' }} {{ ucfirst($entry->status) }} {{ $entry->donated_at?->format('M d, Y') }}
No donations yet.
Regular Donations
@forelse($activeRegulars as $regular)
{{ $regular->project?->title ?? 'General Fund' }}
Amount: ৳{{ number_format($regular->amount, 2) }} | Frequency: {{ ucfirst($regular->frequency) }}
@csrf @method('PATCH')
@empty
No active regular donations.
@endforelse
@push('scripts') @endpush @endsection