
<?php $__env->startSection('title'); ?>
<title><?php echo e($websiteLang->where('lang_key','blog_comment')->first()->custom_text); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('admin-content'); ?>
    <!-- DataTales Example -->
    <div class="row">
        <div class="col-md-6">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary"><?php echo e($websiteLang->where('lang_key','blog_comment')->first()->custom_text); ?></h6>
                </div>
                <div class="card-body">
                    <form action="<?php echo e(route('admin.update.comment.setting')); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="form-group">
                            <label for=""><?php echo e($websiteLang->where('lang_key','comment_type')->first()->custom_text); ?></label>
                            <select name="comment_type" class="form-control" id="comment_type">
                                <option <?php echo e($setting->comment_type==1 ? 'selected':''); ?> value="1"><?php echo e($websiteLang->where('lang_key','custom_comment')->first()->custom_text); ?></option>
                                <option <?php echo e($setting->comment_type==0 ? 'selected':''); ?> value="0"><?php echo e($websiteLang->where('lang_key','fb_comment')->first()->custom_text); ?></option>
                            </select>
                        </div>
                        <?php if($setting->comment_type==0): ?>
                            <div class="form-group" id="hiddenFacebookId">
                                <label for="facebook_comment_script"><?php echo e($websiteLang->where('lang_key','fb_app_id')->first()->custom_text); ?></label>
                                <input type="text" class="form-control" name="facebook_comment_script" id="facebook_comment_script" value="<?php echo e($setting->facebook_comment_script); ?>">
                            </div>
                        <?php endif; ?>

                        <?php if($setting->comment_type!=0): ?>
                        <div class="form-group d-none" id="hiddenFacebookId">
                            <label for="facebook_comment_script"><?php echo e($websiteLang->where('lang_key','fb_app_id')->first()->custom_text); ?></label>
                            <input type="text" class="form-control" name="facebook_comment_script" id="facebook_comment_script" value="<?php echo e($setting->facebook_comment_script); ?>">
                        </div>
                        <?php endif; ?>

                        <button type="submit" class="btn btn-success"><?php echo e($websiteLang->where('lang_key','update')->first()->custom_text); ?></button>
                    </form>
                </div>
            </div>
        </div>
    </div>


<script>
    (function($) {
    "use strict";
    $(document).ready(function () {
        $("#comment_type").on("change",function(e){
            var id=$(this).val()
            if(id==0){
                $("#hiddenFacebookId").removeClass('d-none');
            }else{
                $("#hiddenFacebookId").addClass('d-none');
            }
        })

    });

    })(jQuery);
</script>

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

<?php echo $__env->make('layouts.admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/cloudelite/imobi.eliteteclda.com/resources/views/admin/settings/blog-comment/index.blade.php ENDPATH**/ ?>