No Description

assessment_report.blade.php 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if($role==1)
  4. @include('local.managers.admins._navigation')
  5. @elseif($role==2)
  6. @include('local.managers.sCoords._navigation')
  7. @elseif($role==3)
  8. @include('local.managers.pCoords._navigation')
  9. @else
  10. @include('local.professors._navigation')
  11. @endif
  12. @stop
  13. @section('main')
  14. <div class="row">
  15. <div class="col-md-12">
  16. <p>This report contains performance information for all your Program's assessed courses during the following semester(s):</p>
  17. <ul>
  18. @foreach (Session::get('semesters_info') as $semester_info)
  19. <li>{{ $semester_info }}</li>
  20. @endforeach
  21. </ul>
  22. <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
  23. <table class="table table-condensed table-bordered datatable">
  24. <thead>
  25. <tr>
  26. <th>Course</th>
  27. <th>Program</th>
  28. <th>Findings</th>
  29. </tr>
  30. </thead>
  31. <tfoot>
  32. <tr class="column-search">
  33. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  34. <th><select class="column-search-select form-control"><option value=""></option></select></th>
  35. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  36. </tr>
  37. </tfoot>
  38. <tbody>
  39. <!-- For each grouped course -->
  40. @foreach($courses as $index2=>$course)
  41. <!-- If grouped course has activities that evaluate the outcome -->
  42. <?php
  43. $sections_evaluating = Course::has('activities')
  44. ->whereNotNull('outcomes_attempted')
  45. ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
  46. ->with(array('activities'=>function($query) use(&$outcome){
  47. $query->whereNotNull('outcomes_attempted');
  48. $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
  49. ->where('code', $course->code)->where('number',$course->number)
  50. ->whereIn('semester_id', Session::get('semesters_ids'))
  51. ->get();
  52. ?>
  53. @if(count($sections_evaluating))
  54. <tr>
  55. <td>
  56. {{ $course->code}}-{{ $course->number }} ({{ $course->semester->code }})
  57. </td>
  58. <td>{{ $course->program->name }}</td>
  59. <td>
  60. <!-- For each section -->
  61. @foreach($sections_evaluating as $index3 => $section)
  62. <h5><u>Instance {{ $section->section }}</u></h5>
  63. <!-- For each activity in the section -->
  64. @foreach($section->activities as $index4 => $activity)
  65. <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
  66. @if(array_key_exists($outcome->id, (array)$activity->o_att_array) && $activity->o_att_array[$outcome->id] >=1)
  67. <h5>Measure {{ $index4 + 1 }}</h5>
  68. <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>". At the time of assessment there were {{ $activity->assessed_students()->count() }} students in the section.</p>
  69. <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>
  70. <p>The results for each criterion were as follows:</p>
  71. <table class="table table-condensed table-bordered datatable">
  72. @foreach((array)$activity->cap_array as $index5 => $cap)
  73. <?php
  74. $criterion = Criterion::find($index5);
  75. ?>
  76. @if($criterion['outcome_id'] == $outcome->id && $cap >= $activity->rubric->expected_percentage )
  77. <tr>
  78. <td>{{ $criterion['name'] }}</td>
  79. <td class="col-md-1 success">{{ $cap }}%</td>
  80. </tr>
  81. @elseif($criterion['outcome_id'] == $outcome->id && $cap < $activity->rubric->expected_percentage )
  82. <tr>
  83. <td>{{ $criterion['name'] }}</td>
  84. <td class="col-md-1 danger">{{ $cap }}%</td>
  85. </tr>
  86. @endif
  87. @endforeach
  88. </table>
  89. <ul>
  90. </ul>
  91. <p>
  92. <?php
  93. $o_att_array = $activity->o_att_array;
  94. $o_ach_array = $activity->o_ach_array;
  95. $percentage = ($o_ach_array[$outcome->id]/$o_att_array[$outcome->id])*100;
  96. ?>
  97. @if($percentage >= 100)
  98. 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>.
  99. @elseif ($percentage < 1)
  100. 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>.
  101. @elseif ($percentage >= $outcome->expected_outcome)
  102. 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>.
  103. @elseif ($percentage < $outcome->expected_outcome)
  104. 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>.
  105. @endif
  106. </p>
  107. <h5><strong>Transforming Actions</strong></h5>
  108. @if($activity->transforming_actions)
  109. {{ $activity->transforming_actions }}
  110. @else
  111. None
  112. @endif
  113. @else
  114. <h5>Measure {{ $index4 + 1 }}</h5>
  115. <em>Outcome not measured.</em>
  116. @endif
  117. @endforeach
  118. @endforeach
  119. </td>
  120. </tr>
  121. @else
  122. <tr>
  123. <td>
  124. <h4>{{ $course->code}}-{{ $course->number }}</h4>
  125. </td>
  126. <td>
  127. <p>No assessment.</p>
  128. </td>
  129. </tr>
  130. @endif
  131. @endforeach
  132. </tbody>
  133. </table>
  134. </div>
  135. </div>
  136. @stop
  137. @section('included-js')
  138. @include('global._datatables_js')
  139. @stop
  140. @section('javascript')
  141. // Hide tables that have no courses
  142. $('.no-courses').each(function() {
  143. //$(this).closest('tr').hide();
  144. });
  145. // Hide tables with empty bodies
  146. $('tbody').each(function() {
  147. if($(this).children(':visible').length==0)
  148. {
  149. //$(this).closest('table').hide();
  150. }
  151. });
  152. // ----------------------------------------------------------------------------
  153. // Events
  154. //
  155. $('.to-top').on('click', function(e) {
  156. e.preventDefault();
  157. $(this).scrollTop(0);
  158. $('html').animate({scrollTop:0}, 1);
  159. $('body').animate({scrollTop:0}, 1);
  160. })
  161. @stop