<?php
require_once('config.php');
require_once('inc/header.php');
?>
<main id="main" class="main">
  <div class="row">
    <div class="col-6 align-items-center">
      <div class="pagetitle mb-2">
        <h1><?php echo $page_title ?></h1>
      </div>
    </div>
  </div>
  <section class="section mt-4">
    <div class="row">
      <div class="col-lg-12">

        <form action="" method="post" enctype="multipart/form-data">
          <?php
          $args = array(
              'fields' => array(
                array(
                    'field_id'       => 'CountryAdsCtl',
                    'field_type'     => 'switch',
                    'field_title'     => 'Show Ads Positions',
                    'field_desc'  => 'View ad positions to understand their placement. Hidden ads will appear based on device size.',
                    'field_data' => $_POST['CountryAdsCtl'],
                ),
                array(
                    'field_id'       => 'CountryAds1',
                    'field_type'     => 'ads',
                    'field_title'    => 'Country Ads 1',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['CountryAds1'],
                ),
                array(
                    'field_id'       => 'CountryAds2',
                    'field_type'     => 'ads',
                    'field_title'    => 'Country Ads 2',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['CountryAds2'],
                ),
                array(
                    'field_id'       => 'CountryAds3',
                    'field_type'     => 'ads',
                    'field_title'    => 'Country Ads 3',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['CountryAds3'],
                ),
                array(
                    'field_id'       => 'CountryAds4',
                    'field_type'     => 'ads',
                    'field_title'    => 'Country Ads 4',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['CountryAds4'],
                ),
                array(
                    'field_id'       => 'CountryAds5',
                    'field_type'     => 'ads',
                    'field_title'    => 'Country Ads 5',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['CountryAds5'],
                ),
                array(
                    'field_id'       => 'CountryAds6',
                    'field_type'     => 'ads',
                    'field_title'    => 'Country Ads 6',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['CountryAds6'],
                ),
                array(
                    'field_id'       => 'CountryAds7',
                    'field_type'     => 'ads',
                    'field_title'    => 'Country Ads 7',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['CountryAds7'],
                ),
                array(
                    'field_id'       => 'CountryAds8',
                    'field_type'     => 'ads',
                    'field_title'    => 'Country Ads 8',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['CountryAds8'],
                ),
                array(
                    'field_id'     => 'update',
                    'field_type'   => 'button',
                    'btn_theme' => 'success',
                    'field_title'   => 'Save Changes',
                )
              )
          );
          AdvanceNews($args);
          ?>
          </form>

       </div>
    </div>
  </section>
</main>
<?php require_once('inc/footer.php'); ?>
