@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
Member
Description
Date
Type
Points
Balance After
@forelse($transactions as $tx)
{{-- Member --}} {{-- Description --}}

{{ $tx->description }}

@if($tx->admin_note)

{{ Str::limit($tx->admin_note, 60) }}

@endif @if($tx->admin)

by {{ $tx->admin->name }}

@endif
{{-- Date --}}

{{ $tx->created_at->format('d M Y') }}

{{ $tx->created_at->format('h:i A') }}

{{-- Type badge --}}
{{ ucfirst($tx->type) }}
{{-- Points --}}
{{ $tx->isCredit() ? '+' : '−' }}{{ number_format($tx->amount) }}
{{-- Balance after --}}
{{ number_format($tx->balance_after) }}

pts remaining

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