<?php
    $errors = $this->session->userdata('errors');
    if (isset($errors)) {
        ?>
        <script>
            swal ( "Oops" ,  "<?php echo $errors ?>" ,  "error" )
        </script>
        <?php echo $errors ?>
        <?php
        $this->session->unset_userdata('errors');
    }
    $error = $this->session->userdata('error');
    if (isset($error)) {
        ?>
         <script>
            swal ( "Oops" ,  "<?php echo $error ?>" ,  "error" )
        </script>
        <?php
        $this->session->unset_userdata('error');
    }
    $success = $this->session->userdata('success');
    if (isset($success)) {
        ?>
         <script>
            swal({
          title: "Done!",
          text: "<?php echo $success ?>",
          icon: "success",
        });
        </script>
        <?php
        $this->session->unset_userdata('success');
    }
    ?>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>Thank You Page Setting</h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo admin_url() ?>admin">Home</a></li>
              <li class="breadcrumb-item active">Thank You Page Setting</li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h4>Thank You Page Content</h4>
              </div>
              <!-- /.card-header -->
              <?php echo form_open(base_url().'admin/frontend_setting/update_thank_you_page'); ?>
              <div class="card-body">
                <div class="row">
                  <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Page Heading'); ?></label>
                         <div class="col-md-10">
                            <input name="thank_you_heading" class="form-control" placeholder="Enter Page Heading" value="<?php echo $content->thank_you_heading; ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Page Sub Heading'); ?></label>
                         <div class="col-md-10">
                            <input name="thank_you_sub_heading" class="form-control" placeholder="Enter Page Sub Heading" value="<?php echo $content->thank_you_sub_heading; ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Video Iframe Link'); ?></label>
                         <div class="col-md-10">
                            <textarea name="thank_you_video" class="form-control" placeholder="Enter Page Iframe Link"><?php echo $content->thank_you_video; ?></textarea>
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Page Description'); ?></label>
                         <div class="col-md-10">
                            <textarea name="thank_you_description" class="form-control text-editor" placeholder="Enter Page Description"><?php echo $content->thank_you_description; ?></textarea>
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Bottom Heading'); ?></label>
                         <div class="col-md-10">
                            <input name="thank_you_des_1" class="form-control" placeholder="Enter Page Bottom Heading" value="<?php echo $content->thank_you_des_1; ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Bottom Sub Heading'); ?></label>
                         <div class="col-md-10">
                            <input name="thank_you_dec_2" class="form-control" placeholder="Enter Page Bottom Sub Heading" value="<?php echo $content->thank_you_dec_2; ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Facebook Link'); ?></label>
                         <div class="col-md-10">
                            <input name="thank_you_fb" class="form-control" placeholder="Enter Page Facebook URL" value="<?php echo $content->thank_you_fb; ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Whatsapp'); ?></label>
                         <div class="col-md-10">
                            <input name="thank_you_whatsapp" class="form-control" placeholder="Enter Page Whatsapp" value="<?php echo $content->thank_you_whatsapp; ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Youtube'); ?></label>
                         <div class="col-md-10">
                            <input name="thank_you_youtube" class="form-control" placeholder="Enter Page Youtube" value="<?php echo $content->thank_you_youtube; ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Telegram'); ?></label>
                         <div class="col-md-10">
                            <input name="thank_you_telegram" class="form-control" placeholder="Enter Page Telegram" value="<?php echo $content->thank_you_telegram; ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-xl-12">
                      <div class="form-group row mb-3">
                         <label class="col-md-2 col-form-label" for="meta_description"><?php echo get_phrase('Head Code'); ?></label>
                         <div class="col-md-10">
                            <textarea name="thank_you_head_code" class="form-control" placeholder="Enter Page Head Code"><?php echo $content->thank_you_head_code; ?></textarea>
                         </div>
                      </div>
                   </div>
                  <div class="col-md-12">
                    <div class="form-group">
                      <button class="btn btn-info" type="submit" style="float: right">Update</button>
                    </div>
                  </div>
                  <?php echo form_close(); ?>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>