
<?php $__env->startSection('title', $title); ?>
<?php $__env->startSection('content'); ?>


    <div id="appCapsule">

        <div class="d-flex flex-column align-items-start justify-content-center flex-wrap me-1">

            <ul class="nav nav-tabs nav-line-tabs nav-line-tabs-2x  fs-6 border-gray-300" id="tabs-icons-text" role="tablist">
                <li class="nav-item">
                    <a class="nav-link text-dark  active " id="tabs-icons-text-1-tab" href="<?php echo e(route('profile')); ?>"
                        role="tab" aria-controls="tabs-icons-text-1" aria-selected="true">Profile</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link text-dark " id="tabs-icons-text-2-tab" href="<?php echo e(route('editpass')); ?>" role="tab"
                        aria-controls="tabs-icons-text-2" aria-selected="false">Security</a>
                </li>

                <li class="nav-item" data-bs-toggle="modal" data-bs-target="#resetpassword">
                    <a class="nav-link text-dark " id="tabs-icons-text-2-tab" href="#" role="tab"
                        aria-controls="tabs-icons-text-2" aria-selected="false">Upload profile picture</a>
                </li>

                <li class="nav-item" data-bs-toggle="modal" data-bs-target="#resetpin">
                    <a class="nav-link text-dark " id="tabs-icons-text-2-tab" href="#" role="tab"
                        aria-controls="tabs-icons-text-2" aria-selected="false">Change Transaction Pin</a>
                </li>
            </ul>
        </div>
        <div class="section mt-2 text-center">
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.danger-alert','data' => []]); ?>
<?php $component->withName('danger-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.success-alert','data' => []]); ?>
<?php $component->withName('success-alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
            <div class="avatar-section">
                <a href="#">
                    <img src="<?php echo e(asset('storage/app/public/photos/' . Auth::user()->profile_photo_path)); ?>" alt="avatar"
                        class="imaged w100 rounded">
                    <!-- <span class="button" type="file">
                                                                                                                                                                                          <ion-icon name="camera-outline"></ion-icon>
                                                                                                                                                                                      </span> -->


                    <!-- <form method="POST" action="#">
                                                                                                                                                                                          <input type="file" name="avatar">
                                                                                                                                                                                          <button type="submit" name="upload_passport">Submit</button>
                                                                                                                                                                                      </form> -->
                </a>
            </div>
        </div>

        

        <div class="listview-title mt-1">Informations</div>
        <ul class="listview image-listview text inset">
            <li>
                <div class="item">
                    <div class="in">
                        <div>Fullname</div>
                        <div class="form-check form-switch  ms-2">
                            <?php echo e(Auth::user()->name); ?> <?php echo e(Auth::user()->lastname); ?> </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item">
                    <div class="in">
                        <div>Dirth of
                            birth</div>
                        <div class="form-check form-switch  ms-2">
                            <?php echo e(\Carbon\Carbon::parse(Auth::user()->dob)->toFormattedDateString()); ?> </div>
                    </div>
                </div>
            </li>

            <li>
                <div class="item">
                    <div class="in">
                        <div>Phone</div>
                        <div class="form-check form-switch  ms-2">
                            <?php echo e(Auth::user()->phone); ?> </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item">
                    <div class="in">
                        <div>Email</div>
                        <div class="form-check form-switch  ms-2">
                            <?php echo e(Auth::user()->email); ?> </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item">
                    <div class="in">
                        <div>Country</div>
                        <div class="form-check form-switch  ms-2">
                            <?php echo e(Auth::user()->country); ?> </div>
                    </div>
                </div>
            </li>

            <li>
                <div class="item">
                    <div class="in">
                        <div>City address</div>
                        <div class="form-check form-switch  ms-2">
                            <?php echo e(Auth::user()->address); ?> </div>
                    </div>
                </div>
            </li>
            <li>
                <div class="item">
                    <div class="in">
                        <div>Currency</div>
                        <div class="form-check form-switch  ms-2">
                            <?php echo e(Auth::user()->currency); ?> </div>
                    </div>
                </div>
            </li>
            <li>
                <!-- <div class="item">
                                                                                                                                                                                      <div class="in">
                                                                                                                                                                                          <div>Account Status</div>
                                                                                                                                                                                          <div class="form-check form-switch  ms-2">
                                                                                                                                                                                         <h3> <strong></strong>  <img src="assets/img/sample/brand/1.png" alt="img" style="width: 20px; height:20px; border-radius:10px;"></h3>
                                                                                                                                                                                          </div>
                                                                                                                                                                                      </div>
                                                                                                                                                                                  </div> -->
            </li>
        </ul>


        <div class="listview-title mt-1">Logout</div>
        <ul class="listview image-listview text mb-2 inset">


            <li>
                <a href="<?php echo e(route('logout')); ?>" class="item"
                    onclick="event.preventDefault();
                  document.getElementById('logout-form').submit();">
                    <div class="in">
                        <div>Log out all devices</div>
                    </div>
                </a>
                <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                    <?php echo e(csrf_field()); ?>

                </form>
            </li>
        </ul>


    </div>

    <div wire:ignore.self class="modal fade" id="resetpassword" tabindex="-1" role="dialog" aria-labelledby="modal-form"
        aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header border-0">
                    <h3 class="modal-title">Upload Profile</h3>
                    <div class="btn btn-icon btn-sm btn-active-light-primary ms-2" data-bs-dismiss="modal"
                        aria-label="Close">
                        <span class="svg-icon svg-icon-1">
                            <i class="fal fa-times"></i>
                        </span>
                    </div>
                </div>
                <div class="modal-body">
                    <form action ="<?php echo e(route('updateprofilephoto')); ?>" method="post" class="mb-10"
                        enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>


                        <div class="form-group basic">
                            <div class="input-wrapper">
                                <label class="label" for="text11d"> Profile
                                    Picture</label>
                                <input type="file" name='photo' class="form-control" id="text11d" required>

                            </div>
                        </div>



                        <div class="form-group basic">
                            <button type="submit" class="btn btn-primary btn-block btn-lg" name="submit"><span>Upload
                                    Profile Picture</span></button>
                        </div>

                    </form>

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




    <div wire:ignore.self class="modal fade" id="resetpin" tabindex="-1" role="dialog" aria-labelledby="modal-form"
        aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header border-0">
                    <h3 class="modal-title">Reset Transaction Pin</h3>
                    <div class="btn btn-icon btn-sm btn-active-light-primary ms-2" data-bs-dismiss="modal"
                        aria-label="Close">
                        <span class="svg-icon svg-icon-1">
                            <i class="fal fa-times"></i>
                        </span>
                    </div>
                </div>
                <div class="modal-body">
                    <form action ='<?php echo e(route('changepin')); ?>' method="post" class="mb-10">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PUT'); ?>



                        <div class="form-group basic">
                            <div class="input-wrapper">
                                <label class="label" for="text11d"> Transaction Pin</label>
                                <input type="password" class="form-control" id="text11d" placeholder="new pin"
                                    name='pin' autocomplete="off">

                            </div>
                        </div>



                        <div class="form-group basic">
                            <div class="input-wrapper">
                                <label class="label" for="text11d"> Password</label>
                                <input type="password" class="form-control" id="text11d"
                                    placeholder="Enter your password" name='password' autocomplete="off">

                            </div>
                        </div>





                        <div class="form-group basic">
                            <button type="submit" class="btn btn-primary btn-block btn-lg" name="submit">Change
                                Transaction Pin</button>
                        </div>

                    </form>

                </div>
            </div>
        </div>
    </div>
    <!-- * App Capsule -->


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

<?php echo $__env->make('layouts.bankapp', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/remedycodes/public_html/banky2.remedycodes.store/resources/views/user/profile.blade.php ENDPATH**/ ?>