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

<?php $__env->startSection('content_header', 'Settings <small>rss feed</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.rss.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('rss_title')): ?> has-error <?php endif; ?>">
                                <label for="inputRssTitle" class="col-sm-3 control-label">Feed title</label>
                                <div class="col-sm-9">
                                    <input name="rss_title" type="text" class="form-control" id="inputRssTitle" value="<?php echo e(old('rss_title', app('settings')->get('feed.rss.title'))); ?>">
                                    <p class="help-block">RSS Feed title.</p>
                                </div>
                            </div>
                            <hr>
                            <div class="form-group <?php if($errors->has('rss_description')): ?> has-error <?php endif; ?>">
                                <label for="inputRssDescription" class="col-sm-3 control-label">Feed description</label>
                                <div class="col-sm-9">
                                    <textarea name="rss_description" class="form-control" id="inputRssDescription"><?php echo e(old('rss_description', app('settings')->get('feed.rss.description'))); ?></textarea>
                                    <p class="help-block">RSS Feed description.</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(); ?>