

<?php $__env->startSection('content'); ?>
<?php if(session('about_update_msg')): ?>
<div class="alert alert-success">
    <?php echo e(session('about_update_msg')); ?>

</div>
<?php endif; ?>
<h2 class="mb-3"><?php echo e(awtTrans('Settings Update')); ?></h2>

<?php echo Form::open(['method' => 'POST', 'route' => 'admin.settings.store', 'files' => true]); ?>

<div class="row">



    <div class="col-2">
        <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
            <button class="nav-link active" id="v-pills-home-tab" data-toggle="pill" data-target="#v-pills-home" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true"><?php echo e(awtTrans('وسائل التواصل')); ?></button>
            <button class="nav-link" id="v-pills-profile-tab" data-toggle="pill" data-target="#v-pills-profile" type="button" role="tab" aria-controls="v-pills-profile" aria-selected="false"><?php echo e(awtTrans('Contact Data')); ?></button>
            <button class="nav-link" id="v-pills-address-tab" data-toggle="pill" data-target="#v-pills-address" type="button" role="tab" aria-controls="v-pills-messages" aria-selected="false"><?php echo e(awtTrans('Map')); ?></button>
            <button class="nav-link" id="v-pills-static-tab" data-toggle="pill" data-target="#v-pills-static" type="button" role="tab" aria-controls="v-pills-messages" aria-selected="false"><?php echo e(awtTrans('الصفحات الثابتة')); ?></button>
            <button class="nav-link" id="v-pills-setting-tab" data-toggle="pill" data-target="#v-pills-setting" type="button" role="tab" aria-controls="v-pills-messages" aria-selected="false"><?php echo e(awtTrans('Site Setting')); ?></button>
            <button class="nav-link" id="v-pills-mail-tab" data-toggle="pill" data-target="#v-pills-mail" type="button" role="tab" aria-controls="v-pills-messages" aria-selected="false"><?php echo e(awtTrans('اعدادات الميل')); ?></button>
        </div>
    </div>


    <div class="col-10">
        <div class="tab-content" id="v-pills-tabContent">

            <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
                <div class="row">
                    <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <?php if($setting->key == 'facebook_link' || $setting->key == 'instagram_link' || $setting->key == 'twitter_link' || $setting->key == 'snapchat_link'): ?>
                    <?php if($setting->type == 'url'): ?>
                    <div class="col-6">
                        <div class="form-group" id="dis_first_title_ar">
                            <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                            <input type="url" class="form-control dt-full-name-ar" value="<?php echo e($setting->value); ?>" name="<?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" placeholder="<?php echo e(__($setting->neckname)); ?>" aria-label="<?php echo e(__($setting->neckname)); ?>" />
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php endif; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>
            </div>

            <div class="tab-pane fade" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab">

                <div class="row">

                    <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <?php if($setting->type == 'tel'): ?>
                    <div class="col-6">
                        <div class="form-group" id="dis_first_title_ar">
                            <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                            <input type="tel" class="form-control dt-full-name-ar" value="<?php echo e($setting->value); ?>" name="<?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" placeholder="<?php echo e(__($setting->neckname)); ?>" aria-label="<?php echo e(__($setting->neckname)); ?>" />
                        </div>
                    </div>
                    <?php endif; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                </div>
            </div>

            <div class="tab-pane fade" id="v-pills-address" role="tabpanel" aria-labelledby="v-pills-address-tab">
                <div class="row">

                    <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <?php if($setting->key == 'address'): ?>

                    <div class="col-md-12">
                        <div class="form-group">
                            <label class="form-label" for="title"><?php echo e($setting->neckname); ?> </label>
                            <input type="<?php echo e($setting->type); ?>" style="width: 73%;margin: 12px 0 0;" id="<?php echo e($setting->key); ?>" name="<?php echo e($setting->key); ?>" value="<?php echo e($setting->value); ?>" class="form-control image" aria-label="Name" aria-describedby="basic-addon-name" />
                            <div id="map" style="height: 500px;"></div>
                            <div class="">
                                <?php if($errors->has('title')): ?>
                                <span class="help-block">
                                    <strong style="color: red;"><?php echo e($errors->first('title')); ?></strong>
                                </span>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>

                    <?php elseif($setting->key == 'lat'): ?>

                    <input type="hidden" name="<?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" value="<?php echo e($setting->value); ?>">
                    <?php elseif($setting->key == 'lng'): ?>

                    <input type="hidden" name="<?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" value="<?php echo e($setting->value); ?>">

                    <?php endif; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                </div>
            </div>

            <div class="tab-pane fade" id="v-pills-static" role="tabpanel" aria-labelledby="v-pills-static-tab">
                <div class="row">

                    <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <?php if($setting->key != 'about_application_ar' && $setting->key != 'about_application_en' ): ?>
                    <?php if($setting->type == 'textarea'): ?>
                    <div class="col-6">
                        <div class="form-group" id="dis_first_title_ar">
                            <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                            <textarea name="<?php echo e($setting->key); ?>" class="form-control" id="<?php echo e($setting->key); ?>" cols="30" rows="10"><?php echo e($setting->value); ?></textarea>
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php endif; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                </div>
            </div>

            <div class="tab-pane fade" id="v-pills-setting" role="tabpanel" aria-labelledby="v-pills-setting-tab">
                <div class="row">

                    <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <?php if($setting->key == 'logo' || $setting->key == 'name_site_ar' || $setting->key == 'name_site_en' || $setting->key == 'about_application_ar' || $setting->key == 'about_application_en' || $setting->key == 'from_time' || $setting->key == 'to_time' || $setting->key == 'day_work' || $setting->key == 'day_notwork'): ?>

                    <?php if($setting->type == 'file'): ?>
                    <div class="form-group col-lg-12">
                    <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                        <div class="input-group">
                            <span class="input-group-btn">
                                <a id="lfm" data-input="logo" data-preview="holder" class="btn btn-secondary text-white px-4" style="border-top-right-radius: 0;border-bottom-right-radius: 0;border-top-left-radius: 0;border-bottom-left-radius: 0;">
                                    <i class="fa fa-picture-o"></i> <?php echo e(awtTrans('اختر الصورة')); ?>

                                </a>
                            </span>

                            <input type="text" class="form-control" readonly value="<?php echo e($setting->value); ?>" name="<?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" placeholder="<?php echo e(__($setting->neckname)); ?>" aria-label="<?php echo e(__($setting->neckname)); ?>" />

                        </div>
                        <div class="mb-3 mt-3 d-block slider-holder" id="holder">
                            <img width="100" src="<?php echo e($setting->value); ?>" alt="">
                        </div>
                        <small class="text-danger"><?php echo e($errors->first('logo')); ?></small>
                    </div>
                    <?php endif; ?>

                    <?php if($setting->type == 'text'): ?>

                    <div class="col-6">
                        <div class="form-group" id="dis_first_title_ar">
                            <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                            <input type="text" class="form-control dt-full-name-ar" value="<?php echo e($setting->value); ?>" name="<?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" placeholder="<?php echo e(__($setting->neckname)); ?>" aria-label="<?php echo e(__($setting->neckname)); ?>" />
                        </div>
                    </div>
                    <?php endif; ?>

                    <?php if($setting->type == 'textarea'): ?>
                    <div class="col-6">
                        <div class="form-group" id="dis_first_title_ar">
                            <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                            <textarea name="<?php echo e($setting->key); ?>" class="form-control" id="<?php echo e($setting->key); ?>" cols="30" rows="10"><?php echo e($setting->value); ?></textarea>
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php endif; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                </div>
            </div>

            <div class="tab-pane fade" id="v-pills-mail" role="tabpanel" aria-labelledby="v-pills-mail-tab">
                <div class="row">

                    <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                    <?php if($setting->key == 'smtp_host' || $setting->key == 'smtp_port' || $setting->key == 'smtp_encryption' || $setting->key == 'smtp_username' || $setting->key == 'smtp_password'): ?>

                    <?php if($setting->type == 'file'): ?>
                    <div class="form-group col-lg-12">
                    <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                        <div class="input-group">
                            <span class="input-group-btn">
                                <a id="lfm" data-input="logo" data-preview="holder" class="btn btn-secondary text-white px-4" style="border-top-right-radius: 0;border-bottom-right-radius: 0;border-top-left-radius: 0;border-bottom-left-radius: 0;">
                                    <i class="fa fa-picture-o"></i> <?php echo e(awtTrans('اختر الصورة')); ?>

                                </a>
                            </span>

                            <input type="text" class="form-control" readonly value="<?php echo e($setting->value); ?>" name="<?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" placeholder="<?php echo e(__($setting->neckname)); ?>" aria-label="<?php echo e(__($setting->neckname)); ?>" />

                        </div>
                        <div class="mb-3 mt-3 d-block slider-holder" id="holder">
                            <img width="100" src="<?php echo e($setting->value); ?>" alt="">
                        </div>
                        <small class="text-danger"><?php echo e($errors->first('logo')); ?></small>
                    </div>
                    <?php endif; ?>

                    <?php if($setting->type == 'text'): ?>

                    <div class="col-6">
                        <div class="form-group" id="dis_first_title_ar">
                            <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                            <input type="text" class="form-control dt-full-name-ar" value="<?php echo e($setting->value); ?>" name="<?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" placeholder="<?php echo e(__($setting->neckname)); ?>" aria-label="<?php echo e(__($setting->neckname)); ?>" />
                        </div>
                    </div>
                    <?php endif; ?>

                    <?php if($setting->type == 'textarea'): ?>
                    <div class="col-6">
                        <div class="form-group" id="dis_first_title_ar">
                            <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                            <textarea name="<?php echo e($setting->key); ?>" class="form-control" id="<?php echo e($setting->key); ?>" cols="30" rows="10"><?php echo e($setting->value); ?></textarea>
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php endif; ?>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                </div>
            </div>

        </div>
        <?php echo Form::submit(awtTrans('Settings Update'), ['class' => 'btn btn-success']); ?>


        <?php echo Form::close(); ?>

    </div>


</div>



<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<!-- <script src="<?php echo e(url('dashboard')); ?>/forms/settings/edit.js"></script> -->
<script src="https://cdn.ckeditor.com/4.16.1/standard/ckeditor.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBdarVlRZOccFIGWJiJ2cFY8-Sr26ibiyY&libraries=places&callback=initAutocomplete&language=<?php echo e('ar'); ?>" defer></script>
<script src="<?php echo e(url('dashboard')); ?>/custom/map.js"></script>

<script>
    CKEDITOR.replace('about_application_ar', {
        language: 'ar'
    });
    CKEDITOR.replace('about_application_en', {
        language: 'ar'
    });
    CKEDITOR.replace('help_center_ar', {
        language: 'ar'
    });
    CKEDITOR.replace('help_center_en', {
        language: 'ar'
    });
    CKEDITOR.replace('privacy_ar', {
        language: 'ar'
    });
    CKEDITOR.replace('privacy_en', {
        language: 'ar'
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\jaadara\Projects from 10-2022\Laravel-portfolio-website\resources\views/admin/settings/edit.blade.php ENDPATH**/ ?>