@extends('adminlte::page') @section('title', 'Purchase History') @section('content_header')

Purchase History

@stop @section('content')

Your Purchase Overview

Rp {{ number_format($totalSpent, 0, ',', '.') }}

Total Spent

Rp {{ number_format($pendingPayments, 0, ',', '.') }}

Pending Payments

{{ number_format($purchaseCount, 0, ',', '.') }}

Total Purchases

Purchase History

@foreach($transactions as $transaction) @endforeach
Transaction ID Date Amount Shortlink Status
{{ $transaction->unique_reference }} {{ $transaction->created_at->format('d M Y H:i') }} Rp {{ number_format($transaction->amount, 0, ',', '.') }} {{ $transaction->shortlink ? $transaction->shortlink->id : 'N/A' }} @if($transaction->status == 'settlement') Completed @elseif($transaction->status == 'pending') Pending @elseif($transaction->status == 'expired') Expired @else {{ ucfirst($transaction->status) }} @endif
@stop @section('css') @stop @section('js') @stop