<?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'       => 'ttWriterAccountSystem',
                    'field_type'     => 'switch',
                    'field_title'     => 'Show Icon',
                    'field_subtitle'  => 'Writer Account System enable or disable',
                    'field_desc'  => 'If turn off user cannot register, login, and manage content.',
                    'field_data' => $_POST['ttWriterAccountSystem'],
                ),
                array(
                    'field_id'       => 'ttWriterAccountProfile',
                    'field_type'     => 'switch',
                    'field_title'     => 'Show Profile',
                    'field_subtitle'  => 'Show Writer Profile',
                    'field_desc'  => 'The writer’s profile will not be visible if it is turned off.',
                    'field_data' => $_POST['ttWriterAccountProfile'],
                ),
                array(
                    'field_id'       => 'ttWriterAccountProfileParmalink',
                    'field_type'     => 'text',
                    'field_title'    => 'Writer Profile Parmalink',
                    'field_data'     => $_POST['ttWriterAccountProfileParmalink'],
                    'field_required' => true,
                ),
                array(
                    'field_id'       => 'PostWriterDefaultImage',
                    'field_type'     => 'select_file',
                    'field_image'    => true,
                    'field_title'    => 'Default Writer DP',
                    'field_desc'     => 'If writer didnot upload image or guest writer then show this image',
                    'field_data' => $_POST['PostWriterDefaultImage'],
                    'field_required' => true,
                ),
                  array(
                      'field_id'       => 'Register_title',
                      'field_type'     => 'text',
                      'field_title'    => 'Register Page Title',
                      'field_data'     => $_POST['Register_title'],
                      'field_required' => true,
                  ),
                 array(
                     'field_id'       => 'Register_title',
                     'field_type'     => 'text',
                     'field_title'    => 'Register Page Title',
                     'field_data'     => $_POST['Register_title'],
                     'field_required' => true,
                 ),

                  array(
                      'field_id'       => 'Login_stitle',
                      'field_type'     => 'text',
                      'field_title'     => 'Login Page Subitle',
                      'field_data' => $_POST['Login_stitle'],
                      'field_required' => true,
                  ),
                  array(
                      'field_id'       => 'AccountDashboardBanner',
                      'field_type'     => 'select_file',
                      'field_image'    => true,
                      'field_title'    => 'Account Dashboard Banner',
                      'field_desc'     => 'Visible on Writer Account Banner',
                      'field_data' => $_POST['AccountDashboardBanner'],
                      'field_required' => true,
                  ),
                 array(
                     'field_id'       => 'New_register_status',
                     'field_type'     => 'select',
                     'field_title'     => 'Register Writer',
                     'field_data' => $_POST['New_register_status'],
                     'field_options' =>  array(
                       'active' => 'Active',
                       'deactive' => 'Deactive',
                      ),
                 ),

                 array(
                     'field_id'       => 'REG_OTP_METHODE',
                     'field_type'     => 'select',
                     'field_title'     => 'Register Verification Method',
                     'field_data' => $_POST['REG_OTP_METHODE'],
                     'field_required' => true,
                     'field_options' =>  array(
                       'OFF' => 'Turn Off Verification',
                       'SMS' => 'Send By SMS',
                       'EMAIL' => 'Send By Email',
                       'EMAIL_SMS' => 'Send By SMS & Email',
                      ),
                 ),
                 array(
                     'field_id'       => 'Writer_login_status',
                     'field_type'     => 'select',
                     'field_title'     => 'Writer Login',
                     'field_data' => $_POST['Writer_login_status'],
                     'field_options' =>  array(
                       'active' => 'Active',
                       'deactive' => 'Deactive',
                      ),
                 ),

                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'); ?>
