Sin descripción

print_school.blade.php 8.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. @extends('layouts.print')
  2. @section('header')
  3. <p class="header-text">
  4. @foreach (Session::get('semesters_info') as $index => $semester_info)
  5. {{ $semester_info }}
  6. @if($index+1 != count(Session::get('semesters_info')))
  7. <strong>&#183;</strong>
  8. @endif
  9. @endforeach
  10. </p>
  11. <p class="header-text">Assessment Report</p>
  12. <h1 class="header-text">School of {{{ $school->name}}}</h1>
  13. @stop
  14. @section('main')
  15. <div class="row">
  16. <div class="col-md-12" id="graph"></div>
  17. </div>
  18. <br>
  19. <br>
  20. <br>
  21. <h3>Programs</h3>
  22. <table class="tabletable-condensed">
  23. <tr>
  24. <th>Name</th>
  25. <th>Participation</th>
  26. </tr>
  27. @foreach ($school->programs as $program)
  28. <tr>
  29. <td>{{ $program->name }}</td>
  30. <td class="text-center">
  31. @if(in_array($program->id, $participating_programs))
  32. <span class="glyphicon glyphicon-ok"></span>
  33. @else
  34. -
  35. @endif
  36. </td>
  37. </tr>
  38. @endforeach
  39. </table>
  40. <h3>Assessment Results by Learning Outcomes in Academic Programs</h3>
  41. <table>
  42. <thead>
  43. <th>Learning Outcome</th>
  44. <th>Programs Achieved</th>
  45. <th>Programs doing Assessment</th>
  46. <th>Success Rate</th>
  47. </thead>
  48. <tbody>
  49. @foreach($outcomes as $outcome)
  50. <tr>
  51. <td class="col-md-6">{{ $outcome->name }}</td>
  52. <td class="col-md-2">{{{ $achievedProgramsPerOutcome[$outcome->id] }}}</td>
  53. <td class="col-md-2">{{{ $attemptedProgramsPerOutcome[$outcome->id] }}}</td>
  54. <td class="col-md-2">
  55. @if($attemptedProgramsPerOutcome[$outcome->id]!=0)
  56. {{{ round($achievedProgramsPerOutcome[$outcome->id] / $attemptedProgramsPerOutcome[$outcome->id]*100, 2) }}}%
  57. @else
  58. N/M
  59. @endif
  60. </td>
  61. </tr>
  62. @endforeach
  63. </tbody>
  64. <tfoot></tfoot>
  65. <caption>N/M: Not Measured</caption>
  66. </table>
  67. <h3>Courses</h3>
  68. @if($school_sections_count>0)
  69. <table>
  70. <thead>
  71. <tr>
  72. <th>Identifier</th>
  73. <th>Name</th>
  74. <th>Program</th>
  75. <th>Assessed and Published</th>
  76. </tr>
  77. </thead>
  78. <tbody>
  79. @foreach($grouped_courses as $grouped_course)
  80. <tr>
  81. <td class="col-md-2">{{ $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')' }}</td>
  82. <td class="col-md-4">{{{ $grouped_course->name}}}</td>
  83. <td class="col-md-2">{{{ $grouped_course->program->name }}}</td>
  84. <td class="col-md-1">
  85. @if($grouped_course->outcomes_attempted!=NULL)
  86. Yes
  87. @else
  88. No
  89. @endif
  90. </td>
  91. </tr>
  92. @endforeach
  93. </tbody>
  94. </table>
  95. @else
  96. <p class="lead"> No courses assigned.</p>
  97. @endif
  98. <h3>Sections</h3>
  99. @if($school_sections_count>0)
  100. <p class="lead"> {{{ $assessed_sections_count }}} out of {{{ $school_sections_count }}} section(s) doing Assessment ({{{ round($assessed_sections_count/$school_sections_count*100, 2) }}}%)</p>
  101. <table>
  102. <thead>
  103. <tr>
  104. <th>Identifier</th>
  105. <th>Name</th>
  106. <th>Program</th>
  107. <th>Professor</th>
  108. <th>Assessed Activities</th>
  109. <th>Assessed Results</th>
  110. </tr>
  111. </thead>
  112. <tbody>
  113. @foreach($school->programs as $program)
  114. @foreach($program->courses as $course)
  115. <tr>
  116. <td class="col-md-2">{{ $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')' }}</td>
  117. <td class="col-md-4">{{{ $course->name}}}</td>
  118. <td class="col-md-2">{{{ $course->program->name }}}</td>
  119. <td class="col-md-3">{{{ $course->user->surnames }}}, {{{ $course->user->first_name }}}</td>
  120. <td class="col-md-1">
  121. @if(count($course->assessedActivities))
  122. <span class="glyphicon glyphicon-ok"></span>
  123. @endif
  124. </td>
  125. <td class="col-md-1">
  126. @if(count($course->publishedActivities))
  127. <span class="glyphicon glyphicon-ok"></span>
  128. @endif
  129. </td>
  130. </tr>
  131. @endforeach
  132. @endforeach
  133. </tbody>
  134. </table>
  135. @else
  136. <p class="lead"> No sections assigned.</p>
  137. @endif
  138. @stop
  139. @section('included-js')
  140. <!-- HighCharts -->
  141. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  142. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  143. @stop
  144. @section('javascript')
  145. $(function () {
  146. $('#schoolTabs a').click(function (e) {
  147. e.preventDefault()
  148. $(this).tab('show');
  149. });
  150. $('#graph').highcharts({
  151. chart: {
  152. type: 'bar'
  153. },
  154. title: {
  155. text: 'Performance by Learning Outcome Criteria in {{ $school->name }}'
  156. },
  157. legend: {
  158. reversed: true,
  159. },
  160. xAxis: {
  161. categories: [
  162. @foreach($outcomes as $outcome)
  163. "{{{ $outcome->name }}}",
  164. @endforeach
  165. ],
  166. labels: {
  167. style: {
  168. fontSize:'11px'
  169. },
  170. step:1,
  171. useHTML:true,
  172. formatter: function() {
  173. return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  174. },
  175. }
  176. },
  177. yAxis: {
  178. min: 0,
  179. max: 100,
  180. title: {
  181. text: 'Percentage'
  182. }
  183. },
  184. tooltip: {
  185. enabled: false,
  186. },
  187. plotOptions: {
  188. bar: {
  189. //grouping: false,
  190. shadow: false,
  191. borderWidth: 0,
  192. },
  193. series: {
  194. pointPadding: 0,
  195. groupPadding: 0.075
  196. },
  197. },
  198. series: [{
  199. name: 'Expected Value',
  200. color: '#555555',
  201. dataLabels: {
  202. enabled: true,
  203. fontSize: 8,
  204. color: '#fff',
  205. align: 'right',
  206. format: '{y:.1f}%',
  207. style: {
  208. //fontWeight: 'bold'
  209. },
  210. y:-1
  211. },
  212. data: [
  213. @foreach($outcomes as $index => $outcome)
  214. @if(
  215. is_array($outcomes_attempted)
  216. && array_key_exists($outcome->id, $outcomes_attempted)
  217. && $outcomes_attempted[$outcome->id]!=0)
  218. {{{ $outcome->expected_outcome }}},
  219. @else
  220. 0,
  221. @endif
  222. @endforeach
  223. ]
  224. }, {
  225. name: 'Obtained Value',
  226. color: '#e70033',
  227. dataLabels: {
  228. enabled: true,
  229. fontSize: 8,
  230. color: '#fff',
  231. align: 'right',
  232. format: '{y:.1f}%',
  233. style: {
  234. //fontWeight: 'bold'
  235. },
  236. y:-1
  237. },
  238. data:[
  239. @foreach($outcomes as $index => $outcome)
  240. @if(
  241. is_array($outcomes_attempted)
  242. && array_key_exists($outcome->id, $outcomes_attempted)
  243. && $outcomes_attempted[$outcome->id]!=0)
  244. {{{ ($outcomes_achieved[$outcome->id]/$outcomes_attempted[$outcome->id])*100 }}},
  245. @else
  246. 0,
  247. @endif
  248. @endforeach
  249. ]
  250. }, ]
  251. });
  252. // Include dummy graph for outcomes
  253. @include('global.dummy-outcomes')
  254. });
  255. @stop