<?php $__env->startSection('content'); ?>
    <div class="content-wrapper" style="min-height: 697px;">
        <div class="container-full">
            <!-- Content Header (Page header) -->
            <div class="content-header d-none d-md-block d-lg-block">
                <div class="d-flex align-items-center">
                    <div class="me-auto">
                        <h4 class="page-title">My account</h4>
                        <div class="d-inline-block align-items-center">
                            <nav>
                                <ol class="breadcrumb">
                                    <li class="breadcrumb-item"><a href="#"><i class="fa fa-home"
                                                aria-hidden="true"></i></a></li>
                                    <li class="breadcrumb-item" aria-current="page"><?= $title ?></li>
                                </ol>
                            </nav>
                        </div>
                    </div>

                </div>
            </div> <!-- Main content -->
            <section class="content">
                <!-- Basic Card Example -->
                <div class="row">
                    <div class="col-sm-12 col-md-12">
                        <div class="card shadow mb-4 border-bottom-success">
                            <div class="card-header py-3 d-flex justify-content-between">
                                <?php echo $__env->make('dashboard.user.partials.balance_and_currency', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                                <?php echo $__env->make('dashboard.user.partials.menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                            <div class="row">
                                <div class="col-sm-12 col-md-7">
                                    <?php echo $__env->make('partials.validation_message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    <?php echo $__env->make('partials.email_message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                    <div class="card-header flex-column align-items-left">
                                        <h4>Transfer details</h4>
                                    </div>
                                    <div class="card-body">
                                        <?php if($transfer->status == 0): ?>
                                            <span class="badge badge-danger float-right">PENDING</span>
                                        <?php elseif($transfer->status == 1): ?>
                                            <span class="badge badge-success float-right">APPROVED</span>
                                        <?php elseif($transfer->status == 2): ?>
                                            <span class="badge badge-danger float-right">FAILED</span>
                                        <?php endif; ?>
                                        <h5 class="m-0 p-0"><span
                                                class="text-primary"><?php echo e(currency($user->currency) . formatAmount($transfer->amount)); ?></span>
                                            <small><?php echo e(currency($user->currency, 'name')); ?></small>
                                        </h5>
                                        <p class="m-0 p-0"><?php echo e($transfer->type); ?></p>
                                        <small class="float-right">
                                            Date: <?php echo e(date('dS M,Y', strtotime($transfer->created_at))); ?> </small>
                                        <h5>Beneficiary information's</h5>
                                        <?php if($transfer->type == 'Electronic Transfer'): ?>
                                            <dl class="row">
                                                <dt class="col-sm-3"><?php echo e($transfer->withdrawal_method); ?>:</dt>
                                                <dd class="col-sm-9"><?php echo e($transfer->beneficiary); ?></dd>
                                            </dl>
                                        <?php else: ?>
                                            <dl class="row">
                                                <dt class="col-sm-3">Bank name:</dt>
                                                <dd class="col-sm-9"><?php echo e($transfer->bank_name); ?></dd>
                                                <dt class="col-sm-3">Account name:</dt>
                                                <dd class="col-sm-9"><?php echo e($transfer->account_name); ?></dd>
                                                <dt class="col-sm-3">Account number:</dt>
                                                <dd class="col-sm-9"><?php echo e($transfer->account_number); ?></dd>
                                            </dl>
                                        <?php endif; ?>

                                    </div>
                                    <div class="card-footer">
                                            <div class="d-flex justify-content-between">
                                                <a href="<?php echo e(route('user.transfer.print', $transfer->uuid)); ?>"
                                                    class="btn btn-success btn-sm">PRINT</a>
                                            </div>
                                    </div>
                                </div>
                                <div class="col-sm-12 col-md-5">
                                    <?php echo $__env->make('dashboard.user.partials.personal_account_details', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <!-- /.content -->
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.user.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\projects\online-banking-v4.1\resources\views\dashboard\user\transfer\show.blade.php ENDPATH**/ ?>