No Description

print_program.blade.php 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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. <div class = 'col-md-4'></div>
  17. <div class = "col-md-8" id="graph-stu-program"></div>
  18. <div class = 'col-md-4'></div>
  19. <h3>Courses</h3>
  20. @if($program_courses->count()>0)
  21. <table>
  22. <thead>
  23. <tr>
  24. <th>Identifier</th>
  25. <th>Name</th>
  26. <th>Assessed and Published</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. @foreach($grouped_courses as $grouped_course)
  31. <tr>
  32. <td>{{ $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')' }}</td>
  33. <td>{{{ $grouped_course->name}}}</td>
  34. <td>
  35. @if($grouped_course->outcomes_attempted!=NULL)
  36. <span class="glyphicon glyphicon-ok"></span>
  37. @endif
  38. </td>
  39. </tr>
  40. @endforeach
  41. </tbody>
  42. </table>
  43. @else
  44. <p class="lead"> No courses assigned.</p>
  45. @endif
  46. <h3>Sections</h3>
  47. @if($program_courses->count()>0)
  48. <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>
  49. <table>
  50. <thead>
  51. <tr>
  52. <th>Identifier</th>
  53. <th>Name</th>
  54. <th>Professor</th>
  55. <th>Assessed Activities</th>
  56. <th>Published Results</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. @foreach($program_courses as $course)
  61. <tr>
  62. <td>{{ $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')' }}</td>
  63. <td>{{{ $course->name}}}</td>
  64. <td>{{{ $course->user->surnames }}}, {{{ $course->user->first_name }}}</td>
  65. <td>
  66. @if(count($course->assessedActivities))
  67. <span class="glyphicon glyphicon-ok"></span>
  68. @endif
  69. </td>
  70. <td>
  71. @if(count($course->publishedActivities))
  72. <span class="glyphicon glyphicon-ok"></span>
  73. @endif
  74. </td>
  75. </tr>
  76. @endforeach
  77. </tbody>
  78. </table>
  79. @else
  80. <p class="lead"> No sections assigned.</p>
  81. @endif
  82. <!-- =================== end tabs =================== -->
  83. @stop
  84. @section('included-js')
  85. <!-- HighCharts -->
  86. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  87. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  88. @stop
  89. @section('javascript')
  90. $('#graph').highcharts({
  91. chart: {
  92. type: 'bar'
  93. },
  94. title: {
  95. text: 'Performance by Learning Outcome Criteria in {{ $program->name }} Courses'
  96. },
  97. legend: {
  98. reversed: true,
  99. },
  100. xAxis: {
  101. categories: [
  102. @foreach($outcomes as $outcome)
  103. "{{{ $outcome->name }}} <br>(N = {{$outcomes_attempted[$outcome->id]}}, {{$outcomes_achieved[$outcome->id]}})",
  104. @endforeach
  105. ],
  106. labels: {
  107. style: {
  108. fontSize:'11px'
  109. },
  110. step:1,
  111. useHTML:true,
  112. formatter: function() {
  113. return '<div style="width:100px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  114. },
  115. }
  116. },
  117. yAxis: {
  118. min: 0,
  119. max: 100,
  120. title: {
  121. text: 'Percentage'
  122. },
  123. @if($program->expected_outcome_target == null)
  124. plotLines:[{
  125. value:70.00,
  126. color: '#000',
  127. width:3,
  128. zIndex:4,
  129. label:{
  130. text: 'Goal (70.00%)',
  131. style: {
  132. color: '#000',
  133. fontSize: '14px',
  134. }
  135. }
  136. }]
  137. @else
  138. plotLines:[{
  139. value:{{$program->expected_outcome_target->expected_target}},
  140. color: '#000',
  141. width:3,
  142. zIndex:4,
  143. label:{
  144. text: 'Goal ({{$program->expected_outcome_target->expected_target}}%)',
  145. style: {
  146. color: '#000',
  147. fontSize: '14px',
  148. }
  149. }
  150. }]
  151. @endif
  152. },
  153. tooltip: {
  154. enabled:false
  155. },
  156. plotOptions: {
  157. bar: {
  158. //grouping: false,
  159. shadow: false,
  160. borderWidth: 0,
  161. },
  162. series: {
  163. pointPadding: 0,
  164. groupPadding: 0.075,
  165. animation: false
  166. },
  167. },
  168. series: [/*{
  169. name: 'Expected Value',
  170. color: '#555555',
  171. dataLabels: {
  172. enabled: true,
  173. fontSize: 8,
  174. color: '#fff',
  175. align: 'right',
  176. format: '{y:.1f}%',
  177. style: {
  178. //fontWeight: 'bold'
  179. },
  180. y:-1
  181. },
  182. data: [
  183. @foreach($outcomes as $index => $outcome)
  184. @if(
  185. is_array($outcomes_attempted)
  186. && array_key_exists($outcome->id, $outcomes_attempted)
  187. && $outcomes_attempted[$outcome->id]!=0)
  188. {{{ $outcome->expected_outcome }}},
  189. @else
  190. 0,
  191. @endif
  192. @endforeach
  193. ]
  194. },*/{
  195. name: 'Obtained Value',
  196. color: '#e70033',
  197. dataLabels: {
  198. enabled: true,
  199. fontSize: 8,
  200. color: '#fff',
  201. align: 'right',
  202. format: '{y:.1f}%',
  203. style: {
  204. //fontWeight: 'bold'
  205. },
  206. y:-1
  207. },
  208. data:[
  209. @foreach($outcomes as $index => $outcome)
  210. @if(
  211. is_array($outcomes_attempted)
  212. && array_key_exists($outcome->id, $outcomes_attempted)
  213. && $outcomes_attempted[$outcome->id]!=0)
  214. {{{ ($outcomes_achieved[$outcome->id]/$outcomes_attempted[$outcome->id])*100 }}},
  215. @else
  216. 0,
  217. @endif
  218. @endforeach
  219. ]
  220. }]
  221. });
  222. $('#graph-stu-program').highcharts({
  223. chart: {
  224. type: 'bar'
  225. },
  226. title: {
  227. text: 'Performance by {{ $program->name }}\'s Students in Learning Outcomes '
  228. },
  229. legend: {
  230. reversed: true,
  231. },
  232. xAxis: {
  233. categories: [
  234. @foreach($outcomes as $outcome)
  235. "{{{ $outcome->name }}} <br>(N = {{$program_outcomes_attempted[$outcome->id]}}, {{$program_outcomes_achieved[$outcome->id]}})",
  236. @endforeach
  237. ],
  238. labels: {
  239. style: {
  240. fontSize:'11px'
  241. },
  242. step:1,
  243. useHTML:true,
  244. formatter: function() {
  245. return '<div style="width:100px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  246. },
  247. }
  248. },
  249. yAxis: {
  250. min: 0,
  251. max: 100,
  252. title: {
  253. text: 'Percentage'
  254. },
  255. @if($program->expected_outcome_target == null)
  256. plotLines:[{
  257. value:70.00,
  258. color: '#000',
  259. width:3,
  260. zIndex:4,
  261. label:{
  262. text: 'Goal (70.00%)',
  263. style: {
  264. color: '#000',
  265. fontSize: '14px',
  266. }
  267. }
  268. }]
  269. @else
  270. plotLines:[{
  271. value:{{$program->expected_outcome_target->expected_target}},
  272. color: '#000',
  273. width:3,
  274. zIndex:4,
  275. label:{
  276. text: 'Goal ({{$program->expected_outcome_target->expected_target}}%)',
  277. style: {
  278. color: '#000',
  279. fontSize: '14px',
  280. }
  281. }
  282. }]
  283. @endif
  284. },
  285. tooltip: {
  286. enabled:false
  287. },
  288. plotOptions: {
  289. bar: {
  290. //grouping: false,
  291. shadow: false,
  292. borderWidth: 0,
  293. },
  294. series: {
  295. pointPadding: 0,
  296. groupPadding: 0.075,
  297. animation: false
  298. },
  299. },
  300. series: [/*{
  301. name: 'Expected Value',
  302. color: '#555555',
  303. dataLabels: {
  304. enabled: true,
  305. fontSize: 8,
  306. color: '#fff',
  307. align: 'right',
  308. format: '{y:.1f}%',
  309. style: {
  310. //fontWeight: 'bold'
  311. },
  312. y:-1
  313. },
  314. data: [
  315. @foreach($outcomes as $index => $outcome)
  316. @if(
  317. is_array($outcomes_attempted)
  318. && array_key_exists($outcome->id, $outcomes_attempted)
  319. && $outcomes_attempted[$outcome->id]!=0)
  320. {{{ $outcome->expected_outcome }}},
  321. @else
  322. 0,
  323. @endif
  324. @endforeach
  325. ]
  326. },*/{
  327. name: 'Obtained Value',
  328. color: '#e70033',
  329. dataLabels: {
  330. enabled: true,
  331. fontSize: 8,
  332. color: '#fff',
  333. align: 'right',
  334. format: '{y:.1f}%',
  335. style: {
  336. //fontWeight: 'bold'
  337. },
  338. y:-1
  339. },
  340. data:[
  341. @foreach($outcomes as $index => $outcome)
  342. @if(
  343. is_array($program_outcomes_attempted)
  344. && array_key_exists($outcome->id, $program_outcomes_attempted)
  345. && $program_outcomes_attempted[$outcome->id]!=0)
  346. {{{ ($program_outcomes_achieved[$outcome->id]/$program_outcomes_attempted[$outcome->id])*100 }}},
  347. @else
  348. 0,
  349. @endif
  350. @endforeach
  351. ]
  352. }]
  353. });
  354. @stop