Eshop-Laravel/storage/framework/views/4420c72b75aafb6ef96802d44aecad2479066c74.php

56 lines
2.2 KiB
PHP
Raw Normal View History

2019-10-18 09:25:37 +00:00
<?php $__env->startSection('main_content'); ?>
<h1>Edit Content</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-8">
<form action="<?php echo e(url('cms/content') .'/'. $content[0] ->id); ?>" method="post">
<?php echo e(csrf_field()); ?>
<?php echo e(method_field('PUT')); ?>
<div class="form-group">
<label for="menu-link">Menu Links : </label>
<select id="menu-link" class="form-control" name="menu_id">
<?php $__currentLoopData = $menu; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option <?php if( $content[0]->menu_id == $item['id'] ): ?> selected="selected" <?php endif; ?> value="<?php echo e($item['id']); ?>"><?php echo e($item['link']); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="form-group">
<label for="title" class="form-label">Title : </label>
<input value="<?php echo e($content[0]->title); ?>" id="title" name="title" type="text" class="form-control">
</div>
<div class="form-group">
<label for="article" class="form-label">Article : </label>
<textarea placeholder="Say Somthing Good" id="article"class="form-control" name="article" rows="8" cols="80"><?php echo e($content[0]->article); ?></textarea>
</div>
<div class="form-group text-center">
<a href="<?php echo e(url('cms/content')); ?>" class="btn btn-default">Cancel</a>
<button type="submit" class="btn btn-primary"><i class="icon-profile"></i> Update Content </button>
</div>
</form>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('cms.cms-master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>