53 lines
No EOL
1.7 KiB
PHP
53 lines
No EOL
1.7 KiB
PHP
<?php $__env->startSection('main_content'); ?>
|
|
<h1>Add New Menu Link</h1>
|
|
<?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; ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<form action="<?php echo e(url('cms/menu') .'/'. $menu[0]->id); ?>" method="post">
|
|
<?php echo e(csrf_field()); ?>
|
|
|
|
<?php echo e(method_field('PUT')); ?>
|
|
|
|
<input type="hidden" name="item_id" value="<?php echo e($menu[0]->id); ?>">
|
|
<div class="form-group">
|
|
<label for="link" class="form-label">Link :</label>
|
|
<input value="<?php echo e($menu[0]->link); ?>" id="link" name="link" type="text" class="origin_text form-control">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="title" class="form-label">Title : </label>
|
|
<input value="<?php echo e($menu[0]->mtitle); ?>" id="title" name="title" type="text" class="form-control">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="url" class="form-label">Url :</label>
|
|
<input value="<?php echo e($menu[0]->url); ?>" id="url" name="url" type="text" class="target-text form-control">
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group text-center">
|
|
<button type="submit" class="btn btn-primary"><i class="icon-profile"></i> Update </button>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php echo $__env->make('cms.cms-master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|