@extends('layouts.app') @section('title', 'Transaction History') @section('content')
@forelse ($transactions as $tx)

{{ $tx->type }} @if($tx->asset_symbol) {{ $tx->asset_symbol }} @endif

{{ $tx->created_at->format('d M Y, H:i') }} · {{ ucfirst($tx->status) }}

{{ in_array($tx->type, ['deposit', 'sell']) ? '+' : '-' }}{{ $tx->currency === 'NGN' ? '₦' : '' }}{{ number_format($tx->amount, $tx->currency === 'NGN' ? 2 : 8) }} {{ $tx->currency !== 'NGN' ? $tx->currency : '' }}

@empty

No transactions match your filters.

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