<?php $__env->startSection('title'); ?>
    <?php echo e(__('front_site_settings')); ?>

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


<?php $__env->startSection('content'); ?>
    
    <div class="content-wrapper">
        <div class="page-header">
            <h3 class="page-title">
                <?php echo e(__('front_site_settings')); ?>

            </h3>
        </div>
        <div class="row grid-margin">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body">
                        <form id="formdata" method="post" class="create-form-without-reset" action="<?php echo e(route('system-settings.front-site-settings.update')); ?>" novalidate="novalidate" enctype="multipart/form-data">
                            <?php echo csrf_field(); ?>
                            <div class="border border-secondary rounded-lg my-4 mx-1">
                                <div class="col-md-12 mt-3">
                                    <h4><?php echo e(__('Themes Settings')); ?></h4>
                                </div>
                                <div class="col-12 mb-3">
                                    <hr class="mt-0">
                                </div>
                                
                                <div class="row my-4 mx-1">
                                    <div class="form-group col-md-6 col-lg-6 col-xl-4 col-sm-12">
                                        <label for="front_site_theme_color"><?php echo e(__('theme_color')); ?> <span class="text-danger">*</span></label>
                                        <input name="front_site_theme_color"
                                            value="<?php echo e($settings['front_site_theme_color'] ?? ''); ?>" type="text" required
                                            placeholder="<?php echo e(__('theme_color')); ?>" id="theme_color" class="theme_color" />
                                        <small>
                                            <a href="javascript:null" onclick="restore_theme_color()"><?php echo e(__('restore_default')); ?></a>
                                        </small>
                                    </div>

                                    <div class="form-group col-md-6 col-lg-6 col-xl-4 col-sm-12">
                                        <label for="primary_color"><?php echo e(__('primary_color')); ?> <span class="text-danger">*</span></label>
                                        <input name="primary_color" id="primary_color"
                                            value="<?php echo e($settings['primary_color'] ?? ''); ?>" type="text" required
                                            placeholder="<?php echo e(__('primary_color')); ?>" class="primary_color" />
                                        <small>
                                            <a href="javascript:null" onclick="restore_primary_color()"><?php echo e(__('restore_default')); ?></a>
                                        </small>
                                    </div>

                                    <div class="form-group col-md-6 col-lg-6 col-xl-4 col-sm-12">
                                        <label for="secondary_color"><?php echo e(__('secondary_color')); ?> <span class="text-danger">*</span></label>
                                        <input name="secondary_color" id="secondary_color"
                                            value="<?php echo e($settings['secondary_color'] ?? ''); ?>" type="text" required
                                            placeholder="<?php echo e(__('secondary_color')); ?>" class="secondary_color" />
                                        <small>
                                            <a href="javascript:null" onclick="restore_secondary_color()"><?php echo e(__('restore_default')); ?></a>
                                        </small>
                                    </div>

                                    <div class="form-group col-sm-12 col-md-6">
                                        <label for=""><?php echo e(__('short_description')); ?></label>
                                        <?php echo Form::textarea('short_description', $settings['short_description'] ?? null, ['class' => 'form-control', 'placeholder' => __('short_description')]); ?>

                                        
                                    </div>

                                    <div class="form-group col-sm-12 col-md-6 mt-3">
                                        <label for="image"><?php echo e(__('home_image')); ?> </label>
                                        <input type="file" name="home_image" class="file-upload-default" />
                                        <div class="input-group col-xs-12">
                                            <input type="text" class="form-control file-upload-info"
                                                id="home_image" disabled=""
                                                placeholder="<?php echo e(__('home_image')); ?>" />
                                            <span class="input-group-append">
                                                <button class="file-upload-browse btn btn-theme"
                                                    type="button"><?php echo e(__('upload')); ?></button>
                                            </span>
                                            <div class="col-md-12 mt-2">
                                                <img height="50px" src='<?php echo e($settings['home_image'] ?? ''); ?>'
                                                    alt="">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            
                            <div class="border border-secondary rounded-lg my-4 mx-1">
                                <div class="col-md-12 mt-3">
                                    <h4><?php echo e(__('Footer Settings')); ?></h4>
                                </div>
                                <div class="col-12 mb-3">
                                    <hr class="mt-0">
                                    <h5><?php echo e(__('social_media_links')); ?></h5>
                                    <hr class="mt-3">
                                </div>
                                <div class="row my-4 mx-1">
                                    <div class="form-group col-md-6 col-lg-6 col-xl-4 col-sm-12">
                                        <label for="facebook"><?php echo e(__('facebook')); ?></label>
                                        <input name="facebook" id="facebook" value="<?php echo e($settings['facebook'] ?? ''); ?>" type="text" placeholder="<?php echo e(__('facebook')); ?>" class="form-control" />
                                    </div>

                                    <div class="form-group col-md-6 col-lg-6 col-xl-4 col-sm-12">
                                        <label for="instagram"><?php echo e(__('instagram')); ?></label>
                                        <input name="instagram" id="instagram" value="<?php echo e($settings['instagram'] ?? ''); ?>" type="text" placeholder="<?php echo e(__('instagram')); ?>" class="form-control" />
                                    </div>

                                    <div class="form-group col-md-6 col-lg-6 col-xl-4 col-sm-12">
                                        <label for="linkedin"><?php echo e(__('linkedin')); ?> </label>
                                        <input name="linkedin" id="linkedin" value="<?php echo e($settings['linkedin'] ?? ''); ?>" type="text" placeholder="<?php echo e(__('linkedin')); ?>" class="form-control" />
                                    </div>
                                </div>

                                <div class="col-12 mb-3">
                                    <hr class="mt-0">
                                    <h5><?php echo e(__('footer_text')); ?></h5>
                                </div>

                                <div class="row my-4 mx-1">
                                    <div class="col-sm-12 col-md-12">
                                        <textarea id="tinymce_message" name="footer_text" id="footer_text" required placeholder="<?php echo e(__('footer_text')); ?>"><?php echo e($settings['footer_text'] ?? ''); ?></textarea>
                                    </div>
                                </div>                                
                            </div>
                            <hr>
                                <input class="btn btn-theme" type="submit" value="Submit">
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
    <script>
        function restore_theme_color()
        {
            $('#theme_color').val('#E9F9F3');
            $('.theme_color').asColorPicker('val', '#E9F9F3');
            
        }
        function restore_primary_color()
        {
            $('#primary_color').val('#0CAE74');
            $('.primary_color').asColorPicker('val', '#3CCB9B');
        }
        function restore_secondary_color()
        {
            $('#secondary_color').val('#245A7F');
            $('.secondary_color').asColorPicker('val', '#245A7F');
        }
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/schoolatharvatek/public_html/resources/views/settings/front_site_settings.blade.php ENDPATH**/ ?>