<?php $__env->startSection('content'); ?>


<!-- Image cropper -->
    <script src="<?php echo e(url('assets/js/plugins/summernote/summernote.min.js')); ?>"></script>


	<link href="<?php echo e(url('assets/css/plugins/summernote/summernote.css')); ?>" rel="stylesheet">
	<link href="<?php echo e(url('assets/css/plugins/summernote/summernote-bs3.css')); ?>" rel="stylesheet">

	
    <script>
        $(document).ready(function(){

            $('.summernote').summernote();

       });
        var edit = function() {
            $('.click2edit').summernote({focus: true});
        };
        var save = function() {
            var aHTML = $('.click2edit').code(); //save HTML If you need(aHTML: array).
            $('.click2edit').destroy();
        };
    </script>
	

			<div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>Add Page</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="<?php echo e(url('/')); ?>"><?php echo app('translator')->getFromJson('common.home'); ?></a>
                        </li>
                        <li>
                             <a href="<?php echo e(url('pages')); ?>">Pages</a>
                        </li>
                        <li class="active">
                            <strong><?php echo $title; ?></strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
        <div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
                <div class="col-lg-12">
                
                <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>Add Product</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                                
                                
                            </div>
                        </div>
                        <div class="ibox-content">
                        <form action="<?php echo e(url('pages/save')); ?>" class="form-horizontal" method="POST" enctype='multipart/form-data'>
                        <?php echo e(csrf_field()); ?>

                                <div class="form-group"><label class="col-sm-2 control-label">Title</label>
                                    <div class="col-sm-10"><input placeholder="Title" type="text" required name="title" value="<?php echo e($page->title); ?>" class="form-control">
                        <input type="hidden" value="<?php echo $page->id; ?>" name="id" >
                        </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                
                               <div class="form-group"><label class="col-sm-2 control-label">Description</label>
                                    <div class="col-sm-10"><textarea name="body" class="form-control summernote" placeholder="description here" rows="10"><?php echo $page->body; ?></textarea></div>
                                </div>
                                
                                <div class="hr-line-dashed"></div>
                                
                               <div class="form-group"><label class="col-sm-2 control-label">Image</label>
                                    <div class="col-sm-10"><input type="file" name="file" accept=".png, .jpg, .jpeg"  ></div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                
                                
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        
                                         <a class="btn btn-white" href="<?php echo e(url('pages')); ?>">Cancel</a>
                                        <button class="btn btn-primary" type="submit">Save changes</button>
                                    </div>
                                </div>
                                
                                
                            </form>
                        </div>
                    </div>
                </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>