

<?php $__env->startSection('Title'); ?>
    Dashboard |Restaurant
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>
<div class="container-fluid">
                    <!-- Small boxes (Stat box) -->
<div class="row">
	<div class="col-12">
		<!-- jquery validation -->
		<div class="card " style="margin-top: 10px;">
			<div class="card-header" style="background:#8141a1;">
				<h3 class="card-title" style="color: white;">Create a Coupon</h3>
			</div>
			<!-- /.card-header -->
			<!-- form start -->
			<form role="form" id="createForm" method="POST" action="<?php echo e(route('update.coupons')); ?>">
				<?php echo csrf_field(); ?>				
                <input type="hidden" name="id" value="<?php echo e($coupons->id); ?>">     
                <div class="card-body">
				 <div class="form-group row">
    <label for=name class="col-sm-3 col-form-label">Coupon Name
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=name id=name
        value="<?php echo e($coupons->name); ?>"   />
    </div>
</div>

 

					 <div class="form-group row">
    <label for=description class="col-sm-3 col-form-label">Coupon Description
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=description id=description
        value="<?php echo e($coupons->description); ?>"  />
    </div>
</div>

 

					 <div class="form-group row">
    <label for=restaurant_id class="col-sm-3 col-form-label">Restaurant
        <span class="text-danger">*</span>
            </label>
    <select name=restaurant_id class="col-sm-9 form-control select2" >
        <?php $__currentLoopData = $restaurants; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $restaurant): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> 
            <option value="<?php echo e($restaurant->id); ?>" ><?php echo e($restaurant->name); ?></option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
</div>

					 <div class="form-group row">
    <label for=coupon_code class="col-sm-3 col-form-label">Coupon Code
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=text class="form-control" name=coupon_code id=coupon_code
        value="<?php echo e($coupons->coupon_code); ?>"  />
    </div>
</div>
					 <div class="form-group row">
    <label for=discount_type class="col-sm-3 col-form-label">Discount Type
        <span class="text-danger">*</span>
            </label>
    <select name=discount_type class="col-sm-9 form-control select2" >
                <option value="FIXED" >
            Fixed Amount Discount</option>
                <option value="PERCENTAGE" >
            Percentage Discount</option>
            </select>
</div>
					 <div class="form-group row">
    <label for=discount class="col-sm-3 col-form-label">Dicount
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=number class="form-control" name=discount id=discount
        value="<?php echo e($coupons->discount); ?>"  step="1"   />
    </div>
</div>
		 <div class="form-group row">
    <label for=expire_date class="col-sm-3 col-form-label">Expiry Date
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-group  p-1">
        <div class="input-group">
            
            <input type="date" name=expire_date  class="form-control" data-inputmask-alias="datetime"
            value="<?php echo e($coupons->expiry_date); ?>"  >
        </div>
    </div>
</div>
	 <div class="form-group row">
    <label for=max_usage class="col-sm-3 col-form-label">Max. usage
            </label>
    <div class="col-sm-9 input-wrapper">
        <input type=number class="form-control" name=max_usage id=max_usage
        value="<?php echo e($coupons->max_usage); ?>"   step="1"   />
    </div>
</div>

					 <div class="form-group row">
    <label for=active class="col-sm-3 col-form-label">Active
            </label>
    <div class="col-sm-9 input-group  p-1">
        <input type="checkbox" name=active   checked
              data-bootstrap-switch data-off-color="danger" data-on-color="success"   value="<?php echo e($coupons->active); ?>" />
    </div>
</div>
				</div>
				<!-- /.card-body -->
				<div class="card-footer">
                <button type="submit" class="btn" style="background: #8141a1;color: white;">Submit</button>

				</div>
			</form>
		</div>
		<!-- /.card -->
	</div>
</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/edit_coupon.blade.php ENDPATH**/ ?>