<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">Edit Course</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="#">Admission</a></li>
                  <li class="breadcrumb-item active">Edit Course </li>
               </ol>
            </div>
         </div>
      </div>
   </div>
   <section class="content">
      <div class="container-fluid">
         <div class="card card-default">
            <div class="card-header">
               <h3 class="card-title">Edit Course Details</h3>
               <div class="card-tools">
                  <a href="<?php echo base_url()?>/admin/admission/view_all_course" class="btn btn-success btn-sm"><i class="fa fa-eye" aria-hidden="true"></i> View All Course</a>
               </div>
            </div>
            <?php echo form_open('admin/admission/update_course/'.$course->course_code); ?>
            <div class="card-body">
               <div class="row">
                  <div class="col-md-8">
                     <div class="form-group">
                        <label for="inputEmail" class="col-sm-12 col-form-label">Course Name (पाठ्यक्रम का नाम)<span class="required">*</span></label>
                        <div class="col-sm-12">
                           <input type="text" class="form-control"  name="course_name"  required="required" placeholder="Enter Course Name" value="<?php echo $course->course_name; ?>">
                        </div>
                     </div>
                  </div>
                  <div class="col-md-4">
                     <div class="form-group">
                        <label for="inputEmail" class="col-sm-12 col-form-label">Course Duration (in Month)  पाठ्यक्रम अवधि (माह में)<span class="required">*</span> </label>
                        <div class="col-sm-12">
                           <input type="number" class="form-control"  name="course_duration" max="1" required="required" placeholder="Enter Course Duration Ex. 7" value="<?php echo $course->course_duration; ?>">
                           <small>(If Course Duration is 7 Month Enter Only 7 and if course duration is 1.5 year Enter 17 Month )</small>
                        </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>
   </section>
</div>
