<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.user.layout','data' => ['title' => ''.e(auth()->user()->lastname.' '.auth()->user()->firstname).' | Dashboard']] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('user.layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => ''.e(auth()->user()->lastname.' '.auth()->user()->firstname).' | Dashboard']); ?>

    <div class="nk-block-head nk-block-head-sm">
        <div class="row">
            <div class="col-sm-10 col-md-12 col-lg-12">
                <div class="nk-block-head-content">
                    <div class="nk-block-des text-soft">
                        <h3 class="mb-2"> Hi, welcome back!
                            <span class="pl-0 h6 pl-sm-2 text-muted d-inline-block">
                                <?php echo e(auth()->user()->username); ?>

                            </span>
                        </h3>
                    </div>
                </div><!-- .nk-block-head-content -->
                <div class="nk-block-head-content d-flex justify-content-end">
                    <ul class="nk-block-tools g-3">
                        <li>
                            <a href="<?php echo e(route('user.transfer.international')); ?>" class="btn btn-white btn-outline-light"><em class="icon ni ni-wallet-out"></em><span>Quick Transfer</span></a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('user.open-ticket')); ?>" class="btn btn-white  btn-outline-light"><em class="icon ni ni-inbox-out"></em><span>Open Ticket</span></a>
                        </li>
                        <li>
                            <a href="<?php echo e(route('user.profile')); ?>" class="btn  btn-outline-primary"><em class="icon ni ni-account-setting"></em><span>Profile</span></a>
                        </li>
                    </ul>

                </div><!-- .nk-block-head-content -->
            </div>
        </div><!-- .nk-block-between -->
    </div>

    


    <div class="row">
        <div class="col-xl-3 col-lg-12 stretch-card grid-margin">
            <div class="row">
                <div class="col-xl-12 col-md-6 stretch-card pb-sm-3  mb-3">
                    <div class="card" style="border-radius:10px; background-color:#a61c27; height:130px;">
                        <div class="card-body px-3 py-4">
                            <div class="d-flex justify-content-between align-items-start">
                                <div class="color-card pb-2">
                                    <p class="mb-0 text-white fw-bold fs-18px">Account Balance</p>
                                    <p class="text-white lead fw-bold"> <?php echo e(auth()->user()->account->account_currency.numbers(auth()->user()->account->balance)); ?></p>
                                </div>
                                <img src="/images/icons/money.png" alt="money">
                            </div>
                            <p class="text-white fw-mono"><?php echo e(percentageChange(auth()->user()->account->previous_balance,auth()->user()->account->balance)); ?>% Since <?php echo e(date_format(date_create(auth()->user()->account->previous_balance_date),'M d, Y')); ?></p>
                        </div>
                    </div>
                </div>
                
                <div class="col-xl-12 col-md-6 stretch-card pb-sm-3 pb-lg-0 pb-xl-3   mb-3">
                    <div class="card" style="background-color:#a61c27; border-radius:10px; height:130px;">
                        <div class="card-body px-3 py-4">
                            <div class="d-flex justify-content-between align-items-start">
                                <div class="color-card">
                                    <p class="mb-0 text-white fw-bold fs-18px">Loan Status</p>
                                    <p class="text-white lead fw-bold"> ACTIVE</p>
                                </div>
                                <div class="user-avatar md bg-white">
                                    <em class="icon ni ni-briefcase text-primary" style="font-size: 40px;" ></em>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xl-12 col-md-6 stretch-card pb-sm-3 pb-lg-0   mb-3">
                    <div class="card" style="background-color: #a61c27; border-radius:10px; height:130px;">
                        <div class="card-body px-3 py-4">
                            <div class="d-flex justify-content-between align-items-start">
                                <div class="color-card">
                                    <p class="mb-0 text-white fw-bold fs-18px">Transfer Mode</p>
                                    <p class="text-white lead fw-bold">ACTIVE</p>
                                </div>
                                <div class="user-avatar md bg-white">
                                    <em class="icon ni ni-tranx-fill text-success" style="font-size: 40px;" ></em>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xl-9 stretch-card grid-margin">
            <div class="card">
                <div class="card-body">
                    <div class="row">
                        <div class="col-sm-7 mb-2">
                            <h5 style="color:#a61c27">Transaction Statistics</h5>
                            <p class="text-muted"> Show Overview 04-05-2021 - <?=date('M d, Y')?><a
                                    class="text-muted font-weight-medium pl-2" href="<?php echo e(route('user.statement')); ?>"><u>See Details</u></a>
                            </p>
                        </div>
                        <div class="col-sm-5 text-md-right mb-2">
                            <a
                                href="<?php echo e(route('user.statement.print')); ?>"
                                target="_blank"
                                class="btn btn-dim btn-outline-info font-weight-normal">
                                <em class="icon ni ni-download"></em>&nbsp; Download Statement
                            </a>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4  mb-2">
                            <div class="card">
                                <div class="cardcc" style="width: 100%;">
                                    <div class="cardcc__front cardcc__part">
                                        <img class="cardcc__front-square cardcc__square" src="/images/icons/chip.png">
                                        <img class="cardcc__front-logo cardcc__logo" src="/images/icons/visa.png">
                                        <p class="cardcc_numer"><?php echo e(/*!empty($card->serial_number)?$card->serial_number:*/'XXX0-XXXX-XXX'); ?></p>
                                        <div class="cardcc__space-75">
                                            <span class="cardcc__label">card holder</span>
                                            <p class="cardcc__info"><?php echo e(auth()->user()->lastname.' '.auth()->user()->firstname); ?></p>
                                        </div>
                                        <div class="cardcc__space-25">
                                            <span class="cardcc__label">Expires</span>
                                            <p class="cardcc__info"><?php echo e(/*!empty($card->expiry_year)?$card->expiry_month.'/'.$card->expiry_year:*/'0/0'); ?></p>
                                        </div>
                                    </div>

                                    <div class="cardcc__back cardcc__part">
                                        <div class="cardcc__black-line"></div>
                                        <div class="cardcc__back-content">
                                            <div class="cardcc__secret">
                                                <p class="cardcc__secret--last"><?php echo e(/*!empty($card->cvv)?$card->cvv:*/'0'); ?></p>
                                            </div>
                                            <img class="cardcc__back-logo cardcc__logo" src="/images/icons/visa.png">

                                        </div>
                                    </div>

                                </div>

                            </div>
                        </div>
                        <div class="col-md d-md">&nbsp;</div>

                        <div class="col">
                            <div class="cardcc1">
                                <div class="cardcc1__front cardcc1__part">
                                    <img class="cardcc1__front-square cardcc1__square" src="/images/icons/chip.png">
                                    <img class="cardcc1__front-logo cardcc1__logo" src="/images/logo-dark.png" alt="logo"
                                        height="60px">
                                    <p class="cardcc1_numer">A/C #: <?php echo e(auth()->user()->account->account_number); ?></p>
                                    <div class="cardcc1__space-75">
                                        <span class="cardcc1__label">card holder</span>
                                        <p class="cardcc1__info"><?php echo e(auth()->user()->lastname.' '.auth()->user()->firstname); ?></p>
                                    </div>
                                    <div class="cardcc1__space-25">
                                        <span class="cardcc1__label">Type</span>
                                        <p class="cardcc1__info" style="font-size:12px;"><?php echo e(auth()->user()->account->account_type); ?></p>
                                    </div>
                                </div>

                                <div class="cardcc1__back cardcc1__part">
                                    <div class="cardcc1__black-line"></div>
                                    <div class="cardcc1__back-content">
                                        <div class="cardcc1__secret">
                                            <p class="cardcc1__secret--last">000</p>
                                        </div>
                                        <img class="cardcc1__back-logo cardcc1__logo" src="/images/logo-dark.png" alt="logo"
                                            height="40px">

                                    </div>
                                </div>
                            </div>

                        </div>


                    </div>
                    <div class="row my-3">
                        <div class="col-sm-12">
                            <!-- TradingView Widget BEGIN -->
                            <div class="tradingview-widget-container">
                                <div id="tradingview_119a8"></div>
                                <div class="tradingview-widget-copyright"><a href="" rel="noopener" target="_blank"><span
                                            class="blue-text"></span></a></div>
                                <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
                                <script type="text/javascript">
                                    new TradingView.MediumWidget({
                                        "symbols": [
                                            [
                                                "Apple",
                                                "AAPL"
                                            ],
                                            [
                                                "Google",
                                                "GOOGL"
                                            ],
                                            [
                                                "Microsoft",
                                                "MSFT"
                                            ]
                                        ],
                                        "chartOnly": false,
                                        "width": "100%",
                                        "height": "400",
                                        "locale": "en",
                                        "colorTheme": "light",
                                        "gridLineColor": "rgba(151, 0, 0, 1)",
                                        "trendLineColor": "rgba(0, 0, 0, 1)",
                                        "fontColor": "rgba(255, 255, 255, 1)",
                                        "underLineColor": "rgba(180, 95, 6, 1)",
                                        "isTransparent": false,
                                        "autosize": false,
                                        "container_id": "tradingview_119a8"
                                    });
                                </script>
                            </div>
                            <!-- TradingView Widget END -->
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-8">
                            <p class="text-muted mb-0"> <b>Security Tips</b>
                            </p>
                            <p>Change your Internet banking Password Frequently to keep your Account
                                Safe <a href="#" data-toggle="modal" data-target="#change-password" class="btn btn-sm text-white" style="background-color: #a61c27">Reset Password</a>
                            </p>
                        </div>
                        <div class="col-sm-4">
                            <p class="mb-0 text-muted">Account Number</p>
                            <h5 class="d-inline-block survey-value mb-0"><?php echo e(auth()->user()->account->account_number); ?> </h5>
                            <p class="d-inline-block mb-0" style="color:#a61c27"> <?php echo e(auth()->user()->account->account_type); ?> </p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <?php echo $__env->make('user.modals.change_password', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php /**PATH /home2/fivemill/secure.fivemillionmiles.net/resources/views/user/index.blade.php ENDPATH**/ ?>