OwlCyberSecurity - MANAGER
Edit File: f2b50cf7f7c73780d02cc8bb2de0418b.php
<?php $__env->startSection('content'); ?> <style> .error_div { background-color: #ffc8c8; border-radius: 4px; padding: 0.4rem; padding-left: 1rem; color: #f11a1a; border: 1px solid #ff2a2a; } .success_div{ background-color: #aedcaf; border-radius: 4px; padding: 0.4rem; padding-left: 1rem; color: #1f6d26; border: 1px solid #248526; } </style> <div class="row p-2"> <div class="col-12"> <h3>Add Coupon</h3> </div> </div> <div class="row p-2"> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="row"> <?php if(!empty($errors->all())): ?> <div class="col-12 error_div"> <?php echo e($errors->first()); ?> </div> <?php endif; ?> <?php if(session()->has('message')): ?> <div class="col-12 error_div"> <?php echo e(session()->get('message')); ?> </div> <?php endif; ?> <?php if(session()->has('success')): ?> <div class="col-12 success_div"> <?php echo e(session()->get('success')); ?> </div> <?php endif; ?> </div> <form action="<?php echo e(route('post_coupons_add.add_coupons')); ?>" method="POST" autocomplete="off" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-sm-12 col-md-6 col-lg-6"> <div class="card"> <div class="card-body"> <div class="row mt-2"> <div class="col-12"> <label for="name" class="form-label">Coupon Name</label> <input type="text" name="name" id="name" class="form-control" autofocus value="<?php echo e(old('name') ? old('name') : ''); ?>"> </div> </div> <div class="row mt-2"> <div class="col-12"> <label for="description" class="form-label">Short Description</label> <textarea name="description" id="description" class="form-control"><?php echo e((old('description') ? old('description') : '')); ?></textarea> </div> </div> <!-- <div class="row mt-2"> <div class="col-12"> <label for="long_description" class="form-label">Long Description</label> <textarea name="long_description" id="long_description"> <?php if(old('long_description')): ?> <?php echo e(old('long_description')); ?> <?php endif; ?> </textarea> </div> </div> --> <div class="row mt-2"> <div class="col-12"> <label for="code" class="form-label">Code</label> <input type="text" name="code" id="code" class="form-control" value="<?php echo e(old('code') ? old('code') : ''); ?>"> </div> </div> <div class="row mt-2"> <div class="col-12"> <label for="destination_url" class="form-label">Destination URL</label> <input type="text" name="destination_url" id="destination_url" class="form-control" value="<?php echo e(old('destination_url') ? old('destination_url') : ''); ?>"> </div> </div> <div class="row mt-2"> <div class="col-12"> <label for="ending_date" class="form-label">Ending Date</label> <input type="text" class="form-control datetimepicker-input" id="ending_date" name="ending_date" data-toggle="datetimepicker" data-target="#ending_date" placeholder="mm/dd/yyyy"/> </div> </div> </div> </div> </div> <div class="col-sm-12 col-md-6 col-lg-6 mx-auto"> <div class="card"> <div class="card-body"> <div class="row mt-2"> <div class="col-lg-6 col-md-6 col-sm-12"> <label for="status" class="form-label">Status</label> <br> <label><input type="radio" name="status" <?php echo e((old('status') != null && old('status') == 1 ? 'checked' : '')); ?> value="1" style="vertical-align: middle;" checked> Active </label> <label><input type="radio" name="status" <?php echo e((old('status') != null && old('status') == 0 ? 'checked' : '')); ?> value="0" style="vertical-align: middle;"> Inactive</label> </div> </div> <div class="row mt-2"> <div class="col-12"> <label class="form-label">Authentications</label> <br> <ul class="list-group pl-3"> <li> <label for="never_expire"> <input type="checkbox" class="form-check-input me-1" name="never_expire" id="never_expire" <?php echo e(old('never_expire') ? 'checked' : ''); ?>>Never Expire </label> </li> <li> <label for="featured"> <input type="checkbox" class="form-check-input me-1" name="featured" id="featured" <?php echo e(old('featured') ? 'checked' : ''); ?>>Featured </label> </li> <li> <label for="free_shipping"> <input type="checkbox" class="form-check-input me-1" name="free_shipping" id="free_shipping" <?php echo e(old('free_shipping') ? 'checked' : ''); ?>>Free Shipping </label> </li> <li> <label for="coupon_code"> <input type="checkbox" class="form-check-input me-1" name="coupon_code" id="coupon_code" <?php echo e(old('coupon_code') ? 'checked' : ''); ?>>Coupon Code </label> </li> <li> <label for="deal"> <input type="checkbox" class="form-check-input me-1" name="deal" id="deal" <?php echo e(old('deal') ? 'checked' : ''); ?>>Top Deal </label> </li> <li> <label for="valentine"> <input type="checkbox" class="form-check-input me-1" name="valentine" id="valentine" <?php echo e(old('valentine') ? 'checked' : ''); ?>>Valentine </label> </li> </ul> </div> </div> <div class="row mt-2"> <div class="col-12"> <label for="store" class="form-label">Store</label> <select name="store" id="store" class="form-control"> <option value="0">Select Store</option> <?php if(!empty($stores)): ?> <?php $__currentLoopData = $stores; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $s): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($s->id); ?>" <?php echo e(old('store') == $s->id ? 'selected' : ''); ?>><?php echo e($s->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> </div> </div> </div> </div> </div> </div> <div class="row pt-4"> <div class="col-lg-6 col-md-6 col-sm-12"> <button type="submit" class="custom-blue-btn width-5-rem ">Add</button> <a href="<?php echo e(route('get_coupons_index.view_coupons')); ?>"><button type="button" class="custom-grey-btn width-5-rem">Cancel</button></a> </div> </div> </form> </div> </div> </div> </div> <script> // document ready start $(document).ready(function(){ $('#long_description').summernote({ placeholder: '<small>Description...</small>', tabsize: 2, height: 100, // toolbar: [ // // [groupName, [list of button]] // ['style', ['bold', 'italic', 'underline']], // ['font', ['strikethrough']], // ['fontsize', ['fontsize']], // ['color', ['color']], // ], disableDragAndDrop: false, callbacks: { onImageUpload: function (data) { data.pop(); } }, }); $('#ending_date').datetimepicker({ icons: { time: "fa fa-clock", date: "fa fa-calendar", up: "fa fa-arrow-up", down: "fa fa-arrow-down" }, format: 'L', defaultDate: "<?php echo e(old('ending_date')); ?>" != "" ? Date.parse("<?php echo e(old('ending_date')); ?>") : null }); }); // document ready end // error and success div timouts setTimeout(() => { $('.error_div').fadeOut('slow'); $('.success_div').fadeOut('slow'); }, 3000); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('master.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/makmfewe/dingomo.com/resources/views/Coupons/add.blade.php ENDPATH**/ ?>