File: /var/www/html/punjabcabs/storage/framework/views/d5c3bf72cd61059b652f8b220550668077bb9aec.php
<?php $__env->startSection('title', 'Update Promocode '); ?>
<?php $__env->startSection('styles'); ?>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.4/jquery.datetimepicker.min.css" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="content-area py-1">
<div class="container-fluid">
<div class="row bg-title">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<h4 class="page-title"><?php echo app('translator')->get('admin.member.promocodes'); ?></h4><a href="<?php echo e(route('admin.promocode.index')); ?>" class="btn btn-outline-warning btn-rounded w-min-sm m-l-0-75 waves-effect waves-light"><?php echo app('translator')->get('admin.list_promocodes'); ?></a>
</div>
<div class="col-lg-6 col-sm-6 col-md-6 col-xs-12">
<ol class="breadcrumb">
<li><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo app('translator')->get('admin.dashboard'); ?></a></li>
<li class="active"><?php echo app('translator')->get('admin.member.update_promocode'); ?></li>
</ol>
</div>
</div>
<div class="box box-block bg-white">
<h5><?php echo app('translator')->get('admin.member.update_promocode'); ?></h5>
<form class="form-horizontal" action="<?php echo e(route('admin.promocode.update', $promocode->id )); ?>" method="POST" enctype="multipart/form-data" role="form">
<?php echo e(csrf_field()); ?>
<input type="hidden" name="_method" value="PATCH">
<div class="form-group row">
<label for="promo_code" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.promocode'); ?></label>
<div class="col-xs-6">
<input class="form-control" type="text" value="<?php echo e($promocode->promo_code); ?>" name="promo_code" required id="promo_code" placeholder="<?php echo app('translator')->get('admin.member.promocode'); ?>">
</div>
</div>
<div class="form-group row">
<label for="discount" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.discount'); ?></label>
<div class="col-xs-6">
<input class="form-control" type="number" value="<?php echo e($promocode->discount); ?>" name="discount" required id="discount" placeholder="<?php echo app('translator')->get('admin.member.discount'); ?>">
</div>
</div>
<div class="form-group row">
<label for="discount_type" class="col-xs-2 col-form-label">Discount Type</label>
<div class="col-xs-6">
<select name="discount_type" class="form-control" id="discount_type">
<option value="flat" <?php if($promocode->discount_type =='flat'): ?> selected <?php endif; ?>>Flat</option>
<option value="percent" <?php if($promocode->discount_type =='percent'): ?> selected <?php endif; ?>>Percentage</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="user_type" class="col-xs-2 col-form-label">User Type</label>
<div class="col-xs-6">
<select name="user_type" class="form-control" id="user_type">
<option value="all" <?php if($promocode->user_type =='all'): ?> selected <?php endif; ?>>All Users</option>
<option value="new" <?php if($promocode->user_type =='new'): ?> selected <?php endif; ?>>New Users</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="use_count" class="col-xs-2 col-form-label">Usage Count</label>
<div class="col-xs-6">
<select name="use_count" class="form-control" id="use_count">
<option value="1" <?php if($promocode->use_count =='1'): ?> selected <?php endif; ?>>1</option>
<option value="2" <?php if($promocode->use_count =='2'): ?> selected <?php endif; ?>>2</option>
<option value="3" <?php if($promocode->use_count =='3'): ?> selected <?php endif; ?>>3</option>
<option value="4" <?php if($promocode->use_count =='4'): ?> selected <?php endif; ?>>4</option>
<option value="5" <?php if($promocode->use_count =='5'): ?> selected <?php endif; ?>>5</option>
<option value="6" <?php if($promocode->use_count =='6'): ?> selected <?php endif; ?>>6</option>
<option value="7" <?php if($promocode->use_count =='7'): ?> selected <?php endif; ?>>7</option>
<option value="8" <?php if($promocode->use_count =='8'): ?> selected <?php endif; ?>>8</option>
<option value="9" <?php if($promocode->use_count =='9'): ?> selected <?php endif; ?>>9</option>
<option value="10" <?php if($promocode->use_count =='10'): ?> selected <?php endif; ?>>10</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="starting_at" class="col-xs-2 col-form-label">Starting At</label>
<div class="col-xs-6">
<input class="form-control" type="text" value="<?php echo e(date('Y-m-d',strtotime($promocode->starting_at))); ?>" name="starting_at" required id="starting_at" placeholder="Starting at">
</div>
</div>
<div class="form-group row">
<label for="expiration" class="col-xs-2 col-form-label"><?php echo app('translator')->get('admin.member.expiration'); ?></label>
<div class="col-xs-6">
<input class="form-control" type="text" value="<?php echo e(date('Y-m-d',strtotime($promocode->expiration))); ?>" name="expiration" required id="expiration" placeholder="<?php echo app('translator')->get('admin.member.expiration'); ?>">
</div>
</div>
<div class="form-group row">
<label for="description" class="col-xs-2 col-form-label">Description</label>
<div class="col-xs-6">
<textarea name="description" id="description" class="form-control" required cols="30" rows="10"><?php echo e($promocode->description); ?></textarea>
</div>
</div>
<div class="form-group row">
<label for="zipcode" class="col-xs-2 col-form-label"></label>
<div class="col-xs-6">
<button type="submit" class="btn btn-success"> <i class="fa fa-check"></i> <?php echo app('translator')->get('admin.member.update_promocode'); ?></button>
<a href="<?php echo e(route('admin.promocode.index')); ?>" class="btn btn-inverse waves-effect waves-light"><?php echo app('translator')->get('admin.member.cancel'); ?></a>
</div>
</div>
</form>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-datetimepicker/2.5.4/build/jquery.datetimepicker.full.min.js"></script>
<script type="text/javascript">
var mindate = <?php echo json_encode( \Carbon\Carbon::today()->format('Y-m-d\TH:i') ); ?>
$('#expiration').datetimepicker({
timepicker:false,
format:'Y-m-d',
minDate: mindate
});
$('#starting_at').datetimepicker({
timepicker:false,
format:'Y-m-d',
minDate: mindate
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>