<?php $__env->startSection('content-sidebar'); ?>
<?php $__env->startSection('title', $title); ?>

<?php $__env->startSection('vendor-style'); ?>

<link rel="stylesheet" href="">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Add rows table -->
<?php
$live_test = Config::get('params.live_test');
$required = "";
?>
<section id="add-row">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title"><?php echo e($title); ?></h4>
                </div>
                <div class="card-content">

                    <div class="card-body">
                        <div class="row"> 
                            <div class="col-md-12 col-xs-12 col-lg-12">
                                <?php echo $__env->make("messages", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                            </div>
                        </div>
                        
                        <div class="row">
                            
                            <ul class="nav nav-tabs nav-fill" id="myTab" role="tablist">


                                
                                <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                
                                <li class="nav-item">
                                    <a id="order-tab-fill" data-target="#<?php echo e($key); ?>" data-toggle="tab" class="nav-link small text-uppercase <?php if($loop->iteration == 1): ?> active <?php endif; ?>"><?php echo e($loop->iteration); ?> - <?php echo e($category['title']); ?></a>
                                </li>
                                <??>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                            </ul>
                        </div>

                        <?php echo Form::model($model, ['files' => true,'class' => 'number-tab-steps wizard-circle wizard clearfix','url' => ['admin/settings/update'], 'method' => 'post']); ?>




                        <div class="tab-content">
                            <?php $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                            <div class="tab-pane <?php if($loop->iteration == 1): ?> active <?php endif; ?>" id="<?php echo e($key); ?>">
                                <div class="row">
                                    <div class="col-sm-12 col-md-12 col-lg-12">
                                        <?php $__currentLoopData = $category["data"]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key1=>$row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                        <div class="form-group">
                                            <input type="hidden" name="IDS[]" value="<?php echo e($row->id); ?>" />
                                            <?php echo Form::label($row->title); ?>

                                            <?php $status = Config::get('settings.' . $row->title);
                                            ?>
                                            <?php if($row->Type=="dropdown"): ?>

                                            <?php echo Form::select('Content[]', $status,$row->content,['class' => 'form-control',$required]); ?>

                                            <?php else: ?>
                                            <?php echo Form::text('Content[]', $row->content , array('class' => 'form-control',$required) ); ?>       
                                            <?php endif; ?>
                                        </div>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>

                            </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                        </div>




                        <br clear="all"/>
                        <div class="row">
                            <div class="col-md-8">
                                <button type="submit" class="btn btn-primary mr-1 mb-1 waves-effect waves-light">Save</button>
                                <a href="<?php echo e(url('settings')); ?>" class="btn btn-outline-warning mr-1 mb-1 waves-effect waves-light">Cancel</a>
                            </div>
                        </div>

                        <?php echo Form::close(); ?>



                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--/ Add rows table -->
<!--/ Scroll - horizontal and vertical table -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('vendor_script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('myscript'); ?>
<script>
    $(document).ready(function () {
//alert('hello');
        $('div li a').click(function (e) {

            $('div li a').removeClass('active');
            $('.tab-content div').removeClass('active');
            var id_name = this.hash.substr(1); //gets the text after # in href
            $("#" + id_name).addClass('active');
            $('#active_tab').attr('val', id_name.toString());

            $("#active_tab").val("#" + id_name);
            var $this = $(this);
            if (!$this.hasClass('active')) {
                $this.addClass('active');
            }
            //e.preventDefault();
        });
    });
</script>

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