@extends('layouts.frontend') @section('title', 'Wall of Fame - Yahya Playland') @section('styles') @endsection @section('content')
banner

WALL OF FAME

Honouring the generous hearts who help every child belong. We are deeply grateful to the individuals and businesses listed below whose generosity is shaping Yahya Playland into reality.

@php $individuals = $donors->where('type','individual'); $businesses = $donors->where('type','business'); $indCount = $individuals->count(); $bizCount = $businesses->count(); @endphp
{{-- INDIVIDUALS --}}
@php $sorted = $individuals->sortByDesc('amount')->values(); $top3 = $sorted->take(3); $rest = $sorted->skip(3)->values(); @endphp @if($top3->count() >= 3)

🏆 Top Individual Contributors

{{-- Rank 2 (left) --}}
2
{{ $top3[1]->anonymous ? 'Anonymous' : $top3[1]->name }}
Individual
${{ number_format($top3[1]->amount) }}
{{-- Rank 1 (center) --}}
1
{{ $top3[0]->anonymous ? 'Anonymous' : $top3[0]->name }}
Individual
${{ number_format($top3[0]->amount) }}
{{-- Rank 3 (right) --}}
3
{{ $top3[2]->anonymous ? 'Anonymous' : $top3[2]->name }}
Individual
${{ number_format($top3[2]->amount) }}
@endif @if($rest->count() > 0)

🎖️ Individual Honour Roll

@foreach($rest as $i => $d)
{{ $i + 4 }}

{{ $d->anonymous ? 'Anonymous Donor' : $d->name }}

Individual
${{ number_format($d->amount) }}
@endforeach
@if($rest->count() > 10)
@endif @endif @if($individuals->isEmpty())

No individual donors yet.

Be the first to donate! →
@endif
{{-- BUSINESSES --}}
@php $bsorted = $businesses->sortByDesc('amount')->values(); $btop3 = $bsorted->take(3); $brest = $bsorted->skip(3)->values(); @endphp @if($btop3->count() >= 3)

🏆 Top Business Contributors

2
{{ $btop3[1]->anonymous ? 'Anonymous' : $btop3[1]->name }}
Business
${{ number_format($btop3[1]->amount) }}
1
{{ $btop3[0]->anonymous ? 'Anonymous' : $btop3[0]->name }}
Business
${{ number_format($btop3[0]->amount) }}
3
{{ $btop3[2]->anonymous ? 'Anonymous' : $btop3[2]->name }}
Business
${{ number_format($btop3[2]->amount) }}
@endif @if($brest->count() > 0)

🎖️ Business Honour Roll

@foreach($brest as $i => $d)
{{ $i + 4 }}

{{ $d->anonymous ? 'Anonymous' : $d->name }}

Business
${{ number_format($d->amount) }}
@endforeach
@if($brest->count() > 10)
@endif @endif @if($businesses->isEmpty())

No business donors yet.

Be the first! →
@endif
{{-- Donate CTA --}}
🤲 Make a Donation
@endsection @section('scripts') @endsection