No Description

print_program.blade.php 6.6KB

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