<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <link rel="stylesheet" href="<?php echo e(asset('assets/web/css/lib/image-uploader.min.css')); ?>" >
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <section class="page-heading">
        <div class="container">
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="<?php echo e(LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('home'), [], true)); ?>"><?php echo e(__('main.home')); ?></a></li>
                    <li class="breadcrumb-item active" aria-current="page"> <?php echo e($title ?? ''); ?> </li>
                </ol>
                <h3><?php echo e($title ?? ''); ?></h3>
            </nav>
        </div>
        <img src="<?php echo e(asset('assets/web/images/page-heading-1.png')); ?>" alt="" class="pattern1">
        <img src="<?php echo e(asset('assets/web/images/page-heading-2.png')); ?>" alt="" class="pattern2">
        <img src="<?php echo e(asset('assets/web/images/page-heading-3.png')); ?>" alt="" class="pattern3">
    </section>

    <!--Start profile-pg -->
    <section class="profile-pg profile-provider">
        <div class="container">
            <div class="row">
                <?php echo $__env->make('web.members.providers.include.profile_side', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="col-lg-9 m-auto">
                    <div class="tab-content" id="v-pills-tabContent">
                        <?php echo $__env->make('web.members.providers.include.profile', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('web.members.providers.include.reservations', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('web.members.providers.include.saving', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('web.members.providers.include.add_hall', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('web.members.providers.include.my_hall', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                        <?php echo $__env->make('web.members.providers.include.notifications', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!--Info Modal-->
    <div class="modal info-modal fade" id="infoModal" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered modal-lg">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="staticBackdropLabel"><?php echo e(__('members.edit_profile')); ?></h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                </div>
                <form action="<?php echo e(route('provider.updateProfile', $user)); ?>" class="update_profile_form">
                    <div class="modal-body form-wrapper">
                        <div class="image-container" id="imagePreview" style="background-image: url(<?php echo e(asset($user->photo ?? 'assets/web/images/avatar2.png')); ?>);">
                            <input name="photo" type="file" class="custom-file-input" id="imageUpload" required="" capture="">
                            <button><i class="far fa-edit"></i></button>
                        </div>
                        <div class="row mt-5">
                            <div class="col-lg-6">
                                <div class="form-group">
                                    <input name="name" type="text" class="form-control" autocomplete="off" autofocus required value="<?php echo e($user->name); ?>" />
                                    <label class="floating-label"> <?php echo e(__('members.name')); ?> </label>
                                </div>
                            </div>
                            <div class="col-lg-2">
                                <div class="form-group">
                                    <select name="code" class="form-control">
                                        <?php if(count($countryCods)): ?>
                                            <?php $__currentLoopData = $countryCods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $code): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option <?php echo e($user->code == $code ? 'selected' : ''); ?> value="<?php echo e($code); ?>"><?php echo e($code); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <input  name="phone" type="tel" class="form-control" autocomplete="off" autofocus required value="<?php echo e($user->phone); ?>"/>
                                    <label class="floating-label"> <?php echo e(__('members.phone')); ?> </label>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <select data-target=".for_profile" name="region_id" class="form-control for_profile" autocomplete="off" autofocus required >
                                        <option value=""> <?php echo e(__('members.region_id')); ?> </option>
                                        <?php if(count($regions)): ?>
                                            <?php $__currentLoopData = $regions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $region): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option <?php echo e($user->region_id == $region->id ? 'selected' : ''); ?> value="<?php echo e($region->id); ?>"><?php echo e($region->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>
                                    <label class="floating-label"><?php echo e(__('members.region_id')); ?></label>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <select data-target=".for_profile" name="city_id" class="form-control for_profile" autocomplete="off" autofocus required >
                                        <option value=""> ا<?php echo e(__('members.city_id')); ?> </option>
                                        <?php if(count($cities)): ?>
                                            <?php $__currentLoopData = $cities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $city): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option <?php echo e($user->city_id == $city->id ? 'selected' : ''); ?> value="<?php echo e($city->id); ?>"><?php echo e($city->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>
                                    <label class="floating-label"><?php echo e(__('members.city_id')); ?></label>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <select data-target=".for_profile" name="sector_id" class="form-control for_profile" autocomplete="off" autofocus required >
                                        <option value=""> <?php echo e(__('members.sector_id')); ?> </option>
                                        <?php if(count($sectors)): ?>
                                            <?php $__currentLoopData = $sectors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sector): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option <?php echo e($user->sector_id == $sector->id ? 'selected' : ''); ?> value="<?php echo e($sector->id); ?>"><?php echo e($sector->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </select>
                                    <label class="floating-label"><?php echo e(__('members.sector_id')); ?></label>
                                </div>
                            </div>
                            <div class="col-lg-12">
                                <div class="form-group">
                                    <input name="street" type="text" class="form-control" autocomplete="off" autofocus required value="<?php echo e($user->street); ?>"/>
                                    <label class="floating-label"><?php echo e(__('members.street')); ?></label>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="form-group">
                                    <input name="password" type="password" class="form-control"  id="password"  autocomplete="off" autofocus required />
                                    <label class="floating-label"><?php echo e(__('members.password')); ?></label>
                                    <span class="togglePassword"><i class="far fa-eye" id="togglePassword"></i></span>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="form-group">
                                    <input name="password_confirmation" type="password" class="form-control"  autocomplete="off" autofocus required />
                                    <label class="floating-label"> <?php echo e(__('members.retype_password')); ?> </label>
                                </div>
                            </div>
                            <div class="col-lg-12">
                                <div class="form-group file-input-group">
                                    <div class="wrap">
                                        <div class="file">
                                            <div class="logo_file_input file__input" id="file__input">
                                                <input class="file__input--file" id="customLogoFile" type="file" name="logo" />
                                                <label class="file__input--label" for="customLogoFile" data-text-btn="<?php echo e(__('members.select')); ?>"> <?php echo e(__('members.logo')); ?>  :</label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-12">
                                <h5 class="title_banking mb-4 mt-1"><?php echo e(__('members.bank_account_info')); ?></h5>
                            </div>
                            <div class="col-lg-6">
                                <div class="form-group">
                                    <input name="bank_name" type="text" class="form-control" autocomplete="off" autofocus required value="<?php echo e($user->bank_acc_info['bank_name'] ?? null); ?>"/>
                                    <label class="floating-label">  <?php echo e(__('members.bank_name')); ?> </label>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="form-group">
                                    <input name="iban" type="text" class="form-control" autocomplete="off" autofocus required value="<?php echo e($user->bank_acc_info['iban'] ?? null); ?>"/>
                                    <label class="floating-label"> <?php echo e(__('members.iban')); ?>  </label>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="form-group">
                                    <input name="client_name" type="text" class="form-control" autocomplete="off" autofocus required value="<?php echo e($user->bank_acc_info['client_name'] ?? null); ?>"/>
                                    <label class="floating-label">  <?php echo e(__('members.client_name')); ?> </label>
                                </div>
                            </div>
                            <div class="col-lg-6">
                                <div class="form-group">
                                    <input name="acc_no" type="text" class="form-control" autocomplete="off" autofocus required value="<?php echo e($user->bank_acc_info['acc_no'] ?? null); ?>"/>
                                    <label class="floating-label"> <?php echo e(__('members.acc_no')); ?> </label>
                                </div>
                            </div>
                        </div>
                        <div class="custom-control custom-checkbox mt-3">
                            <input <?php echo e($user->email_receive ? 'checked' : ''); ?> value="1" name="email_receive" type="checkbox" class="custom-control-input" id="newsletter">
                            <label class="custom-control-label" for="newsletter"><?php echo e(__('members.email_receive')); ?></label>
                        </div>
                    </div>
                </form>
                <div class="modal-footer">
                    <button type="button" class="main-butn update_profile_button"><i class="fas fa-save"></i> <?php echo e(__('members.save')); ?></button>
                </div>

            </div>

        </div>

    </div>
    <!--Confirmation Modal-->
    <div class="modal state-modal fade" id="confirmationModal" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered modal-lg">
            <div class="modal-content">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <div class="modal-body">
                    <div class="text-box">
                        <img src="<?php echo e(asset('assets/web/images/question.png')); ?>" alt="" class="icon mb-4"/>
                        <h3 class="title mb-3"> <?php echo e(__('members.cancel_reservation_confirmation')); ?> </h3>
                        <p class="p"> <?php echo e(__('members.cancel_reservation_confirmation_hint')); ?> <b><?php echo e(__('members.meet')); ?></b> </p>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__('members.cancel')); ?></button>
                    <button type="button" class="main-butn"> <?php echo e(__('members.sure')); ?> </button>
                </div>

            </div>

        </div>

    </div>

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

<?php $__env->startSection('inner_js'); ?>
    <script>
            let refreshNotificationRoute = "<?php echo e(route('user.refreshNotification')); ?>",
                markAsReadRoute = "<?php echo e(route('user.markAsRead')); ?>",
                providerWalletSearchRoute = "<?php echo e(route('provider.walletSearch')); ?>",
                
                getCityAndSectorRoute = "<?php echo e(route('provider.getCityAndSector')); ?>",
                addServiceIcon = "<?php echo e(asset('assets/web/images/icons/profile/add.svg')); ?>",
                region_name = "<?php echo e(__('members.region_id')); ?>",
                city_name = "<?php echo e(__('members.city_id')); ?>",
                sector_name = "<?php echo e(__('members.sector_id')); ?>",
                available_dates_to = "<?php echo e(__('halls.available_dates_to')); ?>",
                available_dates_from = "<?php echo e(__('halls.available_dates_from')); ?>",
                discount_dates = "<?php echo e(__('halls.discount_dates')); ?>",
                discount_percentage = "<?php echo e(__('halls.discount_percentage')); ?>",
                added_services = "<?php echo e(__('halls.added_services')); ?>",
                added_services_name = "<?php echo e(__('halls.added_services_name')); ?>",
                added_services_price = "<?php echo e(__('halls.added_services_price')); ?>",
                added_services_description = "<?php echo e(__('halls.added_services_description')); ?>",
                added_services_image = "<?php echo e(__('halls.added_services_image')); ?>",
                select = "<?php echo e(__('members.select')); ?>",
                upload_hall_image = "<?php echo e(__('halls.upload_hall_image')); ?>";

    </script>
    <script src="<?php echo e(asset('assets/web/js/provider.profile.js')); ?>"></script>

    <script>

    </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\meet\resources\views/web/members/providers/profile.blade.php ENDPATH**/ ?>