<?php $__env->startSection('content'); ?>
    <section class="inner_header">
        <img src="<?php echo e(asset('assets/web/images/icons/inner.svg')); ?>" alt="" class="inner_shap">
        <div class="container">
            <ul class="links">
                <li>
                    <a href="#">الرئيسية</a>
                </li>
                <li>
                    <a href="<?php echo e(LaravelLocalization::getLocalizedURL($lang, route('home'), [], true)); ?>">الرئيسية</a>
                </li>
            </ul>
            <h4>الملف الشخصي</h4>
        </div>
    </section>

    <section class="profile-pg section_padding">
        <div class="container">
            <div class="user_img">
                <div class="img">
                    <img id="img-profile" class="img-fluid image-profile"
                         src="<?php echo e(asset($user->photo ?? 'assets/web/images/person.png')); ?>" alt="your image">
                </div>
            </div>
            <div class="inner">
                <div class="row">
                    <div class="col-md-6">
                        <div class="data-group">
                            <p class="label"><?php echo e(__('members.name')); ?></p>
                            <p class="data"><?php echo e($user->name); ?></p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="data-group">
                            <p class="label"><?php echo e(__('members.email')); ?></p>
                            <p class="data"><?php echo e($user->email); ?></p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="data-group">
                            <p class="label"><?php echo e(__('members.phone')); ?></p>
                            <p class="data">
                                <?php echo e($user->phone); ?>

                                <a href="#" class="butn sub_butn">
                                    <span><i class="bi bi-pen"></i> تعديل</span>
                                </a>
                            </p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="data-group">
                            <p class="label">المدينة</p>
                            <p class="data"><?php echo e($cityName); ?></p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="data-group">
                            <p class="label">جهة العمل <small>(أختياري)</small></p>
                            <p class="data">أسم جهة العمل</p>
                        </div>
                    </div>
                    <div class="col-md-12 mt-4">
                        <a href="#" class="submit-butn butn m-auto d-block col-md-3"><span><b> تعديل البيانات الشخصية </b></span></a>

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

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

<?php $__env->startSection('inner_js'); ?>

    <script>
        $('.training_request_button').click(async function (e) {
            e.preventDefault();
            // $(this).attr('disabled', true);
            let form = $('.training_request_form'),
                data = new FormData(form[0]),
                url = form.attr('action'),
                method = form.attr('method');

            const response=await ajax({
                url,
                data,
                dataType: 'json',
                method,
                contentType: false,
                processData: false,
            });

            if (response.errors) {
                $(this).attr('disabled', false);
                toasterError(response.errors);
            }
            if (response.success) {
                let myModal = new bootstrap.Modal(document.querySelector('.training_request_modal'));
                myModal.show();
            }
        });

        $('.training_request_modal').on('hide.bs.modal', function () {
            window.location.reload();
        });

        $('.certifications').imageUploader({
            label: 'رفع المرفقات ',
            imagesInputName: 'certifications'
        });

        $('.cv').imageUploader({
            label: 'رفع المرفقات ',
            imagesInputName: 'cv'

        });

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

<?php echo $__env->make('web.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\legal\resources\views/web/users/profile.blade.php ENDPATH**/ ?>