54 lines
2 KiB
PHP
54 lines
2 KiB
PHP
|
<?php $__env->startSection('main_content'); ?>
|
||
|
<?php if($errors -> any() ): ?>
|
||
|
<div class="alert alert-danger">
|
||
|
<ul>
|
||
|
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||
|
<li><?php echo e($error); ?></li>
|
||
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<?php endif; ?>
|
||
|
<h1>Add New Category</h1>
|
||
|
<div class="row">
|
||
|
<div class="col-md-6">
|
||
|
<form action="<?php echo e(url('cms/categories')); ?>" method="post" enctype="multipart/form-data">
|
||
|
<?php echo e(csrf_field()); ?>
|
||
|
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="title" class="form-label"><b>Title : </b></label>
|
||
|
<input value="<?php echo e(old('title')); ?>" id="title" name="title" type="text" class="origin_text form-control">
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="url" class="form-label"><b>Url :</b></label>
|
||
|
<input value="<?php echo e(old('url')); ?>" id="url" name="url" type="text" class="target-text form-control">
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="article" class="form-label"><b>Article : </b></label>
|
||
|
<textarea placeholder="Say Somthing Good" id="article"class="form-control" name="article" rows="8" cols="80"><?php echo e(old('article')); ?></textarea>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label for="image" class="form-label"><b>Category Image :</b></label>
|
||
|
<input type="file" name="image" id="image" value="">
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="form-group text-center">
|
||
|
<a href="<?php echo e(url('cms/categories')); ?>" class="btn btn-default">Cancel</a>
|
||
|
<button type="submit" class="btn btn-primary"><i class="icon-profile"></i> Save Page </button>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<?php $__env->stopSection(); ?>
|
||
|
|
||
|
<?php echo $__env->make('cms.cms-master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|