

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


<?php $__env->startSection('content'); ?>
<div class="content-header" style="display: flex;">
    <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" >
      
         <h1 class="m-0 text-dark" style="font-weight: 700;">Add Coupon</h1>
         </div>
         </div>
<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('save.coupon-res')); ?>">
				<?php echo csrf_field(); ?>				<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=""  />
    </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=""  />
    </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>
    <div class="col-sm-9 input-wrapper">

    <select name=restaurant_id class="form-control select2" style="width: 100%;" >
        <?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>

					 <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=""  />
    </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>
    <div class="col-sm-9 input-wrapper">
    <select name=discount_type class="form-control select2" style="width: 100%;" >
                <option value="FIXED" >
            Fixed Amount Discount</option>
                <option value="PERCENTAGE" >
            Percentage Discount</option>
            </select>
</div>
</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=""   step="1"   />
    </div>
</div>
					 <div class="form-group row">
    <label for=expiry_date class="col-sm-3 col-form-label">Expiry Date
        <span class="text-danger">*</span>
            </label>
    <div class="col-sm-9 input-group">
            <input type="date" class="form-control datetimepicker-input"  name="expiry_date" data-inputmask-inputformat="yyyy/mm/dd" />
             <div class="input-group-append" data-target="#reservationdate"  data-toggle="datetimepicker">
        </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=""   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">
        <label class="switch" >
            <input type="checkbox" checked name=active>
            <span class="slider round"></span>
        </label>
    </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'); ?>
<script>
	// $(function () {
	// 	$('#datemask').datepicker(
	// 	{
	// 		format: "yyyy-mm-dd",
	// 		autoclose: true,
	// 	}).val();
	// })

    </script>
    
<?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\Restaurant4\Restaurant\resources\views/restaurant-owner/create_coupon.blade.php ENDPATH**/ ?>