 <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">Edit Pass Details</h3>

                <div class="card-tools">
                  <a href="<?php echo base_url() ?>admin/upsell/upsell_page_pass_details"><button type="button" class="btn btn-success btn-sm">View All Pass</button></a>
                </div>
              </div>
              <?php echo form_open_multipart('admin/upsell/update_vip_pass_details/'.$pass_details->vip_pass_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">Select Page <span class="required">*</span></label>
                          <div class="col-sm-12">
                             <select required id="showing" class="form-control"  name="vip_pass_upsell_page_id">
                               <option value="">Select Page</option>
                                 <?php foreach ($all_page as $key => $page):?>
                                   <option <?php if($page->page_id == $pass_details->vip_pass_upsell_page_id){echo 'selected';}?> value="<?php echo $page->page_id ?>"><?php echo $page->page_title ?></option>
                                 <?php endforeach; ?>
                             </select>
                          </div>
                       </div>
                     </div>
                     <div class="col-md-12">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Title <span class="required">*</span></label>
                          <div class="col-sm-12">
                             <input class="form-control"  name="vip_pass_title" placeholder="Enter Pass Title Name" required="required" value="<?php echo $pass_details->vip_pass_title ?>">
                          </div>
                       </div>
                     </div>
                     <div class="col-md-12">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Pass Description <span class="required">*</span></label>
                          <div class="col-sm-12">
                             <textarea class="form-control"  name="vip_pass_description" placeholder="Enter Pass Description" required="required"><?php echo $pass_details->vip_pass_description ?></textarea>
                          </div>
                       </div>
                     </div>
                     <div class="col-md-12">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Pass Image</label>
                          <div class="col-sm-12">
                             <input type="file" class="form-control"  name="vip_pass_image">
                          </div>
                       </div>
                     </div>
                     <div class="col-md-12">
                       <div class="form-group">
                          <label for="inputEmail" class="col-sm-12 col-form-label">Pass Image Preview</label>
                          <div class="col-sm-12">
                             <img src="<?php echo base_url() ?><?php echo $pass_details->vip_pass_image ?>" width="150px">
                          </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>
