<?php echo $__env->make('Admin.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>



<div class="main-content">
    <div class="container">

<br>
<br>
<br>
<br>
    <?php if($errors->any()): ?>
        <div class="alert alert-danger">
          <ul>
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </ul>
        </div>
        <?php endif; ?>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card card-shadow mb-4">
                            <div class="card-header">
                                <div class="card-title" style="float: left;">
                                   	SEO Setting
                                </div> 
                        
                            </div>
                            <div class="card-body">
                                <form id="" method="post" class=" right-text-label-form feedback-icon-form" action="<?php echo e(route('seosetting.update', $seo->id)); ?>" enctype="multipart/form-data">
                                     <?php echo method_field('patch'); ?>
                                    <?php echo csrf_field(); ?>
                                
                                    <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1">Meta title</label>
                                        <div class="col-sm-6">
                                            <input type="text" class="form-control" name="meta_title" placeholder="Meta title" required="" value="<?php echo e($seo->meta_title); ?>">
                                        </div>
                                    </div>
                                    
                                      <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1">Meta Description</label>
                                        <div class="col-sm-6">
                                            <textarea name="meta_des" id="" class="form-control" placeholder="Meta Description"><?php echo $seo->meta_des; ?></textarea>
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1">Meta Keywords</label>
                                        <div class="col-sm-6">
                                            <input type="text" class="form-control"  name="meta_keywords" placeholder="Meta Keywords" value="<?php echo e($seo->meta_keywords); ?>">
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1">Meta Robots</label>
                                        <div class="col-sm-6">
                                            <input type="text" class="form-control"  name="robots" placeholder="Meta Robots" value="<?php echo e($seo->robots); ?>">
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1">Canonical tag</label>
                                        <div class="col-sm-6">
                                            <input type="text" class="form-control"  name="canonical" placeholder="Canonical tag" value="<?php echo e($seo->canonical); ?>">
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1">Meta Image</label>
                                        <div class="col-sm-6">
                                          
                                            <?php
                                             $path= base_path().'/public/seoImage/'.$seo->meta_image;
                                            ?>
                                            <?php if($seo->meta_image): ?>
                                            <img src="<?php echo e(asset('/public/seoImage')); ?>/<?php echo e($seo->meta_image); ?>" alt="" class="w-50">
                                            <?php endif; ?>

                                            <input type="file" class="form-control"  name="meta_image">
                                            <span>Size: 1200*627px</span>
                                        </div>
                                    </div>


                                    <div class="form-group row">
                                        <label class="col-sm-4 control-label" for="username1">Google Analytics Code</label>
                                        <div class="col-sm-6">
                                            <textarea name="google_analytics" id="" cols="30" rows="10" class="form-control"><?php echo $seo->google_analytics; ?></textarea>
                                        </div>
                                    </div>


                                    <div class="form-group row">
                                        <div class="col-sm-8 ml-auto">
                                            <button type="submit" class="btn btn-success" name="signup1" value="Sign up">Update</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>







    </div>
</div>








<?php echo $__env->make('Admin.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<script type="text/javascript">
      function check_all()
      {
      
      if($('#chkbx_all').is(':checked')){
        $('input.check_elmnt2').prop('disabled', false);
        $('input.check_elmnt').prop('checked', true);
        $('input.check_elmnt2').prop('checked', true);
      }else{
        $('input.check_elmnt2').prop('disabled', true);
        $('input.check_elmnt').prop('checked', false);
        $('input.check_elmnt2').prop('checked', false);
        }
    } 
    

    function chekMain(getID){
       
          if($('#linkID-'+getID).is(':checked')){
              
            $("input#sublinkID-"+getID).attr('disabled', false);
            $("input#sublinkID-"+getID).attr('checked', true);
          
          }else{
            $("input#sublinkID-"+getID).attr('disabled', true);
            $("input#sublinkID-"+getID).attr('checked', false);
          
          }
      
        }


</script><?php /**PATH D:\xampp\htdocs\office\electronics\resources\views/Admin/seo/index.blade.php ENDPATH**/ ?>