<?php $__env->startSection('content'); ?>
    <style>
        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f1f1f1;
            font-size: 0.95rem;
        }

        .summary-row:last-child {
            border-bottom: none;
        }

        .summary-row span {
            color: #6c757d;
        }

        .summary-row strong {
            font-weight: 600;
        }
    </style>

    <div class="page-container">

        <div class="page-title-head d-flex align-items-sm-center flex-sm-row flex-column gap-2">
            <div class="flex-grow-1">
                <h4 class="fs-18 fw-semibold mb-0"><?php echo e($title); ?></h4>
            </div>

            <div class="text-end">
                <?php if (isset($component)) { $__componentOriginalf249638ac7504c50bf0259c0cb71919d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf249638ac7504c50bf0259c0cb71919d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.breadcrumbs','data' => ['breadcrumbs' => $breadcrumbs]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.breadcrumbs'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($breadcrumbs)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf249638ac7504c50bf0259c0cb71919d)): ?>
<?php $attributes = $__attributesOriginalf249638ac7504c50bf0259c0cb71919d; ?>
<?php unset($__attributesOriginalf249638ac7504c50bf0259c0cb71919d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf249638ac7504c50bf0259c0cb71919d)): ?>
<?php $component = $__componentOriginalf249638ac7504c50bf0259c0cb71919d; ?>
<?php unset($__componentOriginalf249638ac7504c50bf0259c0cb71919d); ?>
<?php endif; ?>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-10 mx-auto">
                <div class="card border-0 shadow-lg rounded-4">

                    <!-- Header -->
                    <div
                        class="card-header bg-white border-bottom py-4 px-5 d-flex justify-content-between align-items-center">
                        <div>
                            <h5 class="mb-1 fw-semibold">Transaction Details</h5>
                            <small class="text-muted">
                                Reference ID: <?php echo e($transfer->reference_id); ?>

                            </small>
                        </div>

                        <span class="<?php echo e($transfer->status->badge()); ?> px-3 py-2">
                            <?php echo e($transfer->status->label()); ?>

                        </span>
                    </div>

                    <div class="card-body p-5">

                        <!-- Transaction Summary -->
                        <div class="mb-5">
                            <h6 class="text-uppercase text-muted fw-semibold mb-3">
                                Transaction Information
                            </h6>

                            <div class="summary-row">
                                <span>Transaction Date</span>
                                <strong><?php echo e(formatDateTime($transfer->created_at)); ?></strong>
                            </div>

                            <div class="summary-row">
                                <span>Transfer Type</span>
                                <strong><?php echo e($transfer->transfer_type->fullLabel()); ?></strong>
                            </div>

                            <div class="summary-row">
                                <span>Currency</span>
                                <strong><?php echo e(currency($transfer->user->currency, 'code')); ?></strong>
                            </div>
                        </div>

                        <!-- Beneficiary Information -->
                        <div class="mb-5">
                            <h6 class="text-uppercase text-muted fw-semibold mb-3">
                                Beneficiary Information
                            </h6>

                            <div class="summary-row">
                                <span>Beneficiary Name</span>
                                <strong><?php echo e($transfer->recipient_name); ?></strong>
                            </div>

                            <div class="summary-row">
                                <span>Account Number</span>
                                <strong><?php echo e($transfer->recipient_account_number); ?></strong>
                            </div>

                            <div class="summary-row">
                                <span>Bank Name</span>
                                <strong><?php echo e($transfer->recipient_bank); ?></strong>
                            </div>

                            <div class="summary-row">
                                <span>Account Type</span>
                                <strong><?php echo e($transfer->recipient_account_type); ?></strong>
                            </div>

                            <?php if($transfer->recipient_routing_number): ?>
                                <div class="summary-row">
                                    <span>Routing Number</span>
                                    <strong><?php echo e($transfer->recipient_routing_number); ?></strong>
                                </div>
                            <?php endif; ?>

                            <?php if($transfer->recipient_swift_code): ?>
                                <div class="summary-row">
                                    <span>SWIFT Code</span>
                                    <strong><?php echo e($transfer->recipient_swift_code); ?></strong>
                                </div>
                            <?php endif; ?>

                            <?php if($transfer->recipient_iban_code): ?>
                                <div class="summary-row">
                                    <span>IBAN</span>
                                    <strong><?php echo e($transfer->recipient_iban_code); ?></strong>
                                </div>
                            <?php endif; ?>
                        </div>

                        <!-- Amount Section -->
                        <div class="bg-light rounded-3 p-4 mb-5">
                            <h6 class="text-uppercase text-muted fw-semibold mb-3">
                                Amount Details
                            </h6>

                            <div class="summary-row">
                                <span>Amount Sent</span>
                                <strong class="fs-5">
                                    <?php echo e(currency($transfer->user->currency)); ?><?php echo e(formatAmount($transfer->amount)); ?>

                                </strong>
                            </div>

                            

                            

                        </div>

                        <!-- Description -->
                        <div class="mb-5">
                            <h6 class="text-uppercase text-muted fw-semibold mb-3">
                                Transaction Note
                            </h6>
                            <p class="text-muted mb-0">
                                <?php echo e($transfer->description ?? 'No description provided.'); ?>

                            </p>
                        </div>

                        <!-- Footer Action -->
                        <div class="d-flex justify-content-between align-items-center pt-3 border-top">
                            <a href="<?php echo e(route('user.transfer.index')); ?>" class="btn btn-outline-secondary px-4">
                                Back to Transfers
                            </a>

                            

                            

                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.user.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\projects\online-banking-v7.2\resources\views/dashboard/user/transfer/show.blade.php ENDPATH**/ ?>