@extends('layouts.member') @section('title', 'Points Ledger โ JAM Members Club') @section('content') @php $user = auth()->user(); $filter = request('filter', 'all'); $query = $user->pointsTransactions(); if ($filter === 'credit') $query->where('type', 'credit'); if ($filter === 'debit') $query->whereIn('type', ['debit','expiry']); $transactions = $query->paginate(20)->withQueryString(); @endphp
Your complete points history.
{{ number_format($user->points_balance) }}
Current Balance
{{ $tx->description }}
{{ $tx->created_at->format('d M Y') }} @if($tx->visit_date && $tx->visit_date != $tx->created_at->toDateString()) ยท Visit: {{ \Carbon\Carbon::parse($tx->visit_date)->format('d M Y') }} @endif
@if($tx->note_visible_to_member && $tx->admin_note){{ $tx->admin_note }}
@endif{{ $tx->isCredit() ? '+' : 'โ' }}{{ number_format($tx->amount) }}
Bal: {{ number_format($tx->balance_after) }}
No transactions found.
@if($filter !== 'all') View all transactions @endifNext Tier: {{ $nextTier->name }}
Tier upgrades are assessed quarterly by JAM Corner.