@php use App\Models\Donation; use App\Models\Elderly; use App\Models\User; use App\Models\SystemSetting; use App\Services\CurrencyService; // Get real data from the database $elderlyCount = Elderly::where('status', 'approved')->count(); $totalDonations = Donation::where('payment_status', 'completed')->sum('amount'); $organizationCount = User::where('account_type', 'organization')->count(); $countriesReached = Donation::where('payment_status', 'completed') ->join('users', 'donations.donor_id', '=', 'users.id') ->whereNotNull('users.country') ->distinct('users.country') ->count('users.country'); // Check if global currency override is enabled $globalOverrideEnabled = SystemSetting::isGlobalCurrencyOverrideEnabled(); $currencyCode = null; if ($globalOverrideEnabled) { $currencyCode = SystemSetting::getDefaultCurrency(); } // Format the donation amount with the appropriate currency (respecting admin override if set) $formattedDonations = CurrencyService::formatAmount($totalDonations, $currencyCode); // Create stats array with real data $stats = [ ['value' => number_format($elderlyCount) . '+', 'label' => 'Elderly Supported'], ['value' => $formattedDonations, 'label' => 'Donations Raised'], ['value' => number_format($organizationCount) . '+', 'label' => 'Partner Organizations'], ['value' => number_format($countriesReached), 'label' => 'Countries Reached'], ]; $testimonialImage = 'https://images.unsplash.com/photo-1442458370899-ae20e367c5d8?q=80&w=2874&auto=format&fit=crop'; @endphp

Our Impact

Together, we're making a significant difference in the lives of elderly individuals worldwide.

@foreach($stats as $index => $stat)

{{ $stat['value'] }}

{{ $stat['label'] }}

@endforeach

"The support I received through Elderly Care Connect has been life-changing. I now have access to medical care and don't have to worry about my daily needs."

Martha Williams testimonial

Martha Williams, 82

Received support in 2023