



<?php $__env->startSection('content'); ?>
    <div class="bg-image" style="background-image: url('assets/media/photos/photo10@2x.jpg');">
        <div class="bg-primary-dark-op">
            <div class="content content-full text-center">
                <div class="my-3">
                    <img class="img-avatar img-avatar-thumb" src="assets/media/avatars/avatar13.jpg" alt="">
                </div>
                <h1 class="h2 text-white mb-0">Edit Account</h1>
                <h2 class="h4 fw-normal text-white-75">
                    <?php echo e(Auth::user()->name); ?> <?php echo e(Auth::user()->lastname); ?>

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



    <div class="content content-boxed">
        <div class="block block-rounded">
            <div class="block-header block-header-default">

                <h3 class="block-title">Profile</h3>


            </div>

            <?php if(Session::has('error_message')): ?>
                <div class="alert alert-danger d-flex align-items-center justify-content-between" role="alert">
                    <div class="flex-grow-1 me-3">
                        <p class="mb-0">
                            <?php echo e(Session::get('error_message')); ?>

                        </p>
                    </div>

                </div>
            <?php endif; ?>

            <?php if(Session::has('success_message')): ?>
                <div class="alert alert-success d-flex align-items-center justify-content-between" role="alert">
                    <div class="flex-grow-1 me-3">
                        <p class="mb-0">
                            <?php echo e(Session::get('success_message')); ?>

                        </p>
                    </div>

                </div>
            <?php endif; ?>

            <div class="block-content block-content-full">
                <form action="<?php echo e(route('UserProfileUpdate')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="row">
                        <div class="col-lg-4">
                            <p class="fs-sm text-muted">

                            </p>
                        </div>
                        <div class="col-lg-12 col-xl-5">
                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" id="example-text-input-readonly-floating"
                                    name="name" placeholder="Name"
                                    value="<?php echo e(Auth::user()->name); ?>" readonly="" disabled>
                                <label for="example-text-input-readonly-floating">First Name</label>

                            </div>

                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" id="example-text-input-readonly-floating"
                                    name="lastname" placeholder="Name"
                                    value="<?php echo e(Auth::user()->lastname); ?>" readonly="" disabled>
                                <label for="example-text-input-readonly-floating">Last Name</label>

                            </div>

                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" id="example-text-input-readonly-floating"
                                    name="email" placeholder="Email"
                                    value="<?php echo e(Auth::user()->email); ?>" readonly="" disabled>
                                <label for="example-text-input-readonly-floating">Email</label>

                            </div>

                            <div class="form-floating mb-4">
                                <select class="form-select" id="example-select-floating" name="country"
                                    aria-label="Floating label select example">
                                    <option selected="">Select an option</option>
                                    <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($key); ?>"
                                            <?php if($key == Auth::user()->country): ?> selected <?php endif; ?>>
                                            <?php echo e($country); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <label for="example-select-floating">Country</label>
                            </div>

                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" value="<?php echo e(Auth::user()->address); ?>"
                                    name="address" placeholder="Address">
                                <label for="example-password-input-floating">Address</label>
                            </div>

                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" value="<?php echo e(Auth::user()->city); ?>"
                                    name="city" placeholder="City">
                                <label for="example-password-input-floating">City</label>
                            </div>

                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" value="<?php echo e(Auth::user()->state); ?>"
                                    name="state" placeholder="State">
                                <label for="example-password-input-floating">State</label>
                            </div>

                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" value="<?php echo e(Auth::user()->post_code); ?>"
                                    name="post_code" placeholder="Post Code">
                                <label for="example-password-input-floating">Post Code</label>
                            </div>

                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" value="<?php echo e(Auth::user()->phone_number); ?>"
                                    name="phone_number" placeholder="Phone Number">
                                <label for="example-password-input-floating">Phone Number</label>
                            </div>

                            <div class="form-floating mb-4">
                                <input type="text" class="form-control" value="<?php echo e(Auth::user()->company); ?>"
                                    name="company" placeholder="Company">
                                <label for="example-password-input-floating">Company</label>
                            </div>
                            <button type="submit" class="btn btn-alt-primary">Update</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>

        <div class="block block-rounded">
            <div class="block-header block-header-default">
                <h3 class="block-title">Change Password</h3>
            </div>
            <div class="block-content">
                <form action="<?php echo e(route('ChangePasswordSave')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="row push">
                        <div class="col-lg-4">
                            <p class="fs-sm text-muted">
                                Changing your sign in password is an easy way to keep your account secure.
                            </p>
                        </div>
                        <div class="col-lg-8 col-xl-5">
                            <div class="mb-4">
                                <label class="form-label" for="one-profile-edit-password">Current Password</label>
                                <input type="password"
                                    class="form-control <?php $__errorArgs = ['current_password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                    name="current_password">
                                <?php $__errorArgs = ['current_password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                    <div class="invalid-feedback animated fadeIn"><?php echo e($message); ?></div>
                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

                            </div>
                            <div class="row mb-4">
                                <div class="col-12">
                                    <label class="form-label" for="one-profile-edit-password-new">New Password</label>
                                    <input type="password" class="form-control  <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        id="one-profile-edit-password-new" name="password">
                                    <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="invalid-feedback animated fadeIn"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                            <div class="row mb-4">
                                <div class="col-12">
                                    <label class="form-label" for="one-profile-edit-password-new-confirm">Confirm New
                                        Password</label>
                                    <input type="password" class="form-control <?php $__errorArgs = ['confirm'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                        id="one-profile-edit-password-new-confirm" name="confirm">
                                    <?php $__errorArgs = ['confirm'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                        <div class="invalid-feedback animated fadeIn"><?php echo e($message); ?></div>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                            </div>
                            <div class="mb-4">
                                <button type="submit" class="btn btn-alt-primary">
                                    Update
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>


        <div class="block block-rounded">
            <div class="block-header block-header-default">
                <h3 class="block-title">Two Factor Authentication</h3>
            </div>
            <div class="block-content">
                <div class="row push">
                    <div class="col-lg-4">
                        <p class="fs-sm text-muted">
                            Add an extra layer of security to your myLEAP account for FREE.
                        </p>
                    </div>
                    <div class="col-lg-8 col-xl-7">
                        <div class="row mb-4">
                            <div class="col-sm-10 col-md-8 col-xl-6">
                                

                                <a href="<?php echo e(route('profile.google2fa.page')); ?>" class="btn w-100 btn-alt-danger text-start">
                                    <i class="fa-solid fa-shield opacity-50 me-1"></i>2FA Configure
                                </a>
                            </div>

                        </div>


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

<?php echo $__env->make('Dashboard.master_page', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/leaparyanict/aict.leap.aryanict.com/resources/views/Dashboard/User/profile.blade.php ENDPATH**/ ?>