@extends('layouts.admin') @section('title', 'Points History — ' . $user->full_name) @section('page-title', 'Points History') @section('content')
{{ $user->full_name }} / Points History

{{ $user->full_name }}

{{ $user->membership_number }} · Current balance: {{ number_format($user->points_balance) }} pts

Description
Type
Points
Balance After
@forelse($transactions as $tx)

{{ $tx->description }}

{{ $tx->created_at->format('d M Y · h:i A') }} @if($tx->admin) · {{ $tx->admin->name }} @endif

@if($tx->admin_note)

{{ $tx->admin_note }} @if($tx->note_visible_to_member) (visible to member) @endif

@endif @if($tx->visit_date)

Visit: {{ \Carbon\Carbon::parse($tx->visit_date)->format('d M Y') }} @if($tx->spend_amount) · ${{ number_format($tx->spend_amount, 2) }} spend @endif

@endif
{{ ucfirst($tx->type) }}
{{ $tx->isCredit() ? '+' : '−' }}{{ number_format($tx->amount) }}
{{ number_format($tx->balance_after) }}
@empty
No transactions recorded yet.
@endforelse
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection