File: //var/www/hobbyistgarage/storage/framework/views/82fda2a8bdd7abdbe8754a33f3023fd11628d2e1.php
<?php $__env->startSection('content'); ?>
<section id="page-content" class="page-wrapper">
<div class="zm-section bg-white pt-10 pb-40">
<div class="container">
<div class="row mb-40">
<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12">
<div class="section-title">
<h2 class="h6 header-color inline-block uppercase">Articles</h2>
</div>
<div class="section-title pull-right">
<a href="<?php echo e(url('/admin/article/create')); ?>" class="h6 header-color inline-block uppercase">New Article</a>
</div>
</div>
</div>
<div class="row">
<!-- Start left side -->
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 columns">
<!-- ============================================================== -->
<!-- Content Start -->
<!-- ============================================================== -->
<h4 id="section2" class="mg-b-10">List of Articles</h4>
<p class="mg-b-30">Articles information.</p>
<div class="row">
<div class="col-md-12">
<table id="articles" class="table">
<thead>
<tr>
<th scope="col">Title</th>
<th scope="col">Description</th>
<th scope="col">Views</th>
<th scope="col">Likes</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
<?php if(isset($articles)): ?>
<?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>_
<tr>
<td><?php echo e($article->title); ?></td>
<td><?php echo e($article->description); ?></td>
<td><?php echo e($article->views); ?></td>
<td><?php echo e($article->likes); ?></td>
<td>
<form method="post" action="<?php echo e(url('/admin/article/'.$article->id.'/delete')); ?>" class="form-horizontal">
<?php echo csrf_field(); ?>
<button type="submit" class="btn btn-danger btn-rounded" id="danger-alert">Delete</button>
<a href="<?php echo e(url('/admin/article/'.$article->id.'/edit')); ?>" class="btn btn-warning btn-rounded">Edit</a>
<input type="hidden" name="delete" value="true">
<input type="hidden" name="article" value="<?php echo e($article->id); ?>">
<a target="_blank" href="<?php echo e(url('/admin/article/'.$article->short_url)); ?>" class="btn btn-warning btn-rounded">View</a>
</form>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div></div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('jscript'); ?>
<script src="<?php echo e(asset('admin/lib/datatables.net/js/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('admin/lib/datatables.net-dt/js/dataTables.dataTables.min.js')); ?>"></script>
<script>
$(document).ready(function () {
$('#articles').DataTable({
language: {
searchPlaceholder: 'Search...',
sSearch: '',
lengthMenu: '_MENU_ items/page',
}
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('znews.layout.blog', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/hobbyistgarage/resources/views/admin/article/index.blade.php ENDPATH**/ ?>