{{-- Admin: Group selector --}} @role('admin')

Group Selection

Choose a group to view its details
@endrole {{-- Group Data --}} @if (isset($group)) {{--

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

--}}
@foreach ($receipts as $index => $receipt) @endforeach
# Name Total Distance 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) == 0 ? 1 : count($receipts)), 2) }}

Total Charity

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

@else

No group data available.

@endif