
<?php $__env->startSection('content'); ?>

<div class="content-header">
  <div class="container-fluid">
    <div class="row mb-2">
      <div class="col-sm-6">
        <h1 class="m-0 text-dark">All Posts</h1>
      </div>
    </div>
  </div>
</div>

<div class="card">
  <div class="card-header">
    <h3 class="card-title">Posts Table</h3>

    <button class="btn btn-danger btn-sm" style="float: right;">
      <a href="<?php echo e(URL::to('/insert/post')); ?>">
        <span style="color:white;">Add News</span>
      </a>
    </button>

  </div>

  <div class="card-body">

    <!-- ===== TAB MENU ===== -->
    <ul class="nav nav-tabs" id="postTab" role="tablist">
      <li class="nav-item">
        <a class="nav-link active" data-toggle="tab" href="#all">All News</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-toggle="tab" href="#active">Active</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" data-toggle="tab" href="#inactive">Inactive</a>
      </li>
    </ul>

    <div class="tab-content mt-3">

      <!-- ===== ALL NEWS ===== -->
      <div class="tab-pane fade show active" id="all">

        <?php echo $__env->make('backend.post.table', ['posts' => $post], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

      </div>

      <!-- ===== ACTIVE ===== -->
      <div class="tab-pane fade" id="active">

        <?php
          $activePosts = $post->where('status',"active");
        ?>

        <?php echo $__env->make('backend.post.table', ['posts' => $activePosts], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

      </div>

      <!-- ===== INACTIVE ===== -->
      <div class="tab-pane fade" id="inactive">

        <?php
          $inactivePosts = $post->where('status',"inactive");
        ?>

        <?php echo $__env->make('backend.post.table', ['posts' => $inactivePosts], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

      </div>

    </div>

  </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/dhakasupplier/bdcrimewatch.com/resources/views/backend/post/index.blade.php ENDPATH**/ ?>