

<?php $__env->startSection('Title'); ?>
    List of Dishes Categories

<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>
<div class="content-header" style="display: flex;">

    <div class="container-fluid" style="display: flex;">
        <div class="toggle">
            <a class="nav-link togg" data-widget=""   id="cll" onclick="CloseNav();">
                <i class="fas fa-bars"></i>
                <span class="sr-only">Toggle navigation</span>
            </a>
            <a class="nav-link togg" data-widget="" id="open" onclick="openNav();">
                <i class="fas fa-bars"></i>
                <span class="sr-only">Toggle navigation</span>
            </a>
        </div>
        <div style="padding: auto 0px;">
          <h1 class="m-0 text-dark" style="font-weight: 700;">Dish Categories</h1>
          <p style="color: grey;">view all dish categories</p>
          </div>
    </div>
    <div style="margin-left: auto;display: flex; align-items: center;">
      <div class="searchicon">
          <i class="fas fa-search" style="color: #8141a1;margin: auto ;"></i>
        </div>
        <div>
        <input id="myInput"  class="search" type="text" placeholder="Search.." style="border: none; ">
        </div>
      <div class="bell">
        <i class="fas fa-bell" style="margin: auto ;"></i>
      </div>
        <div class="imglogo">
            <img src="<?php echo e(asset('/img/purple_logo.png')); ?>" style="margin:auto;width: 100%;height: 100%;">
        </div>
    </div>       
</div>
<div class="container-fluid">
                    <!-- Small boxes (Stat box) -->
<div class="row">
  <div class="col-12">
    <div class="card">
      <div class="card-header">
        <h1 class="card-title mt-2">List of Dishes Categories</h1>
        <div class="card-tools">
          <a href="<?php echo e(route('restaurant-owner.dish_category.create')); ?>">
          <button type="button" class="btn btn-block  btn-sm" style="background: #8141a1;color: white;">Add Dish Category</button>
          </a>
        </div>
      </div>
      <!-- /.card-header -->
      <div class="card-body">
        <table id="table-data" class="table table-bordered table-striped">
          <thead>
            <tr>
              <th>ID</th>
              <th>Image</th>
              <th>Name</th>
              <th>Active</th>
              <th colspan="2">Action</th>
            </tr>
          </thead>
          <tbody id="myTable">
          <?php $__currentLoopData = $dish_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dish_category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
                        <tr>
              <td>#<?php echo e($dish_category->id); ?></td>
              <td><img src="<?php echo e(asset('/upload/'.$dish_category->image)); ?>" 
                   class="text-center imglist1" />  </td>
              <td><?php echo e($dish_category->name); ?></td>
              <td class="text-center">
                 <span class="badge badge-pill badge-primary">Active</span>
             </td>
              <td>
              <a href="dish/category/edit/<?php echo e($dish_category->id); ?>">
                  <button type="button" class="btn" style="background-color: #8141a1;">
                  <i class="fas fa-pencil-alt" style="color: white;"></i>
                  </button>
                </a>
</td>
                  <td>
                <a href="dish/category/delete/<?php echo e($dish_category->id); ?>">
                  <button type="button" class="btn" style="background-color: #8141a1;" >
                  <i class="fas fa-trash" style="color: white;"></i>
                  </button>
                </a>
              </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </tbody>
          <tfoot>
            <tr>
              <th>ID</th>
              <th>Image</th>
              <th>Name</th>
              <th>Active</th>
              <th colspan="2">Action</th>
            </tr>
          </tfoot>
        </table>
      </div>
      <!-- /.card-body -->
    </div>
    <!-- /.card -->
  </div>
  <!-- ./col -->
</div>
<!-- /.row -->
                </div>
<?php $__env->stopSection(); ?>


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

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master-res', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Laravel\03-03-2021\Restaurant\resources\views/restaurant-owner/dish_categories.blade.php ENDPATH**/ ?>