
  <!-- 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 class="m-0 text-dark">Update Page</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">Home</a></li>
              <li class="breadcrumb-item active">Update Page</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">
               <h3 class="card-title">Update Page</h3>
               <div class="card-tools">
                  <a href="<?php echo base_url()?>/admin/front_setting/view_all_page" class="btn btn-primary btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> View All Page</a>
               </div>
                
              </div>
              <!-- /.card-header -->
              <?php echo form_open_multipart('admin/front_setting/page_update'); ?>
              <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">Page Name <span class="required">*</span></label>
                         <div class="col-sm-12">
                            <input type="text" class="form-control"  name="name"  required="required" placeholder="Enter Page Name" value="<?php echo $page->name ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-md-12">
                      <div class="form-group">
                         <label for="inputEmail" class="col-sm-12 col-form-label">Page Slug </label>
                         <div class="col-sm-12">
                            <input type="text" class="form-control"  name="slug"  placeholder="Enter Page Slug" value="<?php echo $page->slug ?>">
                         </div>
                      </div>
                   </div>
                   
                   <div class="col-md-12">
                      <div class="form-group">
                         <label for="inputEmail" class="col-sm-12 col-form-label"> Page Content</label>
                         <div class="col-sm-12">
                            <textarea class="form-control text-editor" id="editor"  name="content" placeholder="Enter Shipping Details"><?php echo $page->content ?></textarea>
                            <div id="loader"></div>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-12">
                      <div class="form-group">
                         <label for="inputEmail" class="col-sm-12 col-form-label">Page Meta Title</label>
                         <div class="col-sm-12">
                            <input type="text" class="form-control"  name="meta_title"  placeholder="Enter Page Meta Title" value="<?php echo $page->meta_title ?>">
                         </div>
                      </div>
                   </div>
                   <div class="col-md-6">
                      <div class="form-group">
                         <label for="inputEmail" class="col-sm-12 col-form-label"> Page Meta Description</label>
                         <div class="col-sm-12">
                            <textarea class="form-control"  name="meta_descrition" placeholder="Enter Page Meta Description"><?php echo $page->meta_descrition ?></textarea>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-6">
                      <div class="form-group">
                         <label for="inputEmail" class="col-sm-12 col-form-label"> Page Keywords</label>
                         <div class="col-sm-12">
                            <textarea class="form-control"  name="meta_keyword" placeholder="Enter Page Keywords"><?php echo $page->meta_keyword ?></textarea>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-4">
                      <div class="form-group">
                         <label for="inputEmail" class="col-sm-12 col-form-label">Image (Image size 690 X 460 px)</label>
                         <div class="col-sm-12">
                            <input type="file" class="form-control"  name="image" placeholder="Enter Page Name">
                         </div>
                      </div>
                   </div>
                    <div class="col-md-4">
                      <div class="form-group">
                         <label for="inputEmail" class="col-sm-12 col-form-label">Status</label>
                         <div class="col-sm-12">
                            <select  class="form-control"  name="status" placeholder="Enter Page Name">
                               <option <?php if($page->status == 1){echo 'selected';} ?> value="1">Active</option>
                               <option <?php if($page->status == 0){echo 'selected';} ?> value="0">Deactive</option>
                            </select>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-4">
                      <div class="form-group">
                         <label for="inputEmail" class="col-sm-12 col-form-label">Showing Position</label>
                         <div class="col-sm-12">
                            <select  class="form-control"  name="showing" placeholder="Enter Page Name" required>
                               <option <?php if($page->showing == 1){echo 'selected';} ?> value="1">Quick Link</option>
                               <option <?php if($page->showing == 3){echo 'selected';} ?> value="3">Legal & Info</option>
                               <option <?php if($page->showing == 4){echo 'selected';} ?> value="4">Our Courses</option>
                            </select>
                         </div>
                      </div>
                   </div>
                   <div class="col-md-4">
                      <div class="form-group">
                         <img src="<?php echo base_url() ?><?php echo $page->image; ?>" width="150px" style="border:1px solid black">
                       </div>
                    </div>
                   <input type="hidden" class="form-control"  name="page_id"  value="<?php echo $page->id ?>">
                   <div class="col-md-12">
                    <div class="form-group">
                       <div class="col-sm-12">
                          <button type="submit" class="btn btn-success">Update</button>
                       </div>
                    </div>
                 </div>
                </div>
                
                <?php echo form_close() ?>
              </div>
            </div>
          </div>
      </div>
    </section>
    
  </div>
 <script type="text/javascript">
   $( "body" ).removeClass( "sidebar-open" ).addClass( "sidebar-closed sidebar-collapse" );
 </script>