<?php $__env->startSection('content'); ?>
    <div class="side-title">
        <h3><?php echo e($head ?? ''); ?></h3>
    </div>

    <div class="border-item">
        <form class="form-row" method="post" action="<?php echo e($action); ?>" onsubmit="saveForm(this)" enctype="multipart/form-data">

            <?php if($reminder ?? ''  && $reminder->id): ?>
                <?php echo method_field('PUT'); ?>
            <?php endif; ?>
            <?php echo csrf_field(); ?>
            <div class="form-group col-lg-6">
                <label><?php echo e(meta('cart_leave', getCurrentLocale()) ?? __('reminders.cart_leave')); ?></label>
                <input type="number"  class="form-control  <?php echo e($errors->has('cart_leave') ? 'is-invalid' : ''); ?>" name="cart_leave" placeholder="<?php echo e(meta('cart_leave', getCurrentLocale()) ?? __('reminders.cart_leave')); ?>" value='<?php echo e(old("cart_leave", $reminder->cart_leave ?? "")); ?>'/>
            </div>
            <div class="form-group col-lg-6">
                <label><?php echo e(meta('cart_total', getCurrentLocale()) ?? __('reminders.cart_total')); ?></label>
                <input type="number" min="0" step=".01" class="form-control  <?php echo e($errors->has('cart_total') ? 'is-invalid' : ''); ?>" name="cart_total" placeholder="<?php echo e(meta('cart_total', getCurrentLocale()) ?? __('reminders.cart_total')); ?>" value='<?php echo e(old("cart_total", $reminder->cart_total ?? "")); ?>'/>
            </div>

            <div class="form-group col-lg-6">
                <label><?php echo e(meta('send_notification', getCurrentLocale()) ?? __('reminders.send_notification')); ?></label>
                <select class="form-control <?php echo e($errors->has('send_notification') ? 'is-invalid' : ''); ?>" name="send_notification">
                    <option <?php echo e((isset($reminder) ? $reminder->send_notification : '')  == 'email' ? 'selected' : ''); ?>  value="email"><?php echo e(__('reminders.email')); ?></option>
                    <option <?php echo e((isset($reminder) ? $reminder->send_notification : '')  == 'sms' ? 'selected' : ''); ?>  value="sms"><?php echo e(__('reminders.sms')); ?></option>
                    <option <?php echo e((isset($reminder) ? $reminder->send_notification : '')  == 'both' ? 'selected' : ''); ?> value="both"><?php echo e(__('reminders.both')); ?></option>
                </select>
            </div>

            <div class="form-group col-lg-6">
                <label><?php echo e(meta('discount_type', getCurrentLocale()) ?? __('reminders.discount_type')); ?></label>
                <select class="form-control <?php echo e($errors->has('discount_type') ? 'is-invalid' : ''); ?>" name="discount_type">
                    <option <?php echo e((isset($reminder) ? $reminder->discount_type : '')  == 'value' ? 'selected' : ''); ?> value="value"><?php echo e(__('reminders.value')); ?></option>
                    <option <?php echo e((isset($reminder) ? $reminder->discount_type : '')  == 'percentage' ? 'selected' : ''); ?>  value="percentage"><?php echo e(__('reminders.percentage')); ?></option>
                </select>
            </div>
            <div class="form-group col-lg-6">
                <label><?php echo e(meta('discount_amount', getCurrentLocale()) ?? __('reminders.discount_amount')); ?></label>
                <input type="number"  class="form-control  <?php echo e($errors->has('discount_amount') ? 'is-invalid' : ''); ?>" name="discount_amount" placeholder="<?php echo e(meta('discount_amount', getCurrentLocale()) ?? __('reminders.discount_amount')); ?>" value='<?php echo e(old("discount_amount", $reminder->discount_amount ?? "")); ?>'/>
            </div>

            <div class="form-group col-lg-6">
                <label><?php echo e(meta('timing', getCurrentLocale()) ?? __('reminders.timing')); ?></label>
                <input type="number"  class="form-control  <?php echo e($errors->has('timing') ? 'is-invalid' : ''); ?>" name="timing" placeholder="<?php echo e(meta('timing', getCurrentLocale()) ?? __('reminders.timing')); ?>" value='<?php echo e(old("timing", $reminder->timing ?? "")); ?>'/>
            </div>

            <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="form-group col-lg-6">
                    <label><?php echo e(meta('name', $language->local) ?? __('reminders.name')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                    <input type="text" class="form-control <?php echo e($errors->has('name_'.$language->local) ? 'is-invalid' : ''); ?>" name="name_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('name', $language->local) ?? __('reminders.name')); ?>" value='<?php echo e(old("name_{$language->local}", $reminder[$language->local]->name ?? "")); ?>'/>
                </div>

                <div class="form-group col-lg-12">
                    <label><?php echo e(meta('description', $language->local) ?? __('reminders.description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
                    <textarea name="description_<?php echo e($language->local); ?>" class="form-control <?php echo e($errors->has('description_'.$language->local) ? 'is-invalid' : ''); ?>" placeholder="<?php echo e(meta('description', $language->local) ?? __('reminders.description')); ?>"><?php echo e(old("description_{$language->local}", $reminder[$language->local]->description ?? "")); ?></textarea>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            <div class="text-center mt-5 col-12">
                <button class="butn"><span><?php echo e(__('dashboard.save')); ?></span></button>
            </div>
        </form>
    </div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('inner_js'); ?>
    <!-- Editor JS files -->
    
    <link rel="stylesheet" href="//cart_leave.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
    <script src="//cdn.tinymce.com/4/tinymce.min.js"></script>


    <script>
        let route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>",
            url = "<?php echo e(url('/')); ?>/",
            currentLanguage = "<?php echo e(getCurrentLocale()); ?>",
            imagePath = "<?php echo e(asset('')); ?>";
    </script>
    <script src="<?php echo e(asset('assets/admin/js/editor.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/lfm.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/articles.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/reminders.js')); ?>"></script>
<?php $__env->stopSection(); ?>




<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/albenna/resources/views/admin/reminders/form.blade.php ENDPATH**/ ?>