@extends('layouts.admin') @section('title', 'Points Ledger — JAM Admin') @section('page-title', 'Points Ledger') @section('content')

Points Ledger

All point transactions across every member.

{{ number_format($totalCredits) }}

Total Issued

{{ number_format($totalDebits) }}

Total Deducted

{{-- Filters --}}
@if($search) Clear @endif
@foreach(['all' => 'All', 'credit' => 'Credits', 'debit' => 'Debits'] as $key => $label) {{ $label }} @endforeach
{{-- Desktop header --}}
@forelse($transactions as $tx) {{-- Desktop row --}} {{-- Mobile row --}}

{{ $tx->user?->full_name ?? '—' }}

{{ $tx->description }}

{{ $tx->created_at->format('d M Y · h:i A') }}

{{ $tx->isCredit() ? '+' : '−' }}{{ number_format($tx->amount) }}

{{ ucfirst($tx->type) }}
@empty
No transactions found. @if($search || $filter !== 'all') Clear filters @endif
@endforelse
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection