<?php $__env->startSection('content'); ?>
<section class="section">
          <div class="section-header">
            <h1>Berita </h1>
            <div class="section-header-breadcrumb">
              <div class="breadcrumb-item active"><a href="#">Dashboard</a></div>
              <div class="breadcrumb-item">Berita</div>
            </div>
          </div>

          <div class="section-body">
          
          	<div class="row">
          		<div class="col-md-12">
          			<div class="card">
		              <div class="card-header">
		                <h4><span>Berita Terbaru</span></h4>
                  </div>
                  <div class="card-body">
                     <?php if(session('success')): ?>

                        <div class="alert alert-success" role="alert">
                            <i class="fa fa-check-circle"></i> <?php echo e(session('success')); ?>

                        </div>

                    <?php endif; ?>
  		              
                    <div class="table-responsive">
                      <table class="table table-striped table-md">
                          <tr>
                            <th>Tanggal</th>
                            <th>Tipe</th>
                            <th>Judul</th>
                            <th>Isi</th>
                          </tr>
                          <?php $__currentLoopData = $news; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                          <tr>
                            <td><?php echo e(date('d F Y H:i', strtotime($data->created_at))); ?></td>
                             <td>
                                <span class="badge badge-<?php echo e(($data->type == 'Maintenance' ? 'danger' : ($data->type == 'Info' ? 'info' : 'primary'))); ?>">
                                  
                                <?php echo e($data->type); ?>

                                </span>
                              </td>
                            <td><?php echo e($data->title); ?></td>
                            <td><?php echo e($data->content); ?></td>
                          </tr>
                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                      </table>
                    </div>
                    <?php echo e($news->links()); ?>

                  </div>
		            </div>
          		</div>
          	</div>
            
          </div>
        </section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Berkc\OneDrive\Masaüstü\smm\zoopedia-master\resources\views\others\news.blade.php ENDPATH**/ ?>