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

<?php $__env->startSection('content_header', 'Articol <small>editare articol</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">
                <?php echo $__env->make('admin.blog._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.blog.update', $post->id_post)); ?>" 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">Titlu</label>
                                <div class="col-sm-10">
                                    <input name="title" type="text" class="form-control" id="inputTitle" value="<?php echo e(old('title', $post->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"><?php echo e(old('content', $post->content)); ?></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',$post->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', $post->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(); ?>