Sindbad~EG File Manager
<?php $__env->startSection('title', 'Articles'); ?>
<?php $__env->startSection('breadcrumbs', 'Overview Articles'); ?>
<?php $__env->startSection('css'); ?>
<style>
.underline:hover{
text-decoration: underline;
}
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<div class="mb-5 text-right">
<a href="<?php echo e(route('articles.create')); ?>" class="btn btn-sm btn-success"> <i class="fa fa-plus"></i> Create</a>
</div>
<div class="row mb-3">
<div class="col-sm-7">
<ul class="nav nav-tabs ">
<li class="nav-item">
<a class="nav-link p-2 px-3 <?php echo e(Request::get('status') == NULL ? 'active' : ''); ?>" href="<?php echo e(route('articles.index')); ?>">All</a>
</li>
<li class="nav-item">
<a class="nav-link p-2 px-3 <?php echo e(Request::get('status') == 'publish' ?'active' : ''); ?>" href="<?php echo e(route('articles.index', ['status' =>'publish'])); ?>">Publish</a>
</li>
<li class="nav-item">
<a class="nav-link p-2 px-3 <?php echo e(Request::get('status') == 'draft' ?'active' : ''); ?>" href="<?php echo e(route('articles.index', ['status' =>'draft'])); ?>">Draft</a>
</li>
</ul>
</div>
<div class="col-sm-5">
<form action="<?php echo e(route('articles.index')); ?>">
<div class="input-group">
<input name="keyword" type="text" value="<?php echo e(Request::get('keyword')); ?>" class="form-control" placeholder="Filter by title">
<div class="input-group-append">
<input type="submit" value="Filter" class="btn btn-info">
</div>
</div>
</form>
</div>
</div>
<?php if(session('success')): ?>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<?php echo e(session('success')); ?>.
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<?php endif; ?>
<table class="table">
<thead class="text-light" style="background-color:#33b751 !important">
<tr>
<th width="12px">No</th>
<th class="text-center">Article Title</th>
<th width="150px"></th>
<th width="88px">Action</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $articles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $article): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($index+1); ?></td>
<td>
<a href="<?php echo e(route('articles.edit', [$article->id])); ?>" style="color:#00838f;" class="underline">
<span class="d-block"><?php echo e($article->title); ?></span>
</a>
<?php $__currentLoopData = $article->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<a class="d-inline underline" href="<?php echo e(route('articles.index', ['c' =>$value->name])); ?>">
<span class="text-muted font-italic" style="font-size:10px; margin-top:10px ;line-height: 60%"><?php echo e($value->name); ?>,</span>
</a>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</td>
<td class="text-right pr-4">
<?php if($article->status=='DRAFT'): ?>
<span class="font-italic text-danger">Draft</span>
<?php endif; ?>
</td>
<td>
<a href="<?php echo e(route('articles.edit', [$article->id])); ?>" class="bnt btn-sm btn-warning text-light" title="Edit"><i class="fa fa-pencil"></i></a>
<form class="d-inline" method="POST" action="<?php echo e(route('articles.destroy', [$article->id])); ?>" >
<?php echo method_field('delete'); ?>
<?php echo csrf_field(); ?>
<button type="submit" class="btn btn-sm btn-danger " title="Delete"><i class="fa fa-trash"></i></button>
</form>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
<tfoot>
<?php echo e($articles->appends(Request::all())->links()); ?>
</tfoot>
</table>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\Company-Profile-Laravel\resources\views/articles/index.blade.php ENDPATH**/ ?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists