@if (auth()->user()->is_admin)
@endif @if (isset($group))

Group {{ $group->group_id ?? 'Unknown' }}

@foreach ($receipts as $index => $receipt) @endforeach
# Name Total Distances Points Charity Collected
{{ $index + 1 }} {{ $receipt->full_name }} {{ number_format($receipt->distance_km, 2) }} KM {{ $receipt->total_poin }} Rp. {{ number_format($receipt->total_poin * 1000, 2) }}

Total Points: {{ number_format($grandTotal, 2) }}

Pay per member: Rp. {{ number_format(($grandTotal * 1000) / count($receipts), 2) }}

Total Charity: Rp. {{ number_format($grandTotal * 1000, 2) }}

@else

No group data available.

@endif