@extends('layouts.app') @section('title','Transaction History') @section('header-left')
{{ $transactions->total() }} total transactions
| Reference | Order | Type | Amount | Status | Date |
|---|---|---|---|---|---|
| {{ $tx->reference }} | {{ optional($tx->order)->order_id ?? '—' }} |
{{ $tx->type === 'credit' ? 'arrow_circle_down' : 'arrow_circle_up' }}
{{ $tx->type }}
|
{{ $tx->type === 'credit' ? '+' : '-' }}₦{{ number_format($tx->amount, 2) }} {{ $tx->currency }} |
@php $colors = ['completed'=>'green','pending'=>'orange','failed'=>'red','reversed'=>'slate']; $c = $colors[$tx->status] ?? 'slate'; @endphp {{ $tx->status }} |
{{ $tx->created_at->format('M d, Y') }} {{ $tx->created_at->format('h:i A') }} |