No Description

assessment_report.blade.php 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if (Auth::user()->role == 1)
  4. @include('local.managers.admins._new_navigation')
  5. @elseif(Auth::user()->role == 2)
  6. @include('local.managers.sCoords._new_navigation')
  7. @elseif(Auth::user()->role == 3)
  8. @include('local.managers.pCoords._new_navigation')
  9. @endif
  10. @stop
  11. @section('main')
  12. <div class="row">
  13. <div class="col-md-12">
  14. <p>This report contains performance information for all your Program's assessed courses during the following
  15. semester(s):</p>
  16. <ul>
  17. @foreach (Session::get('semesters_info') as $semester_info)
  18. <li>{{ $semester_info }}</li>
  19. @endforeach
  20. </ul>
  21. @if ($program)
  22. <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
  23. <table class="table table-condensed table-bordered">
  24. <thead>
  25. <tr>
  26. <th colspan="12">
  27. <h4 id="{{ $outcome->id }}-{{ $program->school->id }}" class="school table-header">
  28. {{ $program->school->name }}: {{ $program->name }}
  29. </h4>
  30. </th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. @if ($program->assessesOutcome($outcome->id))
  35. <!-- For each grouped course -->
  36. @foreach ($program->courses as $index2 => $course)
  37. <!-- If grouped course has activities that evaluate the outcome -->
  38. <?php
  39. /*$sections_evaluating = Course::has('activities')
  40. ->whereNotNull('outcomes_attempted')
  41. ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
  42. ->with(array('activities'=>function($query) use(&$outcome){
  43. $query->whereNotNull('outcomes_attempted');
  44. $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
  45. ->where('code', $course->code)->where('number',$course->number)
  46. ->whereIn('semester_id', Session::get('semesters_ids'))
  47. ->get();*/
  48. $sections_evaluating = Course::has('activities')
  49. //->whereNotNull('outcomes_attempted')
  50. //->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
  51. ->with([
  52. 'activities' => function ($query) use (&$outcome, &$course) {
  53. $activities = DB::table('activities')
  54. ->join('activity_criterion', 'activity_criterion.activity_id', '=', 'activities.id')
  55. ->join('assessments', 'assessments.activity_criterion_id', '=', 'activity_criterion.id')
  56. ->join('criterion_objective_outcome', 'activity_criterion.criterion_id', '=', 'criterion_objective_outcome.criterion_id')
  57. ->where('course_id', $course->id)
  58. ->where('criterion_objective_outcome.outcome_id', $outcome->id)
  59. ->select('activity_id')
  60. ->lists('activity_id');
  61. //$query->whereNotNull('outcomes_attempted');
  62. //$query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');
  63. $query->whereIn('id', $activities);
  64. },
  65. ])
  66. ->where('code', $course->code)
  67. ->where('number', $course->number)
  68. ->whereIn('semester_id', Session::get('semesters_ids'))
  69. ->get();
  70. ?>
  71. @if (count($sections_evaluating))
  72. <tr>
  73. <td>
  74. <h4>{{ $course->code }}-{{ $course->number }}</h4>
  75. </td>
  76. <td>
  77. <!-- For each section -->
  78. @foreach ($sections_evaluating as $index3 => $section)
  79. <h5><u>Instance {{ $index3 + 1 }}</u></h5>
  80. <!-- For each activity in the section -->
  81. @foreach ($section->activities as $index4 => $activity)
  82. <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
  83. @if ($activity->draft == 0 && $activity->diagnostic == 0 && array_key_exists($outcome->id, (array) $activity->o_att_array) && $activity->o_att_array[$outcome->id] >= 1)
  84. <h5>Measure {{ $index4 + 1 }}</h5>
  85. <p>A rubric was used in the
  86. {{ $section->code }}-{{ $section->number }}
  87. ({{ $section->name }}) course
  88. ({{ date('M Y', strtotime($course->updated_at)) }}) to assess
  89. students’ <u>{{ strtolower($outcome->name) }}</u> in the
  90. activity: "<strong>{{ $activity->name }}</strong>". N=
  91. {{ count($section->students) }}. </p>
  92. <p>The expected performance level was that
  93. <strong>{{ $activity->rubric[0]->expected_percentage }}%</strong>
  94. of students participating in the activity would score
  95. <strong>{{ $activity->rubric[0]->expected_points }}
  96. points</strong> or more in the 1-8 point scale used.</p>
  97. <p>The results for each criterion were as follows:</p>
  98. <table class="table table-condensed table-bordered">
  99. @foreach ((array) $activity->cap_array as $criterion_id => $criterion)
  100. @if (in_array($outcome->id, json_decode($criterion->outcome_id)) /*== $outcome->id*/ && $criterion->score_percentage >= $activity->rubric[0]->expected_percentage)
  101. <tr>
  102. <td>{{ $criterion->name }}</td>
  103. <td class="col-md-1 success">
  104. {{ $criterion->score_percentage }}%</td>
  105. </tr>
  106. @elseif(in_array($outcome->id, json_decode($criterion->outcome_id)) && $criterion->score_percentage < $activity->rubric[0]->expected_percentage)
  107. <tr>
  108. <td>{{ $criterion->name }}</td>
  109. <td class="col-md-1 danger">
  110. {{ $criterion->score_percentage }}%</td>
  111. </tr>
  112. @endif
  113. @endforeach
  114. </table>
  115. <ul>
  116. </ul>
  117. <p>
  118. <?php
  119. $o_att_array = $activity->o_att_array;
  120. $o_ach_array = $activity->o_ach_array;
  121. $percentage = ($o_ach_array[$outcome->id] / $o_att_array[$outcome->id]) * 100;
  122. ?>
  123. @if ($percentage >= 100)
  124. The expected goal was reached in <strong>all</strong> (100%)
  125. of the criteria assessed. Therefore, the goal for this
  126. outcome ({{ $outcome->expected_outcome }}%) was
  127. <strong>met</strong>.
  128. @elseif ($percentage < 1)
  129. The expected goal was reached in <strong>none</strong> (0%)
  130. of the criteria assessed. Therefore, the goal for this
  131. outcome ({{ $outcome->expected_outcome }}%) was
  132. <strong>not met</strong>.
  133. @elseif ($percentage >= $outcome->expected_outcome)
  134. The expected goal was reached in
  135. <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of
  136. the <strong>{{ $o_att_array[$outcome->id] }}</strong>
  137. ({{ round($percentage, 2) }}%) criteria assessed.
  138. Therefore, the goal for this outcome
  139. ({{ $outcome->expected_outcome }}%) was
  140. <strong>met</strong>.
  141. @elseif ($percentage < $outcome->expected_outcome)
  142. The expected goal was reached in
  143. <strong>{{ $o_ach_array[$outcome->id] }}</strong> out of
  144. the <strong>{{ $o_att_array[$outcome->id] }}</strong>
  145. ({{ round($percentage, 2) }}%) criteria assessed.
  146. Therefore, the goal for this outcome
  147. ({{ $outcome->expected_outcome }}%) was <strong> not
  148. met</strong>.
  149. @endif
  150. </p>
  151. <h5><strong>Transformative Actions</strong></h5>
  152. @if ($activity->transforming_actions)
  153. {{ $activity->transforming_actions }}
  154. @else
  155. None
  156. @endif
  157. <br><br>
  158. @elseif($activity->draft == 0)
  159. <h5>Measure {{ $index4 + 1 }}</h5>
  160. <em>Outcome not measured.</em>
  161. @else
  162. @endif
  163. @endforeach
  164. @endforeach
  165. </td>
  166. </tr>
  167. @else
  168. <tr>
  169. <td>
  170. <h4>{{ $course->code }}-{{ $course->number }}</h4>
  171. </td>
  172. <td>
  173. <h4>No assessment.</h4>
  174. </td>
  175. </tr>
  176. @endif
  177. @endforeach
  178. @else
  179. <tr>
  180. <td id="{{ $outcome->id }}-{{ $program->school->id }}-{{ $program->id }}"
  181. class="program no-courses col-md-3">{{ $program->name }}</td>
  182. <td class="col-md-9">
  183. This program does not assess {{ $outcome->name }}.
  184. </td>
  185. </tr>
  186. @endif
  187. </tbody>
  188. </table>
  189. @else
  190. <p class="lead">No professors have assessed courses for your program during the selected
  191. semesters.</p>
  192. @endif
  193. </div>
  194. </div>
  195. @stop
  196. @section('javascript')
  197. @stop