 <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">Update Page</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/update_thanks_page/'.$thank_page->thank_page_id); ?>
              <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">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" value="<?php echo $thank_page->thank_page_heading ?>">
                          </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" value="<?php echo $thank_page->thank_page_sub_heading ?>">
                          </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" value="<?php echo $thank_page->thank_page_button_title ?>">
                          </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" value="<?php echo $thank_page->thank_page_button_url ?>">
                          </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" value="<?php if($thank_page->thank_page_event_date){echo date('Y-m-d\TH:i', strtotime($thank_page->thank_page_event_date));}; ?>">
                          </div>
                       </div>
                     </div>
                     
                     <div class="col-md-12">
                       <div class="form-group">
                          <button name="submit" style="float: right" type="submit" class="btn btn-success">Update</button>
                       </div>
                     </div>
                   <?php echo form_close() ?>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
