Sindbad~EG File Manager
<?php $__env->startSection('title', 'Create Article'); ?>
<?php $__env->startSection('breadcrumbs', 'Articles' ); ?>
<?php $__env->startSection('second-breadcrumb'); ?>
<li>Create</li>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('css'); ?>
<script src="/templateEditor/ckeditor/ckeditor.js"></script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<div class="col-12 mb-3">
<h3 align="center"></h3>
</div>
<form action="<?php echo e(route('articles.store')); ?>" method="POST" enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<div class="col-10">
<div class="mb-4">
<label for="title" class="font-weight-bold">Title</label>
<input type="text" name="title" placeholder="Article Title" class="form-control <?php echo e($errors->first('title') ? "is-invalid" : ""); ?>" value="<?php echo e(old('title')); ?>" required>
<div class="invalid-feedback"> <?php echo e($errors->first('title')); ?></div>
</div>
<div class="mb-3">
<label for="category" class="font-weight-bold">Category</label>
<select class="form-control" name="categories[]" id="categories" multiple></select>
</div>
<div class="mb-3">
<label for="content" class="font-weight-bold">Content</label>
<textarea id="content" class="form-control ckeditor" name="content" rows="10" cols="50"></textarea>
</div>
<div class="mb-3 mt-4">
<button class="btn btn-secondary" name="save_action" value="DRAFT">Save as draft</button>
<button class="btn btn-success" name="save_action" value="PUBLISH">Publish</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
CKEDITOR.replace( 'content', {
filebrowserUploadUrl : "<?php echo e(route('articles.upload', ['_token' => csrf_token()])); ?>",
filebrowserUploadMethod : 'form'
});
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
<script>
$('#categories').select2({
ajax : {
url : '<?php echo e(url("/admin/ajax/categories/search")); ?>',
processResults : function(data){
return {
results : data.map(function(item){
return {id:item.id, text:item.name}
})
}
}
}
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\DEVELOP\LARAVEL SOURCE\compro\resources\views/articles/create.blade.php ENDPATH**/ ?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists