<?php $__env->startSection('title', 'BlogCategory'); ?>
<?php $__env->startSection('content'); ?>
  <?php if (isset($component)) { $__componentOriginal19a4003522af0aaeb04e6cc0d5d57e65 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal19a4003522af0aaeb04e6cc0d5d57e65 = $attributes; } ?>
<?php $component = App\View\Components\Flash::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('flash'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\Flash::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal19a4003522af0aaeb04e6cc0d5d57e65)): ?>
<?php $attributes = $__attributesOriginal19a4003522af0aaeb04e6cc0d5d57e65; ?>
<?php unset($__attributesOriginal19a4003522af0aaeb04e6cc0d5d57e65); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal19a4003522af0aaeb04e6cc0d5d57e65)): ?>
<?php $component = $__componentOriginal19a4003522af0aaeb04e6cc0d5d57e65; ?>
<?php unset($__componentOriginal19a4003522af0aaeb04e6cc0d5d57e65); ?>
<?php endif; ?>
  <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
    <h1 class="h2">Blog Category</h1>
    <div class="btn-toolbar mb-2 mb-md-0">
      <div class="btn-group me-2"> 
        <button type="button" class="btn btn-sm btn-outline-secondary">Share</button>
        <button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
      </div>   
      <a href="<?php echo e(route('BlogCategory.create')); ?>" class="btn btn-outline-primary ml-2"><i class="bi bi-plus-circle"></i> Add New</a>
    </div>
  </div>
  
  
  <div class="table-responsive">
    <table class="table table-striped">
      <thead>
        <tr>
        <th scope="col">#</th>
        <th scope="col">Title</th>
        <th colspan="2">Action</th>
        </tr>
      </thead>
      <tbody>
        <?php $__currentLoopData = $BlogCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $BlogCategory): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
          <tr>
            <td><?php echo e($loop->iteration+1); ?></td>
            <td><?php echo e($BlogCategory->title); ?></td>
            <td>
              <a class="btn btn-warning" href="<?php echo e(route('BlogCategory.edit', $BlogCategory->id)); ?>">
                <i class="bi bi-pencil-square"></i> Edit
              </a>
            </td>
            <td>
              <form action="<?php echo e(route('BlogCategory.destroy', $BlogCategory->id)); ?>" method="POST"
                onsubmit="return confirm('Are you sure you want to delete this blogcategory?');">
                <?php echo csrf_field(); ?>
                <?php echo method_field('DELETE'); ?>
                <button type="submit" class="btn btn-danger"><i class="bi bi-trash"></i> Delete</button>
              </form>
            </td>
          </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </tbody>
    </table>
  </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\Irfan\Desktop\ErpLite\resources\views/BlogCategory/index.blade.php ENDPATH**/ ?>