@extends('layouts.customer') @section('customer-content')
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') }}
Description
{{ $transaction->description }}
Sender
{{ $transaction->sender->name }} ({{ $transaction->sender->email }})
Recipient
{{ $transaction->recipient->name }} ({{ $transaction->recipient->email }})
Processed By
{{ $transaction->processor->name }}
@if($transaction->processed_at){{ $transaction->processed_at->format('M d, Y H:i') }}
@endifPayment Method
{{ ucfirst(str_replace('_', ' ', $transaction->payment_method)) }}
Additional Details