HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System: Linux li317-225.members.linode.com 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User: apache (48)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/kosmicfarms/storage/framework/views/4a1bf5c5d13aa7f0c2ef1cb4ed6b5ef7f67536ac.php
<?php $__env->startSection('content'); ?>

<div class="d-sm-flex align-items-center justify-content-between mg-b-20 mg-lg-b-25 mg-xl-b-30">
            <div>
              <nav aria-label="breadcrumb">
                <ol class="breadcrumb breadcrumb-style1 mg-b-10">
                  <li class="breadcrumb-item"><a href="<?php echo e(url('/')); ?>">Dashboard</a></li>
                  <li class="breadcrumb-item active" aria-current="page">Articles</li>
                </ol>
              </nav>
              <h4 class="mg-b-0 tx-spacing--1">Articles</h4>
            </div>
            <div class="d-none d-md-block">
              <a href="<?php echo e(url('/admin/blog/create')); ?>" class="btn btn-sm pd-x-15 btn-white btn-uppercase"><i data-feather="mail" class="wd-10 mg-r-5"></i> Add Article</a>
            </div>
          </div>

 <!-- ============================================================== -->
		<!-- 						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/blog/article/'.$article->id.'/delete')); ?>" class="form-horizontal">
                                                        		<?php echo csrf_field(); ?>

                                                        		<a href="<?php echo e(url('/admin/blog/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); ?>"> 
                                                        		<button type="submit" class="btn btn-danger btn-rounded" id="danger-alert">Delete</button>
                                                        		<a target="_blank" href="<?php echo e(url('/blog/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>
            
            
        <!-- ============================================================== -->
		<!-- 						Content End		 						-->
		<!-- ============================================================== -->
<?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('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/kosmicfarms/resources/views/admin/blog/index.blade.php ENDPATH**/ ?>