
<?php $__env->startSection('page_title', 'FaceBook Ads 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">FaceBook Ads 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">FaceBook Ads Settings</li>
                    </ol>
                </div>
            </div>

            <div class="card custom-border-card mt-3">
                <h5 class="card-header">FaceBook Ads <?php echo e(__('Label.Android Settings')); ?></h5>
                <div class="card-body">
                    <form id="fbad">
                        <?php echo csrf_field(); ?>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label for="fb_native_status"><?php echo e(__('Label.Native Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_native_status" name="fb_native_status" class="custom-control-input" <?php echo e(($result['fb_native_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_native_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_native_status1" name="fb_native_status" class="custom-control-input" <?php echo e(($result['fb_native_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_native_status1"><?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="fb_banner_status"><?php echo e(__('Label.Banner Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_banner_status" name="fb_banner_status" class="custom-control-input" <?php echo e(($result['fb_banner_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_banner_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_banner_status1" name="fb_banner_status" class="custom-control-input" <?php echo e(($result['fb_banner_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_banner_status1"><?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="fb_interstiatial_status"><?php echo e(__('Label.Interstiatial Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_interstiatial_status" name="fb_interstiatial_status" class="custom-control-input" <?php echo e(($result['fb_interstiatial_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_interstiatial_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_interstiatial_status1" name="fb_interstiatial_status" class="custom-control-input" <?php echo e(($result['fb_interstiatial_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_interstiatial_status1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Native Key')); ?></label>
                                    <input type="text" name="fb_native_id" class="form-control" value="<?php echo e($result['fb_native_id']); ?>" placeholder="Enter Native Key">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Banner Key')); ?></label>
                                    <input type="text" name="fb_banner_id" class="form-control" value="<?php echo e($result['fb_banner_id']); ?>" placeholder="Enter Banner key">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Interstiatial Key')); ?></label>
                                    <input type="text" name="fb_interstiatial_id" class="form-control" value="<?php echo e($result['fb_interstiatial_id']); ?>" placeholder="Enter Interstiatial Key">
                                </div>
                            </div>
                        </div>
                        <hr>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group col-lg-6">
                                    <label for="fb_rewardvideo_status"><?php echo e(__('Label.RewardVideo Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_rewardvideo_status" name="fb_rewardvideo_status" class="custom-control-input" <?php echo e(($result['fb_rewardvideo_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_rewardvideo_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_rewardvideo_status1" name="fb_rewardvideo_status" class="custom-control-input" <?php echo e(($result['fb_rewardvideo_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_rewardvideo_status1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group col-lg-6">
                                    <label for="fb_native_full_status"><?php echo e(__('Label.Native Full Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_native_full_status" name="fb_native_full_status" class="custom-control-input" <?php echo e(($result['fb_native_full_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_native_full_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_native_full_status1" name="fb_native_full_status" class="custom-control-input" <?php echo e(($result['fb_native_full_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_native_full_status1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Rewardvideo Status Key')); ?></label>
                                    <input type="text" name="fb_rewardvideo_id" class="form-control" value="<?php echo e($result['fb_rewardvideo_id']); ?>" placeholder="Enter Reward Video Status Key">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Native Full Key')); ?></label>
                                    <input type="text" name="fb_native_full_id" class="form-control" value="<?php echo e($result['fb_native_full_id']); ?>" placeholder="Enter Native Full Key">
                                </div>
                            </div>
                        </div>
                        <div class="border-top pt-3 text-right">
                            <button type="button" class="btn btn-default mw-120" onclick="fbad()"><?php echo e(__('Label.SAVE')); ?></button>
                        </div>
                    </form>
                </div>
            </div>
            <div class="card custom-border-card mt-3">
                <h5 class="card-header">FaceBook Ads <?php echo e(__('Label.IOS Settings')); ?></h5>
                <div class="card-body">
                    <form id="fbad_ios">
                        <?php echo csrf_field(); ?>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label for="fb_ios_native_status"><?php echo e(__('Label.Native Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_native_status" name="fb_ios_native_status" class="custom-control-input" <?php echo e(($result['fb_ios_native_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_ios_native_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_native_status1" name="fb_ios_native_status" class="custom-control-input" <?php echo e(($result['fb_ios_native_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_ios_native_status1"><?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="fb_ios_banner_status"><?php echo e(__('Label.Banner Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_banner_status" name="fb_ios_banner_status" class="custom-control-input" <?php echo e(($result['fb_ios_banner_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_ios_banner_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_banner_status1" name="fb_ios_banner_status" class="custom-control-input" <?php echo e(($result['fb_ios_banner_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_ios_banner_status1"><?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="fb_ios_interstiatial_status"><?php echo e(__('Label.Interstiatial Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_interstiatial_status" name="fb_ios_interstiatial_status" class="custom-control-input" <?php echo e(($result['fb_ios_interstiatial_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_ios_interstiatial_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_interstiatial_status1" name="fb_ios_interstiatial_status" class="custom-control-input" <?php echo e(($result['fb_ios_interstiatial_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_ios_interstiatial_status1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Native Key')); ?></label>
                                    <input type="text" name="fb_ios_native_id" class="form-control" value="<?php echo e($result['fb_ios_native_id']); ?>" placeholder="Enter Native Key">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Banner Key')); ?></label>
                                    <input type="text" name="fb_ios_banner_id" class="form-control" value="<?php echo e($result['fb_ios_banner_id']); ?>" placeholder="Enter Banner Key">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Interstiatial Key')); ?></label>
                                    <input type="text" name="fb_ios_interstiatial_id" class="form-control" value="<?php echo e($result['fb_ios_interstiatial_id']); ?>" placeholder="Enter Interstiatial Key">
                                </div>
                            </div>
                        </div>
                        <hr>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group col-lg-6">
                                    <label for="fb_ios_rewardvideo_status"><?php echo e(__('Label.RewardVideo Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_rewardvideo_status" name="fb_ios_rewardvideo_status" class="custom-control-input" <?php echo e(($result['fb_ios_rewardvideo_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_ios_rewardvideo_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_rewardvideo_status1" name="fb_ios_rewardvideo_status" class="custom-control-input" <?php echo e(($result['fb_ios_rewardvideo_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_ios_rewardvideo_status1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group col-lg-6">
                                    <label for="fb_ios_native_full_status"><?php echo e(__('Label.Native Full Status')); ?></label>
                                    <div class="radio-group">
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_native_full_status" name="fb_ios_native_full_status" class="custom-control-input" <?php echo e(($result['fb_ios_native_full_status']=='1')? "checked" : ""); ?> value="1">
                                            <label class="custom-control-label" for="fb_ios_native_full_status"><?php echo e(__('Label.Yes')); ?></label>
                                        </div>
                                        <div class="custom-control custom-radio">
                                            <input type="radio" id="fb_ios_native_full_status1" name="fb_ios_native_full_status" class="custom-control-input" <?php echo e(($result['fb_ios_native_full_status']=='0')? "checked" : ""); ?> value="0">
                                            <label class="custom-control-label" for="fb_ios_native_full_status1"><?php echo e(__('Label.No')); ?></label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Rewardvideo Status Key')); ?></label>
                                    <input type="text" name="fb_ios_rewardvideo_id" class="form-control" value="<?php echo e($result['fb_ios_rewardvideo_id']); ?>" placeholder="Enter Reward Video Status Key">
                                </div>
                            </div>
                            <div class="col-12 col-sm-6 col-md-4">
                                <div class="form-group">
                                    <label><?php echo e(__('Label.Native Full Key')); ?></label>
                                    <input type="text" name="fb_ios_native_full_id" class="form-control" value="<?php echo e($result['fb_ios_native_full_id']); ?>" placeholder="Enter native Full Key">
                                </div>
                            </div>
                        </div>
                        <div class="border-top pt-3 text-right">
                            <button type="button" class="btn btn-default mw-120" onclick="fbad_ios()"><?php echo e(__('Label.SAVE')); ?></button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('pagescript'); ?>
    <script>
        function fbad() {
            var formData = new FormData($("#fbad")[0]);
            $("#dvloader").show();
            $.ajax({
                type: 'POST',
                url: '<?php echo e(route("fbads.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.msg, 'failed');
                }
            });
        }
        function fbad_ios() {
            var formData = new FormData($("#fbad_ios")[0]);
            $("#dvloader").show();
            $.ajax({
                type: 'POST',
                url: '<?php echo e(route("fbads.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.msg, 'failed');
                }
            });
        }
    </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/facebook_ads/index.blade.php ENDPATH**/ ?>