No Description

print_school.blade.php 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  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 Results</p>
  12. <h1 class="header-text">School of {{{ $school->name}}}</h1>
  13. @stop
  14. @section('main')
  15. <h3>Programs</h3>
  16. <table class="tabletable-condensed">
  17. <tr>
  18. <th>Name</th>
  19. <th>Participation</th>
  20. </tr>
  21. @foreach ($school->programs as $program)
  22. <tr>
  23. <td>{{ $program->name }}</td>
  24. <td class="text-center">
  25. @if(in_array($program->id, $participating_programs))
  26. <span class="glyphicon glyphicon-ok"></span>
  27. @else
  28. -
  29. @endif
  30. </td>
  31. </tr>
  32. @endforeach
  33. </table>
  34. <br>
  35. <br>
  36. <br>
  37. <div class="row">
  38. <div class="col-md-12" id="graph-undergrad"></div>
  39. </div>
  40. <h3>Assessment Results by Learning Outcomes in Academic Undergraduate 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_undergrad as $outcome)
  50. <?php $count = 0;?>
  51. <tr>
  52. <td class="col-md-6">{{ $outcome->name }}</td>
  53. <td class="col-md-2">{{{ count($attemptedUndergradProgramsPerOutcome[$outcome->id]) }}}</td>
  54. @foreach($undergrad_programs as $program)
  55. <?php
  56. if(isset($achievedUndergradProgramsPerOutcome[$outcome->id][$program->id])
  57. && $achievedUndergradProgramsPerOutcome[$outcome->id][$program->id] / $attemptedUndergradProgramsPerOutcome[$outcome->id][$program->id] * 100 >= $expected_target_for_undergradprograms)
  58. $count++;
  59. ?>
  60. @endforeach
  61. <td class="col-md-2">{{{ $count }}}</td>
  62. <td class="col-md-2">
  63. @if(count($attemptedUndergradProgramsPerOutcome[$outcome->id])!=0)
  64. {{{ round( $count / count($attemptedUndergradProgramsPerOutcome[$outcome->id])*100, 2) }}}%
  65. @else
  66. N/M
  67. @endif
  68. </td>
  69. </tr>
  70. @endforeach
  71. </tbody>
  72. <tfoot></tfoot>
  73. <caption>N/M: Not Measured</caption>
  74. </table>
  75. <h3>Courses</h3>
  76. @if($undergrad_school_sections_count>0)
  77. <table>
  78. <thead>
  79. <tr>
  80. <th>Identifier</th>
  81. <th>Name</th>
  82. <th>Program</th>
  83. <th>Assessed and Published</th>
  84. </tr>
  85. </thead>
  86. <tbody>
  87. @foreach($undergrad_grouped_courses as $grouped_course)
  88. <tr>
  89. <td class="col-md-2">{{ $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')' }}</td>
  90. <td class="col-md-4">{{{ $grouped_course->name}}}</td>
  91. <td class="col-md-2">{{{ $grouped_course->program->name }}}</td>
  92. <td class="col-md-1">
  93. @if($grouped_course->outcomes_attempted!=NULL)
  94. Yes
  95. @else
  96. No
  97. @endif
  98. </td>
  99. </tr>
  100. @endforeach
  101. </tbody>
  102. </table>
  103. @else
  104. <p class="lead"> No courses assigned.</p>
  105. @endif
  106. <h3>Sections</h3>
  107. @if($undergrad_school_sections_count>0)
  108. <p class="lead"> {{{ $undergrad_assessed_sections_count }}} out of {{{ $undergrad_school_sections_count }}} section(s) doing Assessment ({{{ round($undergrad_assessed_sections_count/$undergrad_school_sections_count*100, 2) }}}%)</p>
  109. <table>
  110. <thead>
  111. <tr>
  112. <th>Identifier</th>
  113. <th>Name</th>
  114. <th>Program</th>
  115. <th>Professor</th>
  116. <th>Assessed Activities</th>
  117. <th>Assessed Results</th>
  118. </tr>
  119. </thead>
  120. <tbody>
  121. @foreach($school->programs as $program)
  122. @if(!$program->is_graduate)
  123. @foreach($program->courses as $course)
  124. <tr>
  125. <td class="col-md-2">{{ $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')' }}</td>
  126. <td class="col-md-4">{{{ $course->name}}}</td>
  127. <td class="col-md-2">{{{ $course->program->name }}}</td>
  128. <td class="col-md-3">{{{ $course->user->surnames }}}, {{{ $course->user->first_name }}}</td>
  129. <td class="col-md-1">
  130. @if(count($course->assessedActivities))
  131. Yes
  132. @else
  133. No
  134. @endif
  135. </td>
  136. <td class="col-md-1">
  137. @if(count($course->publishedActivities))
  138. Yes
  139. @else
  140. No
  141. @endif
  142. </td>
  143. </tr>
  144. @endforeach
  145. @endif
  146. @endforeach
  147. </tbody>
  148. </table>
  149. @else
  150. <p class="lead"> No sections assigned.</p>
  151. @endif
  152. <br>
  153. <br>
  154. <br>
  155. <div class="row">
  156. <div class="col-md-12" id="graph-grad"></div>
  157. </div>
  158. <h3>Assessment Results by Learning Outcomes in Academic Graduate Programs</h3>
  159. <table>
  160. <thead>
  161. <th>Learning Outcome</th>
  162. <th>Programs Achieved</th>
  163. <th>Programs doing Assessment</th>
  164. <th>Success Rate</th>
  165. </thead>
  166. <tbody>
  167. @foreach($outcomes_grad as $outcome)
  168. <?php $count = 0;?>
  169. <tr>
  170. <td class="col-md-6">{{ link_to_action('OutcomesController@show', $outcome->name, array($outcome->id), $attributes = array()) }}</td>
  171. <td class="col-md-2">{{{ count($attemptedGradProgramsPerOutcome[$outcome->id]) }}}</td>
  172. @foreach($grad_programs as $program)
  173. <?php
  174. if(isset($achievedGradProgramsPerOutcome[$outcome->id][$program->id])
  175. && $achievedGradProgramsPerOutcome[$outcome->id][$program->id] / $attemptedGradProgramsPerOutcome[$outcome->id][$program->id] * 100 >= $expected_target_for_gradprograms)
  176. $count++;
  177. ?>
  178. @endforeach
  179. <td class="col-md-2">{{{ $count }}}</td>
  180. <td class="col-md-2">
  181. @if(count($attemptedGradProgramsPerOutcome[$outcome->id])!=0)
  182. {{{ round($count / count($attemptedGradProgramsPerOutcome[$outcome->id])*100, 2) }}}%
  183. @else
  184. N/M
  185. @endif
  186. </td></tr>
  187. @endforeach
  188. </tbody>
  189. <tfoot></tfoot>
  190. <caption>N/M: Not Measured</caption>
  191. </table>
  192. <h3>Courses</h3>
  193. @if($grad_school_sections_count>0)
  194. <table>
  195. <thead>
  196. <tr>
  197. <th>Identifier</th>
  198. <th>Name</th>
  199. <th>Program</th>
  200. <th>Assessed and Published</th>
  201. </tr>
  202. </thead>
  203. <tbody>
  204. @foreach($grad_grouped_courses as $grouped_course)
  205. <tr>
  206. <td class="col-md-2">{{ $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')' }}</td>
  207. <td class="col-md-4">{{{ $grouped_course->name}}}</td>
  208. <td class="col-md-2">{{{ $grouped_course->program->name }}}</td>
  209. <td class="col-md-1">
  210. @if($grouped_course->outcomes_attempted!=NULL)
  211. Yes
  212. @else
  213. No
  214. @endif
  215. </td>
  216. </tr>
  217. @endforeach
  218. </tbody>
  219. </table>
  220. @else
  221. <p class="lead"> No courses assigned.</p>
  222. @endif
  223. <h3>Sections</h3>
  224. @if($grad_school_sections_count>0)
  225. <p class="lead"> {{{ $grad_assessed_sections_count }}} out of {{{ $grad_school_sections_count }}} section(s) doing Assessment ({{{ round($grad_assessed_sections_count/$grad_school_sections_count*100, 2) }}}%)</p>
  226. <table>
  227. <thead>
  228. <tr>
  229. <th>Identifier</th>
  230. <th>Name</th>
  231. <th>Program</th>
  232. <th>Professor</th>
  233. <th>Assessed Activities</th>
  234. <th>Assessed Results</th>
  235. </tr>
  236. </thead>
  237. <tbody>
  238. @foreach($school->programs as $program)
  239. @if($program->is_graduate)
  240. @foreach($program->courses as $course)
  241. <tr>
  242. <td class="col-md-2">{{ $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')' }}</td>
  243. <td class="col-md-4">{{{ $course->name}}}</td>
  244. <td class="col-md-2">{{{ $course->program->name }}}</td>
  245. <td class="col-md-3">{{{ $course->user->surnames }}}, {{{ $course->user->first_name }}}</td>
  246. <td class="col-md-1">
  247. @if(count($course->assessedActivities))
  248. Yes
  249. @else
  250. No
  251. @endif
  252. </td>
  253. <td class="col-md-1">
  254. @if(count($course->publishedActivities))
  255. Yes
  256. @else
  257. No
  258. @endif
  259. </td>
  260. </tr>
  261. @endforeach
  262. @endif
  263. @endforeach
  264. </tbody>
  265. </table>
  266. @else
  267. <p class="lead"> No sections assigned.</p>
  268. @endif
  269. @stop
  270. @section('included-js')
  271. <!-- HighCharts -->
  272. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  273. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  274. @stop
  275. @section('javascript')
  276. $(function () {
  277. $('#schoolTabs a').click(function (e) {
  278. e.preventDefault()
  279. $(this).tab('show');
  280. });
  281. $('#graph-grad').highcharts({
  282. chart: {
  283. type: 'bar'
  284. },
  285. title: {
  286. text: 'Graduate Performance by {{ $school->name }} Students by Learning Outcome Criteria'
  287. },
  288. legend: {
  289. reversed: true,
  290. },
  291. xAxis: {
  292. categories: [
  293. @foreach($outcomes_grad as $outcome)
  294. "{{{ $outcome->name }}} <br> (N = {{$grad_outcomes_attempted[$outcome->id]}} , {{$grad_outcomes_achieved[$outcome->id]}})",
  295. @endforeach
  296. ],
  297. labels: {
  298. style: {
  299. fontSize:'11px'
  300. },
  301. step:1,
  302. useHTML:true,
  303. formatter: function() {
  304. return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  305. },
  306. }
  307. },
  308. yAxis: {
  309. min: 0,
  310. max: 100,
  311. title: {
  312. text: 'Percentage'
  313. },
  314. @if(isset($default_grad))
  315. plotLines:[{
  316. value:66.67,
  317. color: '#000',
  318. width:3,
  319. zIndex:4,
  320. label:{
  321. text: 'Goal (70%)',
  322. style: {
  323. color: '#000',
  324. fontSize: '14px',
  325. }
  326. }
  327. }]
  328. @else
  329. plotLines:[{
  330. value:{{$linea_grad->expected_target}},
  331. color: '#000',
  332. width:3,
  333. zIndex:4,
  334. label:{
  335. text: 'Goal ({{$linea_grad->expected_target}}%)',
  336. style: {
  337. color: '#000',
  338. fontSize: '14px',
  339. }
  340. }
  341. }]
  342. @endif
  343. },
  344. tooltip: {
  345. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  346. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  347. '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
  348. footerFormat: '</table>',
  349. shared: true,
  350. useHTML: true
  351. },
  352. plotOptions: {
  353. bar: {
  354. //grouping: false,
  355. shadow: false,
  356. borderWidth: 0,
  357. },
  358. series: {
  359. pointPadding: 0,
  360. groupPadding: 0.075
  361. },
  362. },
  363. series: [/*{
  364. name: 'Expected Value',
  365. color: '#555555',
  366. dataLabels: {
  367. enabled: true,
  368. fontSize: 8,
  369. color: '#fff',
  370. align: 'right',
  371. format: '{y:.1f}%',
  372. style: {
  373. //fontWeight: 'bold'
  374. },
  375. y:-1
  376. },
  377. data: [
  378. @foreach($outcomes_grad as $index => $outcome)
  379. @if(
  380. is_array($grad_outcomes_attempted)
  381. && array_key_exists($outcome->id, $grad_outcomes_attempted)
  382. && $grad_outcomes_attempted[$outcome->id]!=0)
  383. {{{ $outcome->expected_outcome }}},
  384. @else
  385. 0,
  386. @endif
  387. @endforeach
  388. ],
  389. pointPadding: 0,
  390. }, */{
  391. name: 'Obtained Value',
  392. color: '#e70033',
  393. dataLabels: {
  394. enabled: true,
  395. fontSize: 8,
  396. color: '#fff',
  397. align: 'right',
  398. format: '{y:.1f}%',
  399. style: {
  400. //fontWeight: 'bold'
  401. },
  402. y:-1
  403. },
  404. data:[
  405. @foreach($outcomes_grad as $index => $outcome)
  406. @if(
  407. is_array($grad_outcomes_attempted)
  408. && array_key_exists($outcome->id, $grad_outcomes_attempted)
  409. && $grad_outcomes_attempted[$outcome->id]!=0)
  410. <?php
  411. if (isset($grad_outcomes_achieved[$outcome->id]))
  412. $achieved = $grad_outcomes_achieved[$outcome->id];
  413. else {
  414. $achieved =0;
  415. }
  416. ?>
  417. {{{ ($achieved/$grad_outcomes_attempted[$outcome->id])*100 }}},
  418. @else
  419. 0,
  420. @endif
  421. @endforeach
  422. ],
  423. pointPadding: 0,
  424. }]
  425. });
  426. });
  427. $('#graph-undergrad').highcharts({
  428. chart: {
  429. type: 'bar'
  430. },
  431. title: {
  432. text: 'Undergraduate Performance of {{ $school->name }} Students by Learning Outcome'
  433. },
  434. legend: {
  435. reversed: true,
  436. },
  437. xAxis: {
  438. categories: [
  439. @foreach($outcomes_undergrad as $outcome)
  440. "{{{ $outcome->name }}}, <br> (N = {{$undergrad_outcomes_attempted[$outcome->id]}} ,{{$undergrad_outcomes_achieved[$outcome->id]}})",
  441. @endforeach
  442. ],
  443. labels: {
  444. style: {
  445. fontSize:'11px'
  446. },
  447. step:1,
  448. useHTML:true,
  449. formatter: function() {
  450. return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  451. },
  452. }
  453. },
  454. yAxis: {
  455. min: 0,
  456. max: 100,
  457. title: {
  458. text: 'Percentage'
  459. },
  460. @if(isset($default_undergrad))
  461. plotLines:[{
  462. value:66.67,
  463. color: '#000',
  464. width:3,
  465. zIndex:4,
  466. label:{
  467. text: 'Goal (70%)',
  468. style: {
  469. color: '#000',
  470. fontSize: '14px',
  471. }
  472. }
  473. }]
  474. @else
  475. plotLines:[{
  476. value:{{$linea_undergrad->expected_target}},
  477. color: '#000',
  478. width:3,
  479. zIndex:4,
  480. label:{
  481. text: 'Goal ({{$linea_undergrad->expected_target}}%)',
  482. style: {
  483. color: '#000',
  484. fontSize: '14px',
  485. }
  486. }
  487. }]
  488. @endif
  489. },
  490. tooltip: {
  491. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  492. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  493. '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
  494. footerFormat: '</table>',
  495. shared: true,
  496. useHTML: true
  497. },
  498. plotOptions: {
  499. bar: {
  500. //grouping: false,
  501. shadow: false,
  502. borderWidth: 0,
  503. },
  504. series: {
  505. pointPadding: 0,
  506. groupPadding: 0.075
  507. },
  508. },
  509. series: [/*{
  510. name: 'Expected Value',
  511. color: '#555555',
  512. dataLabels: {
  513. enabled: true,
  514. fontSize: 8,
  515. color: '#fff',
  516. align: 'right',
  517. format: '{y:.1f}%',
  518. style: {
  519. //fontWeight: 'bold'
  520. },
  521. y:-1
  522. },
  523. data: [
  524. @foreach($outcomes_undergrad as $index => $outcome)
  525. @if(
  526. is_array($undergrad_outcomes_attempted)
  527. && array_key_exists($outcome->id, $undergrad_outcomes_attempted)
  528. && $undergrad_outcomes_attempted[$outcome->id]!=0)
  529. {{{ $outcome->expected_outcome }}},
  530. @else
  531. 0,
  532. @endif
  533. @endforeach
  534. ],
  535. pointPadding: 0,
  536. },*/ {
  537. name: 'Obtained Value',
  538. color: '#e70033',
  539. dataLabels: {
  540. enabled: true,
  541. fontSize: 8,
  542. color: '#fff',
  543. align: 'right',
  544. format: '{y:.1f}%',
  545. style: {
  546. //fontWeight: 'bold'
  547. },
  548. y:-1
  549. },
  550. data:[
  551. @foreach($outcomes_undergrad as $index => $outcome)
  552. @if(
  553. is_array($undergrad_outcomes_attempted)
  554. && array_key_exists($outcome->id, $undergrad_outcomes_attempted)
  555. && $undergrad_outcomes_attempted[$outcome->id]!=0)
  556. <?php
  557. if (isset($undergrad_outcomes_achieved[$outcome->id]))
  558. $achieved = $undergrad_outcomes_achieved[$outcome->id];
  559. else {
  560. $achieved =0;
  561. }
  562. ?>
  563. {{{ ($achieved/$undergrad_outcomes_attempted[$outcome->id])*100 }}},
  564. @else
  565. 0,
  566. @endif
  567. @endforeach
  568. ],
  569. pointPadding: 0,
  570. }]
  571. });
  572. // Include dummy graph for outcomes
  573. @include('global.dummy-outcomes')
  574. @stop