

<?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-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>
            <button class="nav-link" id="v-pills-language-tab" data-toggle="pill" data-target="#v-pills-language" type="button" role="tab" aria-controls="v-pills-messages" aria-selected="false"><?php echo e(awtTrans('اللغه')); ?></button>
            <button class="nav-link" id="v-pills-about_statistic-tab" data-toggle="pill" data-target="#v-pills-about_statistic" 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->section == 'contact'): ?>
                    <?php if($setting->type == 'url'): ?>
                    <div class="col-12">
                        <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 if($setting->type == 'email'): ?>
                    <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="email" 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 == '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 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 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->section == 'about'): ?>

                    <?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="<?php echo e($setting->key); ?>" data-input="<?php echo e($setting->key); ?>" data-preview="<?php echo e($setting->key); ?>" class="lfm 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 <?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" 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 <?php echo e($setting->key); ?>">
                            <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'): ?>

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

                    <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>
                        <?php
                        $url = $setting->value;
                        $url_components = parse_url($url);
                        parse_str($url_components['query'], $params);
                        $key = $params['v'];
                        ?>
                        <iframe src="https://www.youtube.com/embed/<?php echo e($key); ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                    </div>
                    <?php else: ?>


                    <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 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 if($setting->type == 'pdf'): ?>
                    <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">
                            <input type="file" accept=".pdf" class="form-control <?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" 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 <?php echo e($setting->key); ?>">
                            <a href="<?php echo e(url($setting->value)); ?>" target="_blank"><i class="fa fa-file"></i></a>
                        </div>
                        <small class="text-danger"><?php echo e($errors->first('logo')); ?></small>
                    </div>
                    <?php endif; ?>


                    <?php endif; ?>

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

                </div>
            </div>

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

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

                    <?php if($setting->section == 'market'): ?>

                    <?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="<?php echo e($setting->key); ?>" data-input="<?php echo e($setting->key); ?>" data-preview="<?php echo e($setting->key); ?>" class="lfm 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 <?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" 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 <?php echo e($setting->key); ?>">
                            <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=" <?php echo e($setting->key == 'creativity' ? 'col-12' : '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-timetable" role="tabpanel" aria-labelledby="v-pills-timetable-tab">
                <div class="row">

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

                    <?php if($setting->section == 'timetable'): ?>

                    <?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="<?php echo e($setting->key); ?>" data-input="<?php echo e($setting->key); ?>" data-preview="<?php echo e($setting->key); ?>" class="lfm 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 <?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" 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 <?php echo e($setting->key); ?>">
                            <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=" <?php echo e($setting->key == 'creativity' ? 'col-12' : '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-manufacturing_request" role="tabpanel" aria-labelledby="v-pills-manufacturing_request-tab">
                <div class="row">

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

                    <?php if($setting->section == 'manufacturing_request'): ?>

                    <?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="<?php echo e($setting->key); ?>" data-input="<?php echo e($setting->key); ?>" data-preview="<?php echo e($setting->key); ?>" class="lfm 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 <?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" 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 <?php echo e($setting->key); ?>">
                            <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=" <?php echo e($setting->key == 'creativity' ? 'col-12' : '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">


                    <div class="col-12">
                        <div class="form-group">
                            <button type="button" class="btn btn-dark btn-block" id="add-default">الوضع الافتراضي</button>

                        </div>
                    </div>

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

                    <?php if($setting->section == 'color'): ?>


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

                    <div class="col-3">
                        <div class="form-group">
                            <label class="form-label" for="<?php echo e($setting->key); ?>"><?php echo e(__($setting->neckname)); ?></label>
                            <input type="color" 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-language" role="tabpanel" aria-labelledby="v-pills-language-tab">
                <div class="row">


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

                    <?php if($setting->section == 'language'): ?>


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

                    <div class="col-6">
                        <div class="form-group">
                            <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 endif; ?>

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

                </div>
            </div>

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

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

                    <?php if($setting->section == 'about_statistic'): ?>

                    <?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="<?php echo e($setting->key); ?>" data-input="<?php echo e($setting->key); ?>" data-preview="<?php echo e($setting->key); ?>" class="lfm 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 <?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" 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 <?php echo e($setting->key); ?>">
                            <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'): ?>

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

                    <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>
                        <?php
                        $url = $setting->value;
                        $url_components = parse_url($url);
                        parse_str($url_components['query'], $params);
                        $key = $params['v'];
                        ?>
                        <iframe src="https://www.youtube.com/embed/<?php echo e($key); ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
                    </div>
                    <?php else: ?>


                    <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 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 if($setting->type == 'pdf'): ?>
                    <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">
                            <input type="file" accept=".pdf" class="form-control <?php echo e($setting->key); ?>" id="<?php echo e($setting->key); ?>" 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 <?php echo e($setting->key); ?>">
                            <a href="<?php echo e(url($setting->value)); ?>" target="_blank"><i class="fa fa-file"></i></a>
                        </div>
                        <small class="text-danger"><?php echo e($errors->first('logo')); ?></small>
                    </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 $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

<?php if($setting->section == 'default_color'): ?>
<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(); ?>

<?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'
    // });

    // ================== emails ========================
    $(document).on('click', '.remove-email', function() {
        $(this).closest('.remove-this').remove();
    })

    $(document).on('click', '.add-email', function() {

        var html = `<div class="col-12 row remove-this">
                        <div class="col-10">
                            <div class="form-group">
                                <input type="tel" class="form-control dt-full-name-ar" value="" name="emails[]" id="emails" placeholder="Email" aria-label="emails" />
                            </div>
                        </div>
                        <div class="col-2">
                            <div class="form-group">
                                <button type="button" class="btn btn-danger form-control remove-email"><i class="fa fa-trash"></i></button>
                            </div>
                        </div>
                    </div>`;

        $('#append-email').append(html);

    })

    // ================== phones ========================
    $(document).on('click', '.remove-phone', function() {
        $(this).closest('.remove-this').remove();
    })

    $(document).on('click', '.add-phone', function() {

        var html = `<div class="col-12 row remove-this">
                        <div class="col-10">
                            <div class="form-group">
                                <input type="tel" class="form-control dt-full-name-ar" value="" name="phones[]" id="phones" placeholder="phone" aria-label="phones" />
                            </div>
                        </div>
                        <div class="col-2">
                            <div class="form-group">
                                <button type="button" class="btn btn-danger form-control remove-phone"><i class="fa fa-trash"></i></button>
                            </div>
                        </div>
                    </div>`;

        $('#append-phone').append(html);

    })


    $(document).on('click', '#add-default', function() {

        $('#main_first_color').val($('#default_main_first_color').val())
        $('#main_second_color').val($('#default_main_second_color').val())
        $('#main_third_color').val($('#default_main_third_color').val())
        $('#main_six_color').val($('#default_main_six_color').val())
        $('#color_header').val($('#default_color_header').val())

    })
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sitejadara/public_html/ics/resources/views/admin/settings/edit.blade.php ENDPATH**/ ?>