<?php $__env->startSection('panel'); ?>
<div class="row mb-none-30">
    <div class="col-lg-12">
        <div class="card">
            <form action="" method="post">
                <?php echo csrf_field(); ?>
                <div class="card-body">
                    <div class="row mb-4">
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?php echo app('translator')->get('User Ads Post'); ?></label>
                                <input type="checkbox" data-width="100%" data-height="50" data-onstyle="-success" data-offstyle="-danger" data-bs-toggle="toggle" data-on="<?php echo app('translator')->get('Enable'); ?>" data-off="<?php echo app('translator')->get('Disabled'); ?>" <?php if(@$general->user_ads_post): ?> checked <?php endif; ?> name="user_ads_post">
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
                                <label><?php echo app('translator')->get('Auto Approve'); ?></label>
                                <input type="checkbox" data-width="100%" data-height="50" data-onstyle="-success" data-offstyle="-danger" data-bs-toggle="toggle" data-on="<?php echo app('translator')->get('Enable'); ?>" data-off="<?php echo app('translator')->get('Disabled'); ?>" <?php if(@$general->ad_auto_approve): ?> checked <?php endif; ?> name="ad_auto_approve">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-3">
                            <div class="card mb-4">
                                <div class="card-header bg--primary d-flex justify-content-between">
                                    <h5 class="text-white"><?php echo app('translator')->get('Script Ads'); ?></h5>
                                </div>
                                <div class="card-body">
                                    <div class="form-group">
                                        <label><?php echo app('translator')->get('Ads Price'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" class="form-control" name="ad_price[script]" value="<?php echo e(@$general->ads_setting->ad_price->script); ?>" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label><?php echo app('translator')->get('Amount For User'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" class="form-control" value="<?php echo e(@$general->ads_setting->amount_for_user->script); ?>" name="amount_for_user[script]" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="card mb-4">
                                <div class="card-header bg--primary d-flex justify-content-between">
                                    <h5 class="text-white"><?php echo app('translator')->get('Image Ads'); ?></h5>
                                </div>
                                <div class="card-body">
                                    <div class="form-group">
                                        <label><?php echo app('translator')->get('Ads Price'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" class="form-control" name="ad_price[image]" value="<?php echo e(@$general->ads_setting->ad_price->image); ?>" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label><?php echo app('translator')->get('Amount For User'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" class="form-control" name="amount_for_user[image]" value="<?php echo e(@$general->ads_setting->amount_for_user->image); ?>" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="card mb-4">
                                <div class="card-header bg--primary d-flex justify-content-between">
                                    <h5 class="text-white"><?php echo app('translator')->get('URL Ads'); ?></h5>
                                </div>
                                <div class="card-body">
                                    <div class="form-group">
                                        <label><?php echo app('translator')->get('Ads Price'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" class="form-control" name="ad_price[url]" value="<?php echo e(@$general->ads_setting->ad_price->url); ?>" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label><?php echo app('translator')->get('Amount For User'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" class="form-control" name="amount_for_user[url]" value="<?php echo e(@$general->ads_setting->amount_for_user->url); ?>" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="card mb-4">
                                <div class="card-header bg--primary d-flex justify-content-between">
                                    <h5 class="text-white"><?php echo app('translator')->get('Youtube Video Ads'); ?></h5>
                                </div>
                                <div class="card-body">
                                    <div class="form-group">
                                        <label><?php echo app('translator')->get('Ads Price'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" class="form-control" name="ad_price[youtube]" value="<?php echo e(@$general->ads_setting->ad_price->youtube); ?>" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label><?php echo app('translator')->get('Amount For User'); ?></label>
                                        <div class="input-group">
                                            <input type="number" step="any" class="form-control" name="amount_for_user[youtube]" value="<?php echo e(@$general->ads_setting->amount_for_user->youtube); ?>" required>
                                            <span class="input-group-text"><?php echo e($general->cur_text); ?></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button type="submit" class="btn btn--primary w-100 h-45"><?php echo app('translator')->get('Submit'); ?></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?>
    <script>
    (function($){
    "use strict"
        $('[name=user_ads_post]').on('change', function () {
            var isCheck = $(this).prop('checked');
            if (isCheck == true) {
                $('[type=number]').removeAttr('readonly')
            } else {
                $('[type=number]').attr('readonly',true)
            }
        }).change();
    })(jQuery);
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vipvbqdu/public_html/core/resources/views/admin/setting/ads.blade.php ENDPATH**/ ?>