<?php $__env->startSection('styles'); ?>

<?php $__env->stopSection(); ?>



<?php $__env->startSection('content'); ?>

<!-- ============================================================== -->

<!-- Start right Content here -->

<!-- ============================================================== -->

<div class="content-page">

    <!-- Start content -->

    <div class="content">

        <div class="container-fluid">


          <!-- add new couses row -->

                      <div class="row">

                          <div class="col-lg-12">

                              <div class="card">

                                  <div class="card-body">

                                      <h4 class="mt-0 header-title"> Edit Course ( <?php echo e($c->name); ?>)</h4>

                                      <div class="card">
                                          <form action="<?php echo e(route('admin.editCourse')); ?>" method="post">
                                            <input type="hidden" value="<?php echo e($c->id); ?>" name="course_id"/>
                                              <div class="card-body">
          										<h4 class="m-b-20 text-danger addcourse-heading">BASIC DETAILS</h4>

                              <div class="form-group row">

                                <label class="col-sm-2 col-form-label">Grade</label>
          <div class="col-sm-10">
                               <select required name="grade" class="form-control">

                                 <?php $__currentLoopData = $grades; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $grade): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                 <option value="<?php echo e($grade->id); ?>" <?php if($c->grade->id == $grade->id): ?> checked <?php endif; ?>><?php echo e($grade->name); ?></option>

                                 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                               </select>
          </div>
                              </div>

                                                  <div class="form-group row">
                                                      <label for="example-text-input" class="col-sm-2 col-form-label">Course Title</label>
                                                      <div class="col-sm-10">
                                                          <input class="form-control" required type="text" value="<?php echo e($c->name); ?>" name="name">
                                                      </div>
                                                  </div>
                                                  <div class="form-group row">
                                                      <label for="example-search-input" class="col-sm-2 col-form-label">Short Description</label>
                                                      <div class="col-sm-10">
                                                          <textarea required="required"  name="description" class="form-control" rows="5"><?php echo e($c->description); ?></textarea>
                                                      </div>
                                                  </div>
                                                  <div class="form-group row">
                                                      <label for="example-email-input" class="col-sm-2 col-form-label">Price($)</label>
                                                      <div class="col-sm-2">
                                                          <input class="form-control" type="number" value="<?php echo e($c->price); ?>" name="price" >
                                                      </div>
          											 <label for="example-url-input" class="col-sm-2 col-form-label">Prerequisite</label>
                                                      <div class="col-sm-6">
                                                          <input class="form-control" type="text" value="<?php echo e($c->prerequisite); ?>" name="prerequisite">
                                                      </div>
                                                  </div>



          										<div class="form-group row">
                                                      <label for="example-email-input" class="col-sm-2 col-form-label">Department</label>
                                                      <div class="col-sm-4">
                                                          <input class="form-control" type="text" value="<?php echo e($c->department); ?>" name="department" >
                                                      </div>
          											 <label for="example-url-input" class="col-sm-2 col-form-label">Course Developer</label>
                                                      <div class="col-sm-4">
                                                          <input class="form-control" type="text" value="<?php echo e($c->course_developer); ?>" name="course_developer" >
                                                      </div>
                                                  </div>
          										<div class="form-group row">
                                                      <label for="example-email-input" class="col-sm-2 col-form-label"> Development Date</label>
                                                      <div class="col-sm-4">
                                                          <input class="form-control" type="text" value="<?php echo e($c->development_date); ?>" name="development_date" >
                                                      </div>
          											 <label for="example-url-input" class="col-sm-2 col-form-label">Revision Date</label>
                                                      <div class="col-sm-4">
                                                          <input class="form-control" type="text" value="<?php echo e($c->revision_date); ?>" name="revision_date" >
                                                      </div>
                                                  </div>
          										<div class="form-group row">
                                                      <label for="example-email-input" class="col-sm-2 col-form-label"> Course Reviser</label>
                                                      <div class="col-sm-4">
                                                          <input class="form-control" type="text" value="<?php echo e($c->course_reviser); ?>" name="course_reviser" >
                                                      </div>
          											 <label for="example-url-input" class="col-sm-2 col-form-label">Course Type</label>
                                                      <div class="col-sm-4">
                                                          <input class="form-control" type="text" value="<?php echo e($c->course_type); ?>" name="course_type" >
                                                      </div>
                                                  </div>
          										<div class="form-group row">
                                                      <label for="example-email-input" class="col-sm-2 col-form-label">Ministry Course Code</label>
                                                      <div class="col-sm-4">
                                                          <input class="form-control" type="text" value="<?php echo e($c->ministry_course_code); ?>" name="ministry_course_code" >
                                                      </div>
          											 <label for="example-url-input" class="col-sm-2 col-form-label">Credit Value</label>
                                                      <div class="col-sm-4">
                                                          <input class="form-control" type="text" value="<?php echo e($c->credit_value); ?>" name="credit_value" >
                                                      </div>
                                                  </div>
          										<div class="form-group row">
                                                      <label for="example-email-input" class="col-sm-3 col-form-label">Ministry Curriculum Policy Doc</label>
                                                      <div class="col-sm-9">
                                                          <input class="form-control" type="text" value="<?php echo e($c->ministry_curriculum_policy_doc); ?>" name="ministry_curriculum_policy_document" >
                                                      </div>

                                                  </div>


          										<h4 class="m-b-20 text-danger addcourse-heading">OVERALL CURRICULUM EXPECTATIONS</h4>

          										<div  class="input_fields_wrap">
                                <!-- <div class="row">	<div class="col-sm-2">
                                                            <a class="float-right add_field_button m-l-10"><i class="ion-plus text-success"></i> Add more</a>&nbsp;&nbsp; <a class="float-right remove_field_button "><i class="ion-trash-a text-danger"></i> Delete</a>
                                                        </div></div> -->
                                <?php $__currentLoopData = $c->expectations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ec): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          										<div class="form-group row">
                                                      <label for="example-text-input" class="col-sm-2 col-form-label">Title</label>
                                                      <div class="col-sm-8">
                                                          <input class="form-control" value="<?php echo e($ec->title); ?>" type="text" name="overall[]" />
                                                            <input class="form-control" type="hidden" value="<?php echo e($ec->id); ?>" name="overallid[]" />
                                                      </div>

                                                  </div>

          										<div class="form-group row">
                                                      <label for="example-text-input"  class="col-sm-2 col-form-label">Detail</label>
                                                      <div class="col-sm-8">
                                                         <textarea required="" class="form-control" value="<?php echo e($ec->description); ?>" rows="5" name="overdetail[]"><?php echo e($ec->description); ?></textarea>
                                                      </div>
          											<div class="col-sm-2">

                                                      </div>
                                                  </div>
                                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

          										</div>



          										<h4 class="m-b-20 text-danger addcourse-heading">UNIT OUTLINE <span for="example-url-input" class="col-sm-12 text-right col-form-label">Total Approx. Time <span><strong>22 hours</strong></span></span>
                                                      </h4>
                                                      <?php $__currentLoopData = $c->outlines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $occc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                 <div class="form-group row">
                                                      <label for="example-email-input" class="col-sm-1 col-form-label">Unit</label>
                                                      <div class="col-sm-6">
                                                          <input class="form-control" value="<?php echo e($occc->title); ?>" type="text" name="unittitle[]" >
                                                          <input class="form-control"  value="<?php echo e($occc->id); ?>" type="hidden" name="uniid[]" >
                                                      </div>
                                                      <label for="example-url-input" class="col-sm-2 col-form-label">Approx. Time in hours</label>
                                                                           <div class="col-sm-3">
                                                                               <input class="form-control "  value="<?php echo e($occc->timeline); ?>" type="text" name="unithour[]" >
                                                                           </div>
                                                  </div>
          										 <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>




          										<h4 class="m-b-20 text-danger addcourse-heading">UNIT DESCRIPTION</h4>
  <?php $__currentLoopData = $c->outlines_considerations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $connn): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          										<div  class="input_fields_wrap1">

          										<div class="form-group row">
                                                      <label for="example-text-input" class="col-sm-2 col-form-label">Unit Title</label>
                                                      <div class="col-sm-8">
                                                          <input class="form-control" value="<?php echo e($connn->title); ?>" type="text" name="contitle[]" >
                                                                  <input class="form-control" value="<?php echo e($connn->id); ?>" type="hidden" name="conid[]" >
                                                      </div>
          											<!-- <div class="col-sm-2">
                                                          <a class="float-right add_field_button1 m-l-10"><i class="ion-plus text-success"></i> Add more</a>&nbsp;&nbsp; <a class="float-right remove_field_button1 "><i class="ion-trash-a text-danger"></i> Delete</a>
                                                      </div> -->
                                                  </div>

          										<div class="form-group row">
                                                      <label for="example-text-input" class="col-sm-2 col-form-label">Detail</label>
                                                      <div class="col-sm-8">
                                                         <textarea required="" class="form-control" name="condetail[]" rows="5"><?php echo e($connn->description); ?></textarea>
                                                      </div>
          											<div class="col-sm-2">

                                                      </div>
                                                  </div>


          										</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

          										<h4 class="m-b-20 text-danger addcourse-heading">PROGRAM CONSIDERATIONS </h4>
                                                 <div class="form-group row">
                                                      <h5>Assessment and Evaluation</h5>

                                                      <div class="col-sm-12 page-wrapper box-content">

                                                      <textarea id="" class="form-control content"  name="evaluation"><?php echo e($c->evaluation); ?></textarea>

                                                      </div>
                                                  </div>

                                                            <div class="form-group row">
                                                      <h5>Teaching & Learning Strategies</h5>

                                                      <div class="col-sm-12 page-wrapper box-content">
                                                          <textarea class="form-control content2"  type="text" name="satrategy" ><?php echo e($c->satrategy); ?></textarea>
                                                      </div>
                                                  </div>



          										<div class="form-group mb-0">
                                                          <div>
                                                              <button type="submit" class="btn btn-primary waves-effect waves-light">
                                                                  Submit
                                                              </button>
                                                              <button type="reset" class="btn btn-secondary waves-effect m-l-5">
                                                                  Cancel
                                                              </button>
                                                          </div>
                                                      </div>
                                                      <?php echo e(csrf_field()); ?>

                                                    </form>
                                              </div>




                                          </div>

                                  </div>

                              </div>

                          </div>

                      </div>

                      <!-- end add new couses row -->


        </div> <!-- container-fluid -->



    </div> <!-- content -->



    <footer class="footer">

        © 2020 - 2021  The Educators Academy

    </footer>

</div>






<?php $__env->stopSection(); ?>



<?php $__env->startSection('scripts'); ?>



<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\freelance\school\school\resources\views/admin/editcourse.blade.php ENDPATH**/ ?>