No Description

assessment_report.blade.php 13KB

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