Eshop-Laravel/storage/framework/views/42d4ee99568106c2fae00cc1d2f71c6d6239b079.php

48 lines
1.7 KiB
PHP
Raw Normal View History

2019-10-18 09:25:37 +00:00
<?php $__env->startSection('main_content'); ?>
<h2>Edit Site Categories</h2>
<div class="row">
<div class="col-md-12">
<p>
<a class="btn btn-primary" href="<?php echo e(url('cms/categories/create')); ?>">+Add New Category</a>
</p>
</div>
</div>
<br><br>
<div class="row">
<div class="col-md-8">
<table class="table table-bordered">
<thead>
<tr>
<th>ID</th>
<th>Image</th>
<th>Title</th>
<th>Article</th>
<th>Updated_at</th>
<th>Created_at</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td>#<?php echo e($item['id']); ?></td>
<td><img width="60" src="<?php echo e(asset('images').'/'. $item['image']); ?>" alt=""></td>
<td><?php echo e($item['title']); ?></td>
<td><?php echo e($item['article']); ?></td>
<td><?php echo e($item['updated_at']); ?></td>
<td><?php echo e($item['created_at']); ?></td>
<td>
<a href="<?php echo e(url('cms/categories/'.$item['id'] . '/' . 'edit')); ?>">Edit </a>|
<a href="<?php echo e(url('cms/categories' .'/' . $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(); ?>