Без опису

assessment_report_backup.blade.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @include('local.managers.admins._navigation')
  4. @stop
  5. @section('main')
  6. <div class="row">
  7. <div class="col-md-12">
  8. <p>This report contains performance information for all Schools and Programs with assessed courses during the following semester(s):</p>
  9. <ul>
  10. @foreach (Session::get('semesters_info') as $semester_info)
  11. <li>{{ $semester_info }}</li>
  12. @endforeach
  13. </ul>
  14. <p>Unlinked programs did not assess this outcome.</p>
  15. <h3>Table of Contents</h3>
  16. <ol id="table-of-contents" class="upper-roman">
  17. </ol>
  18. <h3 id="{{ $outcome->id }}" class="outcome">{{ $outcome->name }}</h3>
  19. @foreach ($schools as $school)
  20. <table class="table table-condensed table-bordered">
  21. <thead>
  22. <tr>
  23. <th colspan="12">
  24. <h4 id="{{ $outcome->id }}-{{ $school->id }}" class="school table-header" >{{ $school->name }}
  25. </h4>
  26. <a class="to-top" href="">
  27. <span class="glyphicon glyphicon-arrow-up hidden-print"></span>
  28. To Top
  29. </a>
  30. </th>
  31. </tr>
  32. <tr class="center-text">
  33. <th>Academic Program</th>
  34. <th>Findings</th>
  35. </tr
  36. </thead>
  37. <tbody>
  38. @foreach ($school->programs as $program)
  39. @if($program->assessesOutcome($outcome->id))
  40. <tr>
  41. <td id="{{ $outcome->id }}-{{ $school->id }}-{{ $program->id }}" class="program col-md-3" >{{ $program->name }}</td>
  42. <td class="col-md-9">
  43. <!-- For each grouped course -->
  44. @foreach($program->courses as $index2=>$course)
  45. <!-- If grouped course has activities that evaluate the outcome -->
  46. <?php
  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){
  51. $query->whereNotNull('outcomes_attempted');
  52. $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
  53. ->where('code', $course->code)->where('number',$course->number)
  54. ->get();
  55. ?>
  56. @if(count($sections_evaluating))
  57. <h4>Instance {{ $index2 +1 }}: {{ $course->code}}-{{ $course->number }}</h4>
  58. <!-- For each section -->
  59. @foreach($sections_evaluating as $index3 => $section)
  60. <h5><u>Section {{ $index3 + 1}}</u></h5>
  61. <!-- For each activity in the section -->
  62. @foreach($section->activities as $index4 => $activity)
  63. <!-- If activity has a rubric and the rubric has the outcome being evaluated -->
  64. @if($activity->rubric_id != NULL && array_key_exists($outcome->id, (array)$activity->o_att_array) && $activity->o_att_array[$outcome->id] >=1)
  65. <h5>Activity {{ $index4 + 1 }}</h5>
  66. <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: "{{ $activity->name }}". N= {{ count($section->students) }}. </p>
  67. <p>The expected performance level was that {{ $activity->rubric->expected_percentage }}% of students participating in the activity would score {{ $activity->rubric->expected_points }} points or more in the 1-8 point scale used.</p>
  68. <p>The results for each criterion were as follows:</p>
  69. <table class="table table-condensed table-bordered">
  70. <tbody>
  71. @foreach((array)$activity->cap_array as $index5 => $cap)
  72. <tr>
  73. @if(Criterion::find($index5)['outcome_id'] == $outcome->id && $cap >= $activity->rubric->expected_percentage )
  74. <td>{{ Criterion::find($index5)['name'] }}</td>
  75. <td class="col-md-1 success">{{ $cap }}%</td>
  76. @elseif(Criterion::find($index5)['outcome_id'] == $outcome->id && $cap < $activity->rubric->expected_percentage )
  77. <td>{{ Criterion::find($index5)['name'] }}</td>
  78. <td class="col-md-1 danger">{{ $cap }}%</td>
  79. @endif
  80. </tr>
  81. @endforeach
  82. </tbody>
  83. </table>
  84. <ul>
  85. </ul>
  86. <p>
  87. <?php
  88. $o_att_array = $activity->o_att_array;
  89. $o_ach_array = $activity->o_ach_array;
  90. $percentage = ($o_ach_array[$outcome->id]/$o_att_array[$outcome->id])*100;
  91. ?>
  92. @if($percentage >= 100)
  93. 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>.
  94. @elseif ($percentage < 1)
  95. 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>.
  96. @elseif ($percentage >= $outcome->expected_outcome)
  97. 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>.
  98. @elseif ($percentage < $outcome->expected_outcome)
  99. 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>.
  100. @endif
  101. </p>
  102. <h5>Transformative Actions</h5>
  103. @if($activity->transforming_actions)
  104. {{ $activity->transforming_actions }}
  105. @else
  106. None
  107. @endif
  108. <br><br>
  109. @else
  110. <h5>Activity {{ $index4 + 1 }}</h5>
  111. <em>Outcome not measured.</em>
  112. @endif
  113. @endforeach
  114. @endforeach
  115. <hr>
  116. @endif
  117. @endforeach
  118. </td>
  119. </tr>
  120. @else
  121. <tr>
  122. <td id="{{ $outcome->id }}-{{ $school->id }}-{{ $program->id }}" class="program no-courses col-md-3" >{{ $program->name }}</td>
  123. <td class="col-md-9">
  124. This program does not assess {{ $outcome->name }}.
  125. </td>
  126. </tr>
  127. @endif
  128. @endforeach
  129. </tbody>
  130. </table>
  131. @endforeach
  132. </div>
  133. </div>
  134. @stop
  135. @section('javascript')
  136. // Build table of contents
  137. var outcome = $('.outcome');
  138. var str ='';
  139. str+='<li><a href="#'+outcome.attr('id')+'">'+outcome.text()+'</a><ol class="schools upper-alpha">';
  140. $('[id^='+outcome.attr('id')+'-].school').each(function(e){
  141. var school = $(this);
  142. str+='<li><a href="#'+school.attr('id')+'">'+school.text()+'</a><ol class="programs">';
  143. $('[id^='+school.attr('id')+'-].program').each(function(e){
  144. var program = $(this);
  145. if(!program.hasClass('no-courses'))
  146. str+='<li><a href="#'+program.attr('id')+'">'+program.text()+'</a></li>';
  147. else
  148. str+='<li>'+program.text()+'</li>';
  149. });
  150. str+='</ol></li>';
  151. });
  152. str+='</ol></li>';
  153. console.log(str);
  154. $('#table-of-contents').append(str);
  155. // ----------------------------------------------------------------------------
  156. // Events
  157. //
  158. $('.to-top').on('click', function(e) {
  159. e.preventDefault();
  160. $(this).scrollTop(0);
  161. $('html').animate({scrollTop:0}, 1);
  162. $('body').animate({scrollTop:0}, 1);
  163. })
  164. @stop