42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
|
<?php $__env->startSection('main_content'); ?>
|
||
|
|
||
|
|
||
|
<h2>Edit Site Content</h2>
|
||
|
<div class="row">
|
||
|
<div class="col-md-12">
|
||
|
<p>
|
||
|
<a class="btn btn-primary" href="<?php echo e(url('cms/content/create')); ?>">+Add New Content</a>
|
||
|
</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<br><br>
|
||
|
|
||
|
|
||
|
<div class="row">
|
||
|
<div class="col-md-8">
|
||
|
<table class="table table-bordered">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Title</th>
|
||
|
<th>Updated_at</th>
|
||
|
<th>Oparation</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<?php $__currentLoopData = $content; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||
|
<tr>
|
||
|
<td><?php echo e($item['title']); ?></td>
|
||
|
<td><?php echo e($item['updated_at']); ?></td>
|
||
|
<td>
|
||
|
<a href="<?php echo e(url('cms/content/'.$item['id'] . '/' . 'edit')); ?>">Edit </a>|
|
||
|
<a href="<?php echo e(url('cms/content' .'/' . $item['id'])); ?>">Delete</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
<?php $__env->stopSection(); ?>
|
||
|
|
||
|
<?php echo $__env->make('cms.cms-master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
|