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

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

<!-- Start main-content -->
<div class="main-content">
  <!-- Section: inner-header -->
  <section class="inner-header divider parallax layer-overlay overlay-dark-5" data-bg-img="<?php echo e(asset('assets/images/bg/bg6.jpg')); ?>" style="background-image: url(&quot;images/bg/bg6.jpg&quot;); background-position: 50% 58px;">
    <div class="container pt-30 pb-40">
      <!-- Section Content -->
      <div class="section-content">
        <div class="row">
          <div class="col-md-12">
            <h2 class="title text-white text-center">Course: <?php echo e($course->name); ?></h2>
          </div>
        </div>
      </div>
    </div>
  </section>
  <section>
    <div class="container">
      <div class="row">
        <div class="col-md-12">
          <div class="row mb-15">
            <div class="col-sm-6 col-md-4">
              <div class="thumb"> <img alt="featured project" src="images/project/lg1.jpg" class="img-fullwidth"></div>
            </div>
            <div class="col-sm-6 col-md-8">
              <h2 class="line-bottom line-bottom2 mt-0 mt-sm-20"><?php echo e($course->name); ?></h2>
              <p><?php echo e($course->description); ?></p>
              <a class="btn btn-danger  btn-md text-uppercase mt-10" href="<?php echo e(route('registration', Crypt::encrypt($course->id))); ?>">Register now</a>
            </div>
          </div>
          <div class="row mb-15">
            <ul class="list list-divider list-border2">
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Department: </strong> <?php echo e($course->department); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Course Developer: </strong> <?php echo e($course->course_developer); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Development Date:</strong> <?php echo e($course->delopment_date); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Revision Date:</strong> <?php echo e($course->revision_date); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Course Title:</strong> <?php echo e($course->name); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Course Reviser:</strong> <?php echo e($course->course_reviser); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Grade: </strong> <?php echo e($course->grade->name); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Course Type:</strong> <?php echo e($course->course_type); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Ministry Course Code:</strong> <?php echo e($course->ministry_course_code); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Credit Value:</strong> <?php echo e($course->credit_value); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Prerequisite: </strong> <?php echo e($course->prerequisite); ?></li>
              <li><i class="fa fa-check-square-o mr-10 text-black-light"></i> <strong>Ministry Curriculum Policy Document:</strong> <?php echo e($course->ministry_curriculum_policy_doc); ?></li>
            </ul>
          </div>
          <div class="row mb-15">
            <h3 class="text-uppercase mt-15">Overall <span class="text-theme-color-2">Curriculum Expectations </span></h3>
            <div class="row">
              <div class="col-md-3 pr-0">
                <div class="vertical-tab">
                  <ul class="nav nav-tabs">
                    <?php $__currentLoopData = $course->expectations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ce): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li class=" <?php if($loop->iteration == 1): ?> active <?php endif; ?>"><a href="#<?php echo e($ce->title); ?>_<?php echo e($ce->id); ?>" data-toggle="tab"><?php echo e($ce->title); ?></a></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                  </ul>
                </div>
              </div>
              <div class="col-md-9 pl-0">
                <div class="tab-content">
                  <?php $__currentLoopData = $course->expectations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ee): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <div class="tab-pane fade  <?php if($loop->iteration == 1): ?> in active <?php endif; ?>" id="<?php echo e($ee->title); ?>_<?php echo e($ee->id); ?>">
                    <div class="row">
                      <div class="col-md-12">
                        <h4 class="text-danger"><?php echo e($ee->title); ?></h4>
                        <ul>
                          <?php echo e($ee->description); ?>

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

                </div>
              </div>
            </div>
          </div>
          <div class="row mb-15">
            <h3 class="text-uppercase mt-15">Unit <span class="text-theme-color-2">Outline </span></h3>
            <div class="col-md-12">
              <div data-example-id="contextual-table" class="bs-example row">
                <table class="table">
                  <thead>
                    <tr>
                      <th>#</th>
                      <th>Unit</th>
                      <th>Approx. Time</th>

                    </tr>
                  </thead>
                  <tbody>
                    <?php $msum = 0; ?>
                    <?php $__currentLoopData = $course->outlines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$oo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <?php if($oo->title != null && $oo->title != ""): ?>
                    <tr class="<?php if($key % 2 == 0): ?> active  <?php endif; ?>">
                      <th scope="row"><?php echo e($loop->iteration); ?></th>
                      <td> <?php echo e($oo->title); ?></td>
                      <td><?php echo e($oo->timeline); ?> Hours</td>
                    <?php  $msum = $msum + $oo->timeline; ?>
                    </tr>
                    <?php endif; ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    <tr class="danger">
                      <th scope="row"></th>
                      <td><strong>Total</strong></td>
                      <td><strong><?php echo e($msum); ?> Hours</strong></td>

                    </tr>

                  </tbody>
                </table>
              </div>
            </div>
          </div>

          <div class="row mb-15">
            <h3 class="text-uppercase mt-15">Unit <span class="text-theme-color-2">Description </span></h3>
            <div class="row">
              <div class="col-md-3 pr-0">
                <div class="vertical-tab">
                  <ul class="nav nav-tabs">
                    <?php $__currentLoopData = $course->outlines_considerations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ocs): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li class="<?php if($loop->iteration == 1): ?> active <?php endif; ?>"><a href="#<?php echo e($ocs->title); ?>_<?php echo e($ocs->id); ?>" data-toggle="tab"><strong><?php echo e($ocs->title); ?></strong><br/></a></li>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                  </ul>
                </div>
              </div>
              <div class="col-md-9 pl-0">
                <div class="tab-content">
                    <?php $__currentLoopData = $course->outlines_considerations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $occ): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <div class="tab-pane fade <?php if($loop->iteration ==1): ?> in active <?php endif; ?>" id="<?php echo e($occ->title); ?>_<?php echo e($occ->id); ?>">
                    <div class="row">
                      <div class="col-md-12">
                        <h4 class="text-danger"><?php echo e($occ->title); ?></h4>
                        <p><?php echo e($occ->description); ?></p>
                      </div>
                    </div>
                  </div>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


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

          <div class="row mb-15">
            <h3 class="text-uppercase mt-15">Program <span class="text-theme-color-2">Considerations </span></h3>
            <div class="col-md-12 pt-20">

            <ul id="myTab2" class="nav nav-pills boot-tabs row">
              <li class="active"><a href="#assesment" data-toggle="tab" aria-expanded="true">Assessment and Evaluation</a></li>
              <li class=""><a href="#learning" data-toggle="tab" aria-expanded="false">Teaching & Learning Strategies</a></li>

            </ul>
            <div id="myTabContent2" class="tab-content tab-content2 row">
              <div class="tab-pane fade active in" id="assesment">
              <h3>Assessment and Evaluation</h3>
              <?php echo $course->evaluation; ?>

              </div>




              <div class="tab-pane fade" id="learning">
              <h3>Teaching & Learning Strategies</h3>
                <?php echo $course->satrategy; ?>

              </div>


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

          <div class="col-md-6 col-md-offset-3 mt-10 mb-20"><a href="<?php echo e(route('registration', Crypt::encrypt($course->id))); ?>" class="btn btn-primary btn-xlg btn-block">Register Now for a Course</a></div>
        </div>
      </div>
    </div>
  </section>
</div>
<!-- end main-content -->


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

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

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

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