

<?php $__env->startSection('Title'); ?>
List of Coupons
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>
      <div class="content-header" style="display: flex;align-items: center;">
<a class="nav-link" data-widget=""  style="margin:auto 0px;" id="cll" onclick="CloseNav();">
                    <i class="fas fa-bars"></i>
                        <span class="sr-only">Toggle navigation</span>
              </a>
              <a class="nav-link" data-widget=""  style="margin:auto 0px;" id="open" onclick="openNav();">
                <i class="fas fa-bars"></i>
                    <span class="sr-only">Toggle navigation</span>
              </a>
          <div class="container-fluid" >
           </a>
                   <h1 class="m-0 text-dark" style="font-weight: 700;">Manage Coupons</h1>
        <!-- <p style="color: grey;">Hi,john take a look of all information</p> -->
                </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 Coupons</h1>
        <div class="card-tools">
          <a href="<?php echo e(route('admin.coupon.create')); ?>">
          <button type="button" class="btn btn-block  btn-sm" style="background: #8141a1;color: white;">Add a Coupon</button>
          </a>
        </div>
      </div>
      <!-- /.card-header -->
      <div class="card-body">
        <table id="table-data" class="table table-bordered table-striped">
          <thead>
            <tr>
              <th>Name</th>
              <th>Restaurant</th>
              <th>Code</th>
              <th>Type</th>
              <th>Discount</th>
              <th>Usage</th>
              <th>Expiry Date</th>
              <th>Active</th>
              <th>Action</th>
              
            </tr>
          </thead>
          <tbody>
          <?php $__currentLoopData = $coupons; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coupon): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
              <td><?php echo e($coupon->name); ?></td>
              <td><?php echo e($coupon->rname); ?></td>
              <td><?php echo e($coupon->coupon_code); ?></td>
              <td><?php echo e($coupon->discount_type); ?></td>
              <td><?php echo e($coupon->discount); ?></td>
              <td><?php echo e($coupon->max_usage); ?></td>
              <td><?php echo e($coupon->expiry_date); ?></td>
              <td class="text-center">
                                <span class="badge badge-pill badge-primary">Active</span>
                              </td>
              
              <td>
                <a href="coupons/edit/<?php echo e($coupon->id); ?>">
                  <button type="button" class="btn" style="background-color: #8141a1;">
                  <i class="fas fa-pencil-alt" style="color: white;"></i>
                  </button>
                </a>
                <a href="coupons/delete/<?php echo e($coupon->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>Name</th>
              <th>Restaurant</th>
              <th>Code</th>
              <th>Type</th>
              <th>Discount</th>
              <th>Usage</th>
              <th>Expiry Date</th>
              <th>Active</th>
              <th>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', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\Laravel\Restaurant\resources\views/admin/manage_coupons.blade.php ENDPATH**/ ?>