<?php $__env->startSection('title', __('backend.settings')); ?>

<?php $__env->startSection('content'); ?>
    <!-- MAIN CONTENT -->
    <div class="container-fluid">
	    <div class="row">

        
        <div class="col-xs-12">
          <?php echo $__env->make('backend.settings.profile', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>
        

        
        <div class="col-xs-12">
          <?php echo $__env->make('backend.settings.font', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>
        


        
        <div class="col-xs-12">
          <?php echo $__env->make('backend.settings.colors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>
        

        
        <div class="col-xs-12">
          <?php echo $__env->make('backend.settings.pagename', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>

        
        <div class="col-xs-12">
          <?php echo $__env->make('backend.settings.redirection', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>
        

        
        <div class="col-xs-12">
          <?php echo $__env->make('backend.settings.compression', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>          
        </div>
        

        
        <div class="col-xs-12">
          <?php echo $__env->make('backend.settings.sitemap', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>                    
        </div>
        

        
        <div class="col-xs-12">
          <?php echo $__env->make('backend.settings.maintenace', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>
        

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

<?php $__env->startSection('script'); ?>
  <script type="text/javascript">
    $("#text_onbanner").on("change",function() {
      var $color = $(this).val();
      $("#textOnBannerExample").find(".content-text").css("color","#"+$color);
    });

    $("input[name='btn_color[]']").each(function() {
      $($(this)).on('change',function(){
        var $id = $(this).data('id');
        var $color = $(this).val();
        if($id == "bgcolor"){
          $("#styleBtnBgColor").html('#btnExample{background-color: #'+$color+'}');
        }else if ($id == "bgcolorhover") {
          $("#styleBtnBgColorHover").html('#btnExample:hover{background-color: #'+$color+'}');
        }else if ($id == "txtcolor") {
          $("#styleBtnTxtColor").html('#btnExample{color: #'+$color+'}');
        }else if ($id == "txtcolorhover") {
          $("#styleBtnTxtColorHover").html('#btnExample:hover{color: #'+$color+'}');
        }
      });
    });

    $("input[name='panel_color[]']").each(function() {
      $($(this)).on('change',function(){
        var $color1 = $("input[data-id='color1']").val();
        var $color2 = $("input[data-id='color2']").val();
        $("#panelColorStyle").html("#panelColor{background: #"+$color1+";background: -webkit-linear-gradient(#"+$color1+", #"+$color2+");background: -o-linear-gradient(#"+$color1+", #"+$color2+");background: -moz-linear-gradient(#"+$color1+", #"+$color2+");background: linear-gradient(#"+$color1+", #"+$color2+");}");
      });
    });

    $(document).ready(function(){
        $('[data-toggle="popover"]').popover();

        $('.fontselect').each(function(){
            var $id = $(this).data('id');

            // replace + signs with spaces for css
            var font = $($(this)).val().replace(/\+/g, ' ');

            // split font into family and weight
            font = font.split(':');

            // set family on paragraphs
            if($id == "caption"){
              $('#captionFont').css('font-family', font[0]);
            }else if($id == "subcaption"){
              $('#subCaptionFont').css('font-family', font[0]);
            }else{
              $($(this)).parents('.font-selector').find('.fontExample').css('font-family', font[0]);
            }
        });
    });

    $('.fontselect').fontselect().each(function(){
      $($(this)).change(function(){

        var $id = $(this).data('id');

        // replace + signs with spaces for css
        var font = $(this).val().replace(/\+/g, ' ');

        // split font into family and weight
        font = font.split(':');

        // set family on paragraphs
        if($id == "caption"){
          $('#captionFont').css('font-family', font[0]);
        }else if($id == "subcaption"){
          $('#subCaptionFont').css('font-family', font[0]);
        }else{
          $(this).parents('.font-selector').find('.fontExample').css('font-family', font[0]);
        }
      });
    });

    $("#defaultFont").click(function(){
      $('.fontselect').each(function(){
        $($(this)).val("");
      });
    });
  </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.masterBackend', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>