@extends('layouts.app') @section('title','Transaction History') @section('header-left')

Transaction History

{{ $transactions->total() }} total transactions

@endsection @section('content')
All Types
All Status
download Export CSV
@forelse($transactions as $tx) @empty @endforelse
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') }}

receipt_long

No transactions yet

Start an Exchange
{{ $transactions->links() }}
@endsection