No Description

assessment_report.blade.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. ?>
  48. @if(count($sections_evaluating))
  49. <tr>
  50. <td>
  51. <h4>{{ $course->code}}-{{ $course->number }}</h4>
  52. </td>
  53. <td>
  54. <!-- For each section -->
  55. @foreach($sections_evaluating as $index3 => $section)
  56. <h5><u>Instance {{ $index3 + 1}}</u></h5>
  57. <!-- For each activity in the section -->
  58. @foreach($section->activities as $index4 => $activity)
  59. <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
  60. @if(array_key_exists($outcome->id, (array)$activity->o_att_array) && $activity->o_att_array[$outcome->id] >=1)
  61. <h5>Measure {{ $index4 + 1 }}</h5>
  62. <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>
  63. <p>The expected performance level was that <strong>{{ $activity->rubric->expected_percentage }}%</strong> of students participating in the activity would score <strong>{{ $activity->rubric->expected_points }} points</strong> or more in the 1-8 point scale used.</p>
  64. <p>The results for each criterion were as follows:</p>
  65. <table class="table table-condensed table-bordered">
  66. @foreach((array)$activity->cap_array as $index5 => $cap)
  67. <?php
  68. $criterion = Criterion::find($index5);
  69. ?>
  70. @if($criterion['outcome_id'] == $outcome->id && $cap >= $activity->rubric->expected_percentage )
  71. <tr>
  72. <td>{{ $criterion['name'] }}</td>
  73. <td class="col-md-1 success">{{ $cap }}%</td>
  74. </tr>
  75. @elseif($criterion['outcome_id'] == $outcome->id && $cap < $activity->rubric->expected_percentage )
  76. <tr>
  77. <td>{{ $criterion['name'] }}</td>
  78. <td class="col-md-1 danger">{{ $cap }}%</td>
  79. </tr>
  80. @endif
  81. @endforeach
  82. </table>
  83. <ul>
  84. </ul>
  85. <p>
  86. <?php
  87. $o_att_array = $activity->o_att_array;
  88. $o_ach_array = $activity->o_ach_array;
  89. $percentage = ($o_ach_array[$outcome->id]/$o_att_array[$outcome->id])*100;
  90. ?>
  91. @if($percentage >= 100)
  92. 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>.
  93. @elseif ($percentage < 1)
  94. 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>.
  95. @elseif ($percentage >= $outcome->expected_outcome)
  96. 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>.
  97. @elseif ($percentage < $outcome->expected_outcome)
  98. 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>.
  99. @endif
  100. </p>
  101. <h5><strong>Transforming Actions</strong></h5>
  102. @if($activity->transforming_actions)
  103. {{ $activity->transforming_actions }}
  104. @else
  105. None
  106. @endif
  107. <br><br>
  108. @else
  109. <h5>Measure {{ $index4 + 1 }}</h5>
  110. <em>Outcome not measured.</em>
  111. @endif
  112. @endforeach
  113. @endforeach
  114. </td>
  115. </tr>
  116. @else
  117. <tr>
  118. <td>
  119. <h4>{{ $course->code}}-{{ $course->number }}</h4>
  120. </td>
  121. <td>
  122. <h4>No assessment.</h4>
  123. </td>
  124. </tr>
  125. @endif
  126. @endforeach
  127. @else
  128. <tr>
  129. <td id="{{ $outcome->id }}-{{ $program->school->id }}-{{ $program->id }}" class="program no-courses col-md-3" >{{ $program->name }}</td>
  130. <td class="col-md-9">
  131. This program does not assess {{ $outcome->name }}.
  132. </td>
  133. </tr>
  134. @endif
  135. </tbody>
  136. </table>
  137. @else
  138. <p class="lead">No professors have assessed courses for your program during the selected semesters.</p>
  139. @endif
  140. </div>
  141. </div>
  142. @stop
  143. @section('javascript')
  144. @stop