<?php $__env->startSection('title', 'Articol - Nou'); ?>

<?php $__env->startSection('content_header', 'Articol <small>adauga articol nou</small>'); ?>
<?php $__env->startSection('top_scripts'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('/css/flaticon.css')); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset('/css/jquery-ui.css')); ?>">
<script src="//cdn.ckeditor.com/4.5.11/basic/ckeditor.js"></script>
<?php $__env->startSection('content'); ?>
    <div class="row">
        <section class="col-lg-12">
            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs box-tools">
                    <li class="active"><a href="<?php echo e(route('admin.categories.create')); ?>">Create</a></li>
                    <li class="pull-right"><a href="<?php echo e(route('admin.blog.index')); ?>" class="btn btn-box-tool" data-toggle="tooltip" title="Back to list" data-widget="chat-pane-toggle" data-original-title="Back to list"><i class="fa fa-arrow-left"></i> Back to list</a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active">
                        <form class="form-horizontal" method="POST" action="<?php echo e(route('admin.blog.store')); ?>" enctype="multipart/form-data">
                            <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('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')); ?>">
                                </div>
                            </div>
							<div class="form-group">
								<label for="inputTitle" class="col-sm-2 control-label">Text</label>
								<div class="col-sm-10">
									<textarea name="editor1"></textarea>
									<script>
										CKEDITOR.replace( 'editor1' );
									</script>
								</div>
							</div>
                            <div class="form-group <?php if($errors->has('meta_content')): ?> has-error <?php endif; ?>">
                                <label for="inputSorting" class="col-sm-2 control-label">Meta content</label>
                                <div class="col-sm-10">
                                    <input name="meta_content" type="text" class="form-control" id="inputMetaContent" value="<?php echo e(old('meta_content')); ?>">
                                </div>
                            </div>
							<div class="form-group <?php if($errors->has('meta_key')): ?> has-error <?php endif; ?>">
                                <label for="inputTitle" class="col-sm-2 control-label">Meta Key</label>
                                <div class="col-sm-10">
                                    <input name="meta_key" type="text" class="form-control" id="inputMetaKey" value="<?php echo e(old('meta_key')); ?>">
                                </div>
                            </div>
                            <div class="form-group <?php if($errors->has('image')): ?> has-error <?php endif; ?>">
                                <label for="inputLogo" class="col-sm-2 control-label">Imagine reprezentativa</label>
                                <div class="col-sm-10">
                                    <input name="image" type="file" class="form-control" id="inputImage">
                                </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(); ?>