暂无描述

print_program_students.blade.php 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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">Program Assessment Results</p>
  12. <h1 class="header-text">{{{ $program->name}}}</h1>
  13. @stop
  14. @section('main')
  15. <div class="row">
  16. <div class="col-md-8" id="graph_undergrad_combined"></div>
  17. </div>
  18. <div class="row">
  19. <div class="col-md-8">
  20. <h3>Performance of {{ $program->name }} Students by Learning Outcome</h3>
  21. @if($outcomes->count()>0)
  22. <table class="table table-striped table-condensed">
  23. <thead>
  24. <tr>
  25. <th>Program Id</th>
  26. <th>Program Is Graduate</th>
  27. <th>Learning Outcome</th>
  28. <th>Number Students</th>
  29. <th>Number Students that Achieved the Target</th>
  30. <th>Percentage of Students that Achieved the Target</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. @foreach($outcomes_colap as $outcome)
  35. @if(isset($outcomes_attempted_colap[$outcome->id]))
  36. <tr>
  37. <td>{{{ $program->id }}}</td>
  38. <td>{{{ $program->is_graduate }}}</td>
  39. <td>{{ $outcome->name }}</td>
  40. <td>{{{ $outcomes_attempted_colap[$outcome->id] }}}</td>
  41. <td>{{{ $outcomes_achieved_colap[$outcome->id] }}}</td>
  42. <td>
  43. @if($outcomes_attempted_colap[$outcome->id]!=0)
  44. {{{ round($outcomes_achieved_colap[$outcome->id] / $outcomes_attempted_colap[$outcome->id]*100, 2) }}}%
  45. @else
  46. N/M
  47. @endif
  48. </td>
  49. </tr>
  50. @endif
  51. @endforeach
  52. </tbody>
  53. </table>
  54. @else
  55. <p class="lead"> No courses assigned.</p>
  56. @endif
  57. </div>
  58. </div>
  59. <div class="row">
  60. <div class="col-md-8">
  61. <h3>Courses in this program</h3>
  62. @if(count($grouped_courses)>0)
  63. <table class="table table-striped table-condensed">
  64. <thead>
  65. <tr>
  66. <th>Identifier</th>
  67. <th>Name</th>
  68. <th>Course Program</th>
  69. <th>Number of Students</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. @foreach($grouped_courses as $grouped_course)
  74. <tr>
  75. <td class="col-md-2">{{ $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')' }}</td>
  76. <td class="col-md-4">{{{ $grouped_course->name}}}</td>
  77. <td class="col-md-2">{{{ $grouped_course->program->code}}}</td>
  78. <td class="col-md-3">{{{ $grouped_course->quantity }}}</td>
  79. </tr>
  80. @endforeach
  81. </tbody>
  82. </table>
  83. @else
  84. <p class="lead"> No courses assigned.</p>
  85. @endif
  86. </div>
  87. </div>
  88. <!-- =================== end tabs =================== -->
  89. @stop
  90. @section('included-js')
  91. <!-- HighCharts -->
  92. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  93. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  94. @stop
  95. @section('javascript')
  96. $('#graph_undergrad_combined').highcharts({
  97. chart: {
  98. type: 'bar'
  99. },
  100. title: {
  101. text: 'Performance of {{ $program->name }} Students by Learning Outcome'
  102. },
  103. legend: {
  104. reversed: true,
  105. },
  106. xAxis: {
  107. categories: [
  108. @foreach($outcomes_colap as $outcome)
  109. "{{{ $outcome->name }}}<br>(N = {{{ $outcomes_attempted_colap[$outcome->id] }}}, {{{ $outcomes_achieved_colap[$outcome->id] }}})",
  110. @endforeach
  111. ],
  112. labels: {
  113. style: {
  114. fontSize:'11px'
  115. },
  116. step:1,
  117. useHTML:true,
  118. formatter: function() {
  119. return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  120. },
  121. }
  122. },
  123. yAxis: {
  124. min: 0,
  125. max: 100,
  126. title: {
  127. text: 'Percentage'
  128. }, @if($program->expected_outcome_target == null)
  129. plotLines:[{
  130. value:70,
  131. color: '#000',
  132. width:3,
  133. zIndex:4,
  134. label:{
  135. text: 'Goal (70%)',
  136. style: {
  137. color: '#000',
  138. fontSize: '14px',
  139. }
  140. }
  141. }]
  142. @else
  143. plotLines:[{
  144. value:{{$program->expected_outcome_target->expected_target}},
  145. color: '#000',
  146. width:3,
  147. zIndex:4,
  148. label:{
  149. text: 'Goal ({{$program->expected_outcome_target->expected_target}}%)',
  150. style: {
  151. color: '#000',
  152. fontSize: '14px',
  153. }
  154. }
  155. }]
  156. @endif
  157. },
  158. tooltip: {
  159. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  160. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  161. '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
  162. footerFormat: '</table>',
  163. shared: true,
  164. useHTML: true
  165. },
  166. plotOptions: {
  167. bar: {
  168. //grouping: false,
  169. shadow: false,
  170. borderWidth: 0,
  171. },
  172. series: {
  173. pointPadding: 0,
  174. groupPadding: 0.075
  175. },
  176. },
  177. series: [/*{
  178. name: 'Expected Value',
  179. color: '#555555',
  180. dataLabels: {
  181. enabled: true,
  182. fontSize: 8,
  183. color: '#fff',
  184. align: 'right',
  185. format: '{y:.1f}%',
  186. style: {
  187. //fontWeight: 'bold'
  188. },
  189. y:-1
  190. },
  191. data: [
  192. @foreach($outcomes_colap as $index => $outcome)
  193. @if(
  194. is_array($outcomes_attempted_colap)
  195. && array_key_exists($outcome->id, $outcomes_attempted_colap)
  196. && $outcomes_attempted_colap[$outcome->id]!=0)
  197. @else
  198. 0,
  199. @endif
  200. @endforeach
  201. ]
  202. },*/{
  203. name: 'Obtained Value',
  204. color: '#e70033',
  205. dataLabels: {
  206. enabled: true,
  207. fontSize: 8,
  208. color: '#fff',
  209. align: 'right',
  210. format: '{y:.1f}%',
  211. style: {
  212. //fontWeight: 'bold'
  213. },
  214. y:-1
  215. },
  216. data:[
  217. @foreach($outcomes_colap as $index => $outcome)
  218. @if(
  219. is_array($outcomes_attempted_colap)
  220. && array_key_exists($outcome->id, $outcomes_attempted_colap)
  221. && $outcomes_attempted_colap[$outcome->id]!=0)
  222. {{{ ($outcomes_achieved_colap[$outcome->id]/$outcomes_attempted_colap[$outcome->id])*100 }}},
  223. @else
  224. 0,
  225. @endif
  226. @endforeach
  227. ]
  228. }]
  229. });
  230. @stop