<?php $__env->startSection('title'); ?> <?php if(isset($pageTitle)): ?> <?php echo e($pageTitle); ?> <?php endif; ?> <?php $__env->stopSection(); ?>

<?php $__env->startSection('main-body'); ?>
    <link type="text/css" rel="stylesheet" href="<?php echo e(asset('assets/colorPicker/css/wheelcolorpicker.css')); ?>" />
    <link type="text/css" rel="stylesheet" href="<?php echo e(asset('assets/colorPicker/css/wheelcolorpicker.dark.css')); ?>" />
    <!-- Start page title -->
    <div class="qz-page-title">
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <div class="d-flex justify-content-between align-items-center">
                        <h2><?php if(isset($pageTitle)): ?> <?php echo e($pageTitle); ?> <?php endif; ?></h2>
                        <span class="sidebarToggler">
                            <i class="fa fa-bars d-lg-none d-block"></i>
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End page title -->
    <?php echo $__env->make('layout.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="qz-content-area">
        <div class="card add-category">
            <div class="card-body">
                <div class="container-fluid">
                    <div class="row">
                        <div class="col-md-12 v-tab">
                            <div class="tab">
                                <button class="tablinks" onclick="openCity(event, 'London')" id="defaultOpen"><?php echo e(__('General')); ?></button>
                                <button class="tablinks" onclick="openCity(event, 'Paris')"><?php echo e(__('Logo')); ?> </button>
                                <button class="tablinks" onclick="openCity(event, 'Privacy')"><?php echo e(__('Privacy Policy')); ?></button>
                            </div>

                        </div>
                        <div class="col-lg-12 tabcontent mt-5" id="London">
                            <?php echo e(Form::open(['route' => 'saveSettings', 'files' => 'true'])); ?>

                            <div class="row">
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('App Title')); ?></label>
                                        <input type="text" name="app_title" value ="<?php if(isset($adm_setting['app_title'])): ?> <?php echo e($adm_setting['app_title']); ?> <?php endif; ?>" class="form-control" placeholder="">
                                        <span class="text-danger"><strong><?php echo e($errors->first('app_title')); ?></strong></span>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('Contact Number')); ?></label>
                                        <input type="text" name="contact_number" value ="<?php if(isset($adm_setting['contact_number'])): ?> <?php echo e($adm_setting['contact_number']); ?><?php endif; ?>" class="form-control" placeholder="">
                                        <span class="text-danger"><strong><?php echo e($errors->first('contact_number')); ?></strong></span>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('Primary Email')); ?></label>
                                        <input type="text" name="primary_email" value ="<?php if(isset($adm_setting['primary_email'])): ?> <?php echo e($adm_setting['primary_email']); ?> <?php endif; ?>" class="form-control" placeholder="">
                                        <span class="text-danger"><strong><?php echo e($errors->first('primary_email')); ?></strong></span>

                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('Login Text')); ?></label>
                                        <input type="text" name="login_text" value ="<?php if(isset($adm_setting['login_text'])): ?> <?php echo e($adm_setting['login_text']); ?> <?php endif; ?>" class="form-control" placeholder="">
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('Sign Up Text')); ?></label>
                                        <input type="text" name="signup_text" value ="<?php if(isset($adm_setting['signup_text'])): ?> <?php echo e($adm_setting['signup_text']); ?> <?php endif; ?>" class="form-control" placeholder="">
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('Copyright Text')); ?></label>
                                        <input type="text" name="copyright_text" value ="<?php if(isset($adm_setting['copyright_text'])): ?> <?php echo e($adm_setting['copyright_text']); ?> <?php endif; ?>" class="form-control" placeholder="">
                                        <span class="text-danger"><strong><?php echo e($errors->first('copyright_text')); ?></strong></span>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('Address')); ?></label>
                                        <input type="text" name="address" value ="<?php if(isset($adm_setting['address'])): ?> <?php echo e($adm_setting['address']); ?> <?php endif; ?>" class="form-control" placeholder="">
                                        <span class="text-danger"><strong><?php echo e($errors->first('address')); ?></strong></span>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group <?php echo e($errors->has('lang') ? ' has-error' : ''); ?>">
                                        <label><?php echo e(__('Language')); ?><span class="text-danger"></span></label>
                                        <div class="qz-question-category">
                                            <select name="lang" class="form-control">
                                                <?php $__currentLoopData = language(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option <?php if(isset($adm_setting['lang']) && $adm_setting['lang']==$val): ?> selected <?php endif; ?> value="<?php echo e($val); ?>"><?php echo e(langName($val)); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                        <span class="text-danger"><strong><?php echo e($errors->first('lang')); ?></strong></span>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('Front End Base Color')); ?></label>
                                        <input type="text" name="front_base_color" value ="<?php if(isset($adm_setting['front_base_color'])): ?> <?php echo e($adm_setting['front_base_color']); ?> <?php endif; ?>"
                                               class="form-control" id="colorpicker" placeholder="">
                                        <span class="text-danger"><strong><?php echo e($errors->first('front_base_color')); ?></strong></span>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label><?php echo e(__('Google capcha site key')); ?></label>
                                        <input type="text" name="google_capcha_site_key" value ="<?php if(isset($adm_setting['google_capcha_site_key'])): ?> <?php echo e($adm_setting['google_capcha_site_key']); ?> <?php endif; ?>"
                                               class="form-control" placeholder="">
                                        <span class="text-danger"><strong><?php echo e($errors->first('google_capcha_site_key')); ?></strong></span>
                                    </div>
                                </div>
                                <div class="col-lg-4">
                                    <button type="submit" class="btn btn-primary btn-block add-category-btn mt-4"><?php echo e(__('Save Change')); ?></button>
                                </div>
                            </div>
                            <?php echo e(Form::close()); ?>

                        </div>
                        <div class="col-lg-12 tabcontent mt-5" id="Paris">
                            <?php echo e(Form::open(['route' => 'adminImageUploadSave', 'files' => 'true'])); ?>

                            <div class="row">
                                <div class="col-lg-3">
                                    <div class="form-group">
                                        <label><?php echo e(__('Company logo')); ?></label>
                                        <div id="file-upload" class="section">
                                            <div class="row section">
                                                <div class="col s12 m12 l12">
                                                    <input name="logo" type="file" id="input-file-now" class="dropify" data-default-file="<?php echo e(isset($adm_setting['logo']) && !empty($adm_setting['logo']) ? asset(path_image().$adm_setting['logo']) : ''); ?>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3 offset-1">
                                    <div class="form-group">
                                        <label><?php echo e(__('Login logo')); ?></label>
                                        <div id="file-upload" class="section">
                                            <div class="row section">
                                                <div class="col s12 m12 l12">
                                                    <input name="login_logo" type="file" id="input-file-now" class="dropify" data-default-file="<?php echo e(isset($adm_setting['login_logo']) && !empty($adm_setting['login_logo']) ? asset(path_image().$adm_setting['login_logo']) : ''); ?>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3 offset-1">
                                    <div class="form-group">
                                        <label><?php echo e(__('Fevicon')); ?></label>
                                        <div id="file-upload" class="section">
                                            <div class="row section">
                                                <div class="col s12 m12 l12">
                                                    <input name="favicon" type="file" id="input-file-now" class="dropify" data-default-file="<?php echo e(isset($adm_setting['favicon']) && !empty($adm_setting['favicon']) ? asset(path_image().$adm_setting['favicon']) : ''); ?>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-lg-3">
                                    <button type="submit" class="btn btn-primary btn-block add-category-btn mt-4"><?php echo e(__('Save Change')); ?></button>
                                </div>
                            </div>
                            <?php echo e(Form::close()); ?>

                        </div>
                        <div class="col-lg-12 tabcontent mt-5" id="Privacy">
                            <?php echo e(Form::open(['route' => 'adminImageUploadSave', 'files' => 'true'])); ?>

                            <div class="row">
                                <div class="col-lg-12">
                                    <div class="form-group">
                                        <label><?php echo e(__('Privacy and Policy')); ?></label>
                                        <textarea id="btEditor" name="privacy_policy"><?php if(isset($adm_setting['privacy_policy'])): ?><?php echo e($adm_setting['privacy_policy']); ?><?php else: ?><?php echo e(old('privacy_policy')); ?><?php endif; ?></textarea>
                                    </div>
                                </div>
                                <div class="col-lg-12">
                                    <div class="form-group">
                                        <label><?php echo e(__('Terms and Conditions')); ?></label>
                                        <textarea id="btEditor2" name="terms_conditions"><?php if(isset($adm_setting['terms_conditions'])): ?> <?php echo e($adm_setting['terms_conditions']); ?> <?php else: ?> <?php echo e(old('terms_conditions')); ?> <?php endif; ?></textarea>
                                    </div>
                                </div>
                                <div class="col-lg-4">
                                    <button type="submit" class="btn btn-primary btn-block add-category-btn mt-4"><?php echo e(__('Save Change')); ?></button>
                                </div>
                            </div>
                            <?php echo e(Form::close()); ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End content area  -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
    <script src="<?php echo e(asset('assets/colorPicker/jquery.wheelcolorpicker.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/colorPicker/jquery.wheelcolorpicker.min.js')); ?>"></script>
    <script type="text/javascript">
        $(function() {
            // $('#color-inline1').wheelColorPicker();
            $('#colorpicker').wheelColorPicker({ sliders: "whsvp", preview: true, format: "css" });
        //     $('#color-inline3').wheelColorPicker({ live: false, sliders: "wrgbap", format: "rgba" });
        //     $('#color-block').wheelColorPicker({ layout: 'block', sliders: "whsvrgbap" });
        });
    </script>
    <script>
        function openCity(evt, cityName) {
            var i, tabcontent, tablinks;
            tabcontent = document.getElementsByClassName("tabcontent");
            for (i = 0; i < tabcontent.length; i++) {
                tabcontent[i].style.display = "none";
            }
            tablinks = document.getElementsByClassName("tablinks");
            for (i = 0; i < tablinks.length; i++) {
                tablinks[i].className = tablinks[i].className.replace(" active", "");
            }
            document.getElementById(cityName).style.display = "block";
            evt.currentTarget.className += " active";
        }

        // Get the element with id="defaultOpen" and click on it
        document.getElementById("defaultOpen").click();
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/ayara/resources/views/admin/setting/setting.blade.php ENDPATH**/ ?>