
<?php $__env->startSection('page_title', 'AdMob Settings'); ?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('admin.layout.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <div class="right-content">
        <?php echo $__env->make('admin.layout.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        <div class="body-content">
            <!-- mobile title -->
            <h1 class="page-title-sm">AdMob Settings</h1>

            <div class="border-bottom row mb-3">
                <div class="col-sm-12">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo e(__('Label.Dashboard')); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page">AdMob Settings</li>
                    </ol>
                </div>
            </div>

            <div class="card custom-border-card mt-3">
                <h5 class="card-header">AdMob <?php echo e(__('Label.Android Settings')); ?></h5>
                <div class="card-body">
                    <form id="admob_android">
                        <?php echo csrf_field(); ?>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label for="banner_ad"><?php echo e(__('Label.Banner Ad')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="banner_ad" name="banner_ad" class="custom-control-input" <?php echo e(($result['banner_ad']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="banner_ad"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="banner_ad1" name="banner_ad" class="custom-control-input" <?php echo e(($result['banner_ad']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="banner_ad1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label for="interstital_ad"><?php echo e(__('Label.Interstital Ad')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="interstital_ad" name="interstital_ad" class="custom-control-input" <?php echo e(($result['interstital_ad']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="interstital_ad"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="interstital_ad1" name="interstital_ad" class="custom-control-input" <?php echo e(($result['interstital_ad']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="interstital_ad1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label for="reward_ad"><?php echo e(__('Label.Reward Ad')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="reward_ad" name="reward_ad" class="custom-control-input" <?php echo e(($result['reward_ad']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="reward_ad"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="reward_ad1" name="reward_ad" class="custom-control-input" <?php echo e(($result['reward_ad']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="reward_ad1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Banner Ad ID')); ?></label>
                                    <input type="text" name="banner_adid" class="form-control" placeholder="Enter Banner Ad ID" value="<?php echo e($result['banner_adid']); ?>">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Interstital Ad ID')); ?></label>
                                    <input type="text" name="interstital_adid" class="form-control" placeholder="Enter interstital Ad ID" value="<?php echo e($result['interstital_adid']); ?>">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Reward Ad ID')); ?></label>
                                    <input type="text" name="reward_adid" class="form-control" placeholder="Enter Reward Ad ID" value="<?php echo e($result['reward_adid']); ?>">
                                </div>
                            </div>

                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label></label>
                                    &nbsp;
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Interstital Ad Click')); ?></label>
                                    <input type="text" name="interstital_adclick" class="form-control" placeholder="Enter Interstital Ad Click" value="<?php echo e($result['interstital_adclick']); ?>">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Reward Ad Click')); ?></label>
                                    <input type="text" name="reward_adclick" class="form-control" placeholder="Enter Reward Ad Click" value="<?php echo e($result['reward_adclick']); ?>">
                                </div>
                            </div>
                        </div>
                        <div class="border-top pt-3 text-right">
                            <button type="button" class="btn btn-default mw-120" onclick="admob_android()"><?php echo e(__('Label.SAVE')); ?></button>
                        </div>
                    </form>
                </div>
            </div>
            <div class="card custom-border-card mt-3">
                <h5 class="card-header">AdMob <?php echo e(__('Label.IOS Settings')); ?></h5>
                <div class="card-body">
                    <form id="admob_ios">
                        <?php echo csrf_field(); ?>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label for="ios_banner_ad"><?php echo e(__('Label.Banner Ad')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="ios_banner_ad" name="ios_banner_ad" class="custom-control-input" <?php echo e(($result['ios_banner_ad']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="ios_banner_ad"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="ios_banner_ad1" name="ios_banner_ad" class="custom-control-input" <?php echo e(($result['ios_banner_ad']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="ios_banner_ad1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label for="ios_interstital_ad"><?php echo e(__('Label.Interstital Ad')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="ios_interstital_ad" name="ios_interstital_ad" class="custom-control-input" <?php echo e(($result['ios_interstital_ad']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="ios_interstital_ad"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="ios_interstital_ad1" name="ios_interstital_ad" class="custom-control-input" <?php echo e(($result['ios_interstital_ad']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="ios_interstital_ad1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label for="ios_reward_ad">Reward Ad</label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="ios_reward_ad" name="ios_reward_ad" class="custom-control-input" <?php echo e(($result['ios_reward_ad']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="ios_reward_ad"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="ios_reward_ad1" name="ios_reward_ad" class="custom-control-input" <?php echo e(($result['ios_reward_ad']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="ios_reward_ad1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Banner Ad ID')); ?></label>
                                    <input type="text" name="ios_banner_adid" class="form-control" placeholder="Enter Banner Ad ID" value="<?php echo e($result['ios_banner_adid']); ?>">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Interstital Ad ID')); ?></label>
                                    <input type="text" name="ios_interstital_adid" class="form-control" placeholder="Enter interstital Ad ID" value="<?php echo e($result['ios_interstital_adid']); ?>">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label>Reward Ad ID</label>
                                    <input type="text" name="ios_reward_adid" class="form-control" placeholder="Enter Reward Ad ID" value="<?php echo e($result['ios_reward_adid']); ?>">
                                </div>
                            </div>

                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label></label>
                                    &nbsp;
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label>Interstital Ad Click</label>
                                    <input type="text" name="ios_interstital_adclick" class="form-control" placeholder="Enter Interstital Ad Click" value="<?php echo e($result['ios_interstital_adclick']); ?>">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label>Reward Ad Click</label>
                                    <input type="text" name="ios_reward_adclick" class="form-control" placeholder="Enter Reward Ad Click" value="<?php echo e($result['ios_reward_adclick']); ?>">
                                </div>
                            </div>
                        </div>
                        <div class="border-top pt-3 text-right">
                            <button type="button" class="btn btn-default mw-120" onclick="admob_ios()"><?php echo e(__('Label.SAVE')); ?></button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('pagescript'); ?>
    <script>

        // Sidebar Scroll Down
        let sidebarHeight = $('.sidebar')[0].scrollHeight;
        sidebar_down(sidebarHeight);

        function admob_android() {

            var Check_Admin = '<?php echo Check_Admin_Access(); ?>';
            if(Check_Admin == 1){

                var formData = new FormData($("#admob_android")[0]);
                $("#dvloader").show();
                $.ajax({
                    type: 'POST',
                    url: '<?php echo e(route("admob.android")); ?>',
                    data: formData,
                    cache: false,
                    contentType: false,
                    processData: false,
                    success: function(resp) {
                        $("#dvloader").hide();
                        $("html, body").animate({scrollTop: 0}, "swing");
                        get_responce_message(resp);
                    },
                    error: function(XMLHttpRequest, textStatus, errorThrown) {
                        $("#dvloader").hide();
                        toastr.error(errorThrown, textStatus);
                    }
                });
            } else {
                toastr.error('You have no right to add, edit, and delete.');
            }
        }
        function admob_ios() {

            var Check_Admin = '<?php echo Check_Admin_Access(); ?>';
            if(Check_Admin == 1){

                var formData = new FormData($("#admob_ios")[0]);
                $("#dvloader").show();
                $.ajax({
                    type: 'POST',
                    url: '<?php echo e(route("admob.ios")); ?>',
                    data: formData,
                    cache: false,
                    contentType: false,
                    processData: false,
                    success: function(resp) {
                        $("#dvloader").hide();
                        $("html, body").animate({scrollTop: 0}, "swing");
                        get_responce_message(resp);
                    },
                    error: function(XMLHttpRequest, textStatus, errorThrown) {
                        $("#dvloader").hide();
                        toastr.error(errorThrown, textStatus);
                    }
                });
            } else {
                toastr.error('You have no right to add, edit, and delete.');
            }
        }
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.page-app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /opt/lampp/htdocs/envato/app/dtpocket_fm/resources/views/admin/admob/index.blade.php ENDPATH**/ ?>