<dl class="row">
    <dt class="col-sm-3">Reference ID</dt>
    <dd class="col-sm-9"><?php echo e($transaction->reference_id); ?></dd>

    <dt class="col-sm-3">Transaction Type</dt>
    <dd class="col-sm-9">
        <?php echo e($transaction->type->label()); ?>

    </dd>

    <dt class="col-sm-3">Transaction Direction</dt>
    <dd class="col-sm-9">
        <?php echo $transaction->direction->badge(); ?>

    </dd>

    <dt class="col-sm-3">Amount <?php echo e($transaction->direction->label()); ?>ed</dt>
    <dd class="col-sm-9">
        <?php echo e(currency($transaction->user->currency)); ?><?php echo e(formatAmount($transaction->amount)); ?></dd>

    <?php if($transaction->transfer): ?>
        <dt class="col-sm-3"><?php echo e($transaction->direction->label()); ?>ed Account</dt>
        <dd class="col-sm-9">
            <?php echo e($transaction->transfer->account_number); ?>

        </dd>

        <dt class="col-sm-3">Beneficiary Name</dt>
        <dd class="col-sm-9">
            <?php echo e($transaction->transfer->account_name); ?>

        </dd>

        <dt class="col-sm-3">Beneficiary Bank</dt>
        <dd class="col-sm-9">
            <?php echo e($transaction->transfer->bank_name); ?>

        </dd>

        <?php if($transaction->transfer->swift_code): ?>
            <dt class="col-sm-3">Beneficiary SWIFT Code</dt>
            <dd class="col-sm-9">
                <?php echo e($transaction->transfer->swift_code); ?>

            </dd>
        <?php endif; ?>

        <?php if($transaction->transfer->iban_code): ?>
            <dt class="col-sm-3">Beneficiary IBAN Code</dt>
            <dd class="col-sm-9">
                <?php echo e($transaction->transfer->iban_code); ?>

            </dd>
        <?php endif; ?>

        <?php if($transaction->transfer->routing_number): ?>
            <dt class="col-sm-3">Beneficiary Routing Number</dt>
            <dd class="col-sm-9">
                <?php echo e($transaction->transfer->routing_number); ?>

            </dd>
        <?php endif; ?>

        <dt class="col-sm-3">Transfer Type</dt>
        <dd class="col-sm-9">
            <?php echo e($transaction->transfer->type->label()); ?>

        </dd>

        <dt class="col-sm-3">Sender</dt>
        <dd class="col-sm-9">
            <?php echo e($transaction->transfer->user->first_name); ?>

            <?php echo e($transaction->transfer->user->last_name); ?>

        </dd>
    <?php else: ?>
        <dt class="col-sm-3"><?php echo e($transaction->direction->label()); ?>ed Account</dt>
        <dd class="col-sm-9">
            <?php echo e($transaction->user->account_number); ?>

        </dd>

        <dt class="col-sm-3">Beneficiary Name</dt>
        <dd class="col-sm-9">
            <?php echo e($transaction->user->first_name); ?> <?php echo e($user->last_name); ?>

        </dd>
    <?php endif; ?>

    <dt class="col-sm-3">Description</dt>
    <dd class="col-sm-9"><?php echo e($transaction->description ?? 'N/A'); ?></dd>

    <dt class="col-sm-3">Status</dt>
    <dd class="col-sm-9">
        <?php echo $transaction->status->badge(); ?>

    </dd>

    <dt class="col-sm-3">Balance After</dt>
    <dd class="col-sm-9">
        <?php echo e(currency($transaction->user->currency)); ?><?php echo e(formatAmount($transaction->current_balance)); ?>

    </dd>

    <dt class="col-sm-3">Transaction Date</dt>
    <dd class="col-sm-9"><?php echo e(date('jS M Y h:i A', strtotime($transaction->transaction_at))); ?></dd>
</dl>
<?php /**PATH C:\xampp\htdocs\projects\online-banking-v6.0\resources\views/dashboard/components/transaction_details.blade.php ENDPATH**/ ?>