@extends('layouts.customer') @section('customer-content')

Transaction Details

{{ $transaction->reference }}

Type

@if($transaction->type === 'deposit') Deposit @elseif($transaction->type === 'withdrawal') Withdrawal @elseif($transaction->type === 'transfer_sent') Sent @elseif($transaction->type === 'transfer_received') Received @elseif($transaction->type === 'purchase') Purchase @endif

Status

{{ $transaction->status_badge['label'] }}

Amount

{{ in_array($transaction->type, ['deposit', 'transfer_received']) ? '+' : '-' }}{{ price($transaction->amount) }}

Date

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

@if($transaction->description)

Description

{{ $transaction->description }}

@endif @if($transaction->sender)

Sender

{{ $transaction->sender->name }} ({{ $transaction->sender->email }})

@endif @if($transaction->recipient)

Recipient

{{ $transaction->recipient->name }} ({{ $transaction->recipient->email }})

@endif @if($transaction->processor)

Processed By

{{ $transaction->processor->name }}

@if($transaction->processed_at)

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

@endif
@endif @if($transaction->payment_method)

Payment Method

{{ ucfirst(str_replace('_', ' ', $transaction->payment_method)) }}

@endif @if($transaction->metadata && is_array($transaction->metadata))

Additional Details

@foreach($transaction->metadata as $key => $value)
{{ ucfirst(str_replace('_', ' ', $key)) }} {{ is_array($value) ? json_encode($value) : $value }}
@endforeach
@endif
@endsection