<?php $__env->startSection('title', 'Categories - Edit #' . $category->id); ?>

<?php $__env->startSection('content_header', 'Categories <small>edit category seo</small>'); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <section class="col-lg-12">
            <div class="nav-tabs-custom">
                <?php echo $__env->make('admin.categories._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.categories.update.seo', $category->id)); ?>">
                            <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; ?>
                            <p class="text-center text-muted">If SEO data is empty - default will be used.</p>
                            <hr>
                            <div class="form-group <?php if($errors->has('title')): ?> has-error <?php endif; ?>">
                                <label for="inputTitle" class="col-sm-2 control-label">Title</label>
                                <div class="col-sm-10">
                                    <input name="title" type="text" class="form-control" id="inputTitle" value="<?php echo e(old('title', $seo->title)); ?>">
                                </div>
                            </div>
                            <div class="form-group <?php if($errors->has('description')): ?> has-error <?php endif; ?>">
                                <label for="inputDescription" class="col-sm-2 control-label">Description</label>
                                <div class="col-sm-10">
                                    <textarea name="description" class="form-control" id="inputDescription" rows="7"><?php echo e(old('description', $seo->description)); ?></textarea>
                                </div>
                            </div>
                            <div class="form-group <?php if($errors->has('keywords')): ?> has-error <?php endif; ?>">
                                <label for="inputKeywords" class="col-sm-2 control-label">Keywords</label>
                                <div class="col-sm-10">
                                    <textarea name="keywords" class="form-control" id="inputKeywords" rows="4"><?php echo e(old('keywords', $seo->keywords)); ?></textarea>
                                </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(); ?>