<?php $__env->startSection('title', 'Settings - Template'); ?>

<?php $__env->startSection('content_header', 'Settings <small>template</small>'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <section class="col-lg-12">
            <div class="nav-tabs-custom">
                <?php echo $__env->make('admin.settings._partials.tabs', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <div class="tab-content">
                    <div class="tab-pane active">
                        <form class="form-horizontal" method="POST" action="<?php echo e(route('admin.settings.template.update')); ?>">
                            <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                            <?php if(count($errors) > 0): ?>
                                <div class="alert alert-danger alert-dismissable">
                                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                                    <h4><i class="icon fa fa-ban"></i> <strong>Whoops!</strong> There were some problems with your input.</h4>
                                    <ul>
                                        <?php foreach($errors->all() as $error): ?>
                                            <li><?php echo e($error); ?></li>
                                        <?php endforeach; ?>
                                    </ul>
                                </div>
                            <?php endif; ?>
                            <div class="form-group <?php if($errors->has('template_title')): ?> has-error <?php endif; ?>">
                                <label for="inputTemplateTitle" class="col-sm-3 control-label">Site title</label>
                                <div class="col-sm-9">
                                    <input name="template_title" type="text" class="form-control" id="inputTemplateTitle" value="<?php echo e(old('template_title', app('settings')->get('template.title'))); ?>">
                                    <p class="help-block">Website title.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group <?php if($errors->has('template_suffix')): ?> has-error <?php endif; ?>">
                                <label for="inputTemplateSuffix" class="col-sm-3 control-label">Site title suffix</label>
                                <div class="col-sm-9">
                                    <input name="template_suffix" type="text" class="form-control" id="inputTemplateSuffix" value="<?php echo e(old('template_suffix', app('settings')->get('template.suffix'))); ?>">
                                    <p class="help-block">Website title suffix for main page.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group <?php if($errors->has('template_contact_email')): ?> has-error <?php endif; ?>">
                                <label for="inputTemplateContactEmail" class="col-sm-3 control-label">Contact email</label>
                                <div class="col-sm-9">
                                    <input name="template_contact_email" type="text" class="form-control" id="inputTemplateContactEmail" value="<?php echo e(old('template_contact_email', app('settings')->get('template.contact.email'))); ?>">
                                    <p class="help-block">Contact email. Will be show at the bottom of page.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group <?php if($errors->has('template_adverts_enabled')): ?> has-error <?php endif; ?>">
                                <label for="checkboxTemplateAdvertsEnabled" class="col-sm-3 control-label">Enable adverts</label>
                                <div class="col-sm-9">
                                    <div class="checkbox">
                                        <label>
                                            <input name="template_adverts_enabled" type="hidden" value="0">
                                            <input name="template_adverts_enabled" id="checkboxTemplateAdvertsEnabled" type="checkbox" value="1" <?php if((bool) old('template_adverts_enabled', app('settings')->get('template.adverts.enabled'))): ?> checked <?php endif; ?>>
                                            Yes
                                        </label>
                                    </div>
                                    <p class="help-block">Enable or disable adverts on website.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group <?php if($errors->has('template_use_angular')): ?> has-error <?php endif; ?>">
                                <label for="checkboxTemplateUseAngularJS" class="col-sm-3 control-label">Use AngularJS</label>
                                <div class="col-sm-9">
                                    <div class="checkbox">
                                        <label>
                                            <input name="template_use_angular" type="hidden" value="0">
                                            <input name="template_use_angular" id="checkboxTemplateUseAngularJS" type="checkbox" value="1" <?php if((bool) old('template_use_angular', app('settings')->get('template.use_angular'))): ?> checked <?php endif; ?>>
                                            Yes
                                        </label>
                                    </div>
                                    <p class="help-block">Use AngularJS for job ad loading and filtering.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group <?php if($errors->has('template_per_page')): ?> has-error <?php endif; ?>">
                                <label for="inputTemplatePerPage" class="col-sm-3 control-label">Items per page</label>
                                <div class="col-sm-9">
                                    <input name="template_per_page" type="text" class="form-control" id="inputTemplatePerPage" value="<?php echo e(old('template_per_page', app('settings')->get('template.per_page'))); ?>">
                                    <p class="help-block">Items per page if not using AngularJS.</p>
                                </div>
                            </div>
                            <hr>

                            <div class="form-group <?php if($errors->has('template_show_counts')): ?> has-error <?php endif; ?>">
                                <label for="checkboxTemplateShowCounts" class="col-sm-3 control-label">Show job ads count</label>
                                <div class="col-sm-9">
                                    <div class="checkbox">
                                        <label>
                                            <input name="template_show_counts" type="hidden" value="0">
                                            <input name="template_show_counts" id="checkboxTemplateShowCounts" type="checkbox" value="1" <?php if((bool) old('template_show_counts', app('settings')->get('template.show_counts'))): ?> checked <?php endif; ?>>
                                            Yes
                                        </label>
                                    </div>
                                    <p class="help-block">Show job ads count for categories and types.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="clearfix">
                                <div class="pull-right">
                                    <button type="submit" class="btn btn-success">Save</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>