<?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).' | My credit/debit cards']] + (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).' | My credit/debit cards']); ?>

    <div class="nk-block">
        <div class="row g-gs">
            <div class="col-12">
                <div class="card h-100">

                    <div class="card-inner card-title-group card-title border-bottom d-flex justify-content-between">
                        <div><h6 class="title">My Card</h6></div>
                        <div><a href="<?php echo e(route('user.apply-card')); ?>" class="btn btn-primary btn-sm" > No card yet? Apply</a></div>
                    </div>

                    <div class="card-inner col-md-10">
                        <div class="col-md-9">
                            <form method="POST" class="form-validate is-alter" novalidate="novalidate" id="apply-loan-formdata">
                                <?php echo csrf_field(); ?>
                                <em class="icon ni ni-cc-visa" style="font-size: 28px"></em>
                                <em class="icon ni ni-cc-mc" style="font-size: 28px"></em>
                                <em class="icon ni ni-american-express" style="font-size: 28px"></em>
                                <em class="icon ni ni-cc-discover mb-3" style="font-size: 28px"></em>


                                <div class="row g-gs">
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="form-label"> Name on card</label>
                                            <input type="text" class="form-control" readonly value="<?php echo e(auth()->user()->lastname.' '.auth()->user()->firstname); ?>">
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="form-label"> Credit card number</label>
                                            <input type="text" class="form-control" readonly value="<?php echo e(!empty($card->serial_number)?$card->serial_number:'XXX-XXX-0'); ?>" readonly>
                                        </div>
                                    </div>
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <label class="form-label"> Expiry Month</label>
                                            <input type="text" class="form-control" readonly value="<?php echo e(!empty($card->expiry_month)?$card->expiry_month:00); ?>" readonly>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="receiver"> Exp Year</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" value="<?php echo e(!empty($card->expiry_year)?$card->expiry_year:00); ?>" readonly>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="receiver"> CVV</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" value="<?php echo e(!empty($card->cvv)?$card->cvv:'000'); ?>" readonly>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="receiver"> Card Pin</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" value="****" readonly>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="receiver"> Card Balance</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" value="<?php echo e(!empty($card->balance) ? numbers($card->balance) : numbers(0)); ?>" readonly>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php /**PATH /home/fivemill/secure.fivemillionmiles.net/resources/views/user/cards.blade.php ENDPATH**/ ?>