@extends('layouts.member') @section('title', 'Riwayat Belanja') @section('content')

{{ $totalTransactions }}

Transaksi

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

Total Belanja

@forelse($transactions as $trx)

{{ $trx->invoiceNumber }}

{{ $trx->date->format('d M Y, H:i') }}

Rp {{ number_format($trx->totalAmount, 0, ',', '.') }}

{{ $trx->status }}
@empty

Belum Ada Transaksi

Riwayat belanja Anda akan muncul di sini.

@endforelse
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection