@extends('layouts.admin') @section('title', 'Transaction Details') @section('content')

Transaction Information

Reference {{ $transaction->reference }}
Type {{ ucfirst($transaction->type) }}
Amount {{ $currency ?? '₦' }}{{ number_format($transaction->amount, 2) }}
Fee {{ $currency ?? '₦' }}{{ number_format($transaction->fee ?? 0, 2) }}
Total {{ $currency ?? '₦' }}{{ number_format(($transaction->amount) + ($transaction->fee ?? 0), 2) }}
Status {{ ucfirst($transaction->status) }}
Description {{ $transaction->description ?? 'N/A' }}
Date {{ $transaction->created_at->format('M d, Y H:i:s') }}

Sender / Recipient

From {{ $transaction->sender->name ?? $transaction->from_account ?? 'N/A' }}
To {{ $transaction->recipient->name ?? $transaction->to_account ?? 'N/A' }}

Audit Information

IP Address {{ $transaction->ip_address ?? 'N/A' }}
Device {{ Str::limit($transaction->device ?? 'N/A', 40) }}
Created {{ $transaction->created_at->format('M d, Y H:i:s') }}
Updated {{ $transaction->updated_at->format('M d, Y H:i:s') }}
@if(isset($transaction->ledger_entries) && $transaction->ledger_entries->count())

Ledger Entries

@foreach($transaction->ledger_entries as $entry)
{{ $entry->account_number ?? $entry->account ?? 'N/A' }} {{ $entry->description ?? '' }}
{{ ucfirst($entry->type) }} {{ $currency ?? '₦' }}{{ number_format($entry->amount, 2) }}
@endforeach
@endif
@csrf @method('POST')
@endsection