Edit File: bedf9728de45216bdb269d7222d5176e6f39794e.php
<?php $__env->startSection('css'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/app-assets/css-rtl/plugins/forms/validation/form-validation.css')); ?>"> <link rel="stylesheet" type="text/css" href="<?php echo e(asset('admin/app-assets/vendors/css/extensions/sweetalert2.min.css')); ?>"> <style> .uploadImg span { position: absolute; right: 0; left: 0; margin: auto; z-index: 9; top: 50%; transform: translateY(-50%); font-size: 16px; } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <!-- // Basic multiple Column Form section start --> <section id="multiple-column-form"> <div class="row match-height"> <div class="col-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo e(awtTrans('تعديل او اضافة عرض توصيل ')); ?></h4> </div> <div class="card-content"> <div class="card-body"> <form method="POST" action="<?php echo e(route('admin.stores.updateOffer' , ['id' => $row->id])); ?>" class="store form-horizontal" novalidate> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-body"> <div class="row"> <div class="col-md-12 d-flex justify-content-center custom-control custom-switch custom-switch-success mt-3 mb-3"> <p class="mr-3 ml-3"><?php echo e(awtTrans('اتاحة عرض')); ?></p> <input type="checkbox" name="offer" value="1" class="custom-control-input offer_input" <?php echo e($row->offer == 'true' ? 'checked' : ''); ?> id="customSwitch11"> <label class="custom-control-label mr-3 ml-3" for="customSwitch11"> <span class="switch-icon-left"><i class="feather icon-check"></i></span> <span class="switch-icon-right"><i class="feather icon-check"></i></span> </label> </div> <div class="hide_div row col-12"> <div class="col-12"> <div class="imgMontg text-center"> <div class="dropBox"> <div class="textCenter"> <div class="imagesUploadBlock"> <label class="uploadImg"> <span><i class="feather icon-image"></i></span> <input type="file" accept="image/*" name="offer_image" class="hide_input imageUploader"> </label> <?php if($row->offer_image): ?> <div class="uploadedBlock"> <img src="<?php echo e($row->offer_path); ?>"> <button class="close"><i class="la la-times"></i></button> </div> <?php endif; ?> </div> </div> <span><?php echo e(awtTrans('صورة العرض ')); ?></span> </div> </div> </div> <div class="col-md-4 col-12 "> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('قيمة العرض')); ?></label> <div class="controls"> <input type="number" name="offer_amount" value="<?php echo e($row->offer_amount); ?>" class="form-control hide_input offer_amount_input" placeholder="<?php echo e(awtTrans('قيمة العرض')); ?>" > </div> </div> </div> <div class="col-md-4 col-12 "> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('نوع العرض')); ?></label> <div class="controls"> <select name="offer_type" class="offer_type form-control hide_input" > <option value><?php echo e(awtTrans('اختر نوع العرض')); ?></option> <option <?php echo e($row->offer_type == 'percentage' ? 'selected' : ''); ?> value="percentage"><?php echo e(awtTrans('نسبة')); ?></option> <option <?php echo e($row->offer_type == 'static_price' ? 'selected' : ''); ?> value="static_price"><?php echo e(awtTrans('سعر ثابت')); ?></option> </select> </div> </div> </div> <div class="col-md-4 col-12 "> <div class="form-group"> <label for="first-name-column"><?php echo e(awtTrans('اكبر مبلغ للخصم')); ?></label> <div class="controls"> <input type="number" name="offer_max" value="<?php echo e($row->offer_max); ?>" class="form-control hide_input offer_max_input" placeholder="<?php echo e(awtTrans('قيمة العرض')); ?>" > </div> </div> </div> </div> <div class="col-12 d-flex justify-content-center mt-3"> <button type="submit" class="btn btn-primary mr-1 mb-1 submit_button"><?php echo e(awtTrans('اضافة او تعديل')); ?></button> <a href="<?php echo e(url()->previous()); ?>" type="reset" class="btn btn-outline-warning mr-1 mb-1"><?php echo e(awtTrans(' رجوع ')); ?></a> </div> </div> </div> </form> </div> </div> </div> </div> </div> </section> <?php $__env->stopSection(); ?> <?php $__env->startSection('js'); ?> <script> if ($('.offer_input').is(":checked") == false) { $('.hide_div').fadeOut() $('.hide_input').val(null) } $(document).on('change' , '.offer_input', function () { if ($('.offer_input').is(":checked") == false) { $('.hide_div').fadeOut() }else{ $('.hide_div').fadeIn() } }); $(document).on('change' , '.offer_type', function () { if ($('.offer_type').val() == 'percentage') { $('.offer_max_input').attr('disabled' , false) $('.offer_max_input').val(null) }else{ $('.offer_max_input').attr('disabled' , true) $('.offer_max_input').val($('.offer_amount_input').val()) } }); </script> <script src="<?php echo e(asset('admin/app-assets/vendors/js/forms/validation/jqBootstrapValidation.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/js/scripts/forms/validation/form-validation.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/vendors/js/extensions/sweetalert2.all.min.js')); ?>"></script> <script src="<?php echo e(asset('admin/app-assets/js/scripts/extensions/sweet-alerts.js')); ?>"></script> <?php echo $__env->make('admin.shared.addImage', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php echo $__env->make('admin.shared.submitEditForm', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/wwineerc/public_html/resources/views/admin/stores/offer.blade.php ENDPATH**/ ?>
Back to File Manager