 <div class="content-wrapper">
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark"><?php echo $title ?></h1>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url() ?>admin/admin/dashboard">Dashboard</a></li>
              <li class="breadcrumb-item"><a href="#"><?php echo ucwords(str_replace("_", " ", $this->uri->segment(2))); ?></a></li>
              <li class="breadcrumb-item active"><?php echo ucwords(str_replace("_", " ", $title)); ?></li>

            </ol>
          </div>
        </div>
      </div>
    </div>

    <section class="content">
      <div class="container-fluid">
       
        <div class="row">
          <div class="col-sm-12">
            <div class="card card-default">
              <div class="card-header">
                <h3 class="card-title">Add New </h3>

                <div class="card-tools">
                  <a href="<?php echo base_url() ?>admin/upsell/upsell_thank_you_page"><button type="button" class="btn btn-success btn-sm">View Thanks Page</button></a>
                </div>
              </div>
              <?php echo form_open('admin/upsell/add_thanks_page'); ?>
              <div class="card-body">
                  <div class="row">

                     <div class="col-md-12">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Select Page <span class="required">*</span></label>
                          <div class="col-sm-12">
                             <select required id="showing" class="form-control"  name="thank_you_main_page_id">
                               <option value="">Select Page</option>
                                 <?php foreach ($all_page as $key => $page):
                                 $status = $this->upsell->check_page_id_thank_page($page->page_id);
                                 if($status == 0):
                                  ?>
                                   <option value="<?php echo $page->page_id ?>"><?php echo $page->page_title ?></option>
                                 <?php endif; 
                               endforeach; ?>
                             </select>
                          </div>
                       </div>
                     </div>
                     <div class="col-md-12">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Heading <span class="required">*</span></label>
                          <div class="col-sm-12">
                             <input class="form-control"  name="thank_page_heading" placeholder="Enter Thanks Page Heading Name" required="required">
                          </div>
                       </div>
                     </div>

                     <div class="col-md-12">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Sub-Heading <span class="required">*</span></label>
                          <div class="col-sm-12">
                             <input class="form-control"  name="thank_page_sub_heading" placeholder="Enter Thanks Page Sub-Heading Name" required="required">
                          </div>
                       </div>
                     </div>
                     
                     <div class="col-md-4">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Button Title<span class="required">*</span></label>
                          <div class="col-sm-12">
                             <input class="form-control"  name="thank_page_button_title" placeholder="Enter Thanks Page Button Title" required="required">
                          </div>
                       </div>
                     </div>

                     <div class="col-md-4">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Button URL<span class="required">*</span></label>
                          <div class="col-sm-12">
                             <input class="form-control"  name="thank_page_button_url" placeholder="Enter Thanks Page Button URL" required="required">
                          </div>
                       </div>
                     </div>

                     <div class="col-md-4">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Event date-Time</label>
                          <div class="col-sm-12">
                             <input class="form-control"  name="thank_page_event_date" placeholder="Enter Thanks Page Button URL" type="datetime-local">
                          </div>
                       </div>
                     </div>
                     
                     <div class="col-md-12">
                       <div class="form-group">
                          <button name="submit" style="float: right" type="submit" class="btn btn-success">Add</button>
                       </div>
                     </div>
                   <?php echo form_close() ?>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
