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
@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)
@foreach($rest as $i => $d)
{{ $i + 4 }}
{{ $d->anonymous ? 'Anonymous Donor' : $d->name }}
Individual
${{ number_format($d->amount) }}
@endforeach
@if($rest->count() > 10)
⬇ Load More ({{ $rest->count() - 10 }} more)
@endif
@endif
@if($individuals->isEmpty())
@endif
@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)
@foreach($brest as $i => $d)
{{ $i + 4 }}
{{ $d->anonymous ? 'Anonymous' : $d->name }}
Business
${{ number_format($d->amount) }}
@endforeach
@if($brest->count() > 10)
⬇ Load More ({{ $brest->count() - 10 }} more)
@endif
@endif
@if($businesses->isEmpty())
@endif