暫無描述

school.blade.php 45KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946
  1. @extends('layouts.master')
  2. @section('navigation')
  3. @if($role==1)
  4. @include('local.managers.admins._new_navigation')
  5. @elseif($role==2)
  6. @include('local.managers.sCoords._new_navigation')
  7. @endif
  8. @stop
  9. @section('main')
  10. <a href="{{ action('SchoolsController@studentSchoolAssessmentReport', array($school->id)); }}" class="btn btn-primary pull-left" alt="print">Go to Performance by School Students</a>
  11. <a href="{{ action('SchoolsController@print_school', array($school->id)); }}" class="btn btn-primary pull-right" alt="print"><span class="glyphicon glyphicon-print"></span></a>
  12. <br>
  13. <br>
  14. <!-- Nav tabs -->
  15. <ul id="levelTabs" class="nav nav-tabs" role="tablist">
  16. <li role="presentation" class="active"><a href="#undergraduate" aria-controls="undergraduate" role="tab">Undergraduate</a></li>
  17. <li role="presentation"><a href="#graduate" aria-controls="graduate" role="tab">Graduate</a></li>
  18. </ul>
  19. <!-- Tab panes -->
  20. <div class="tab-content">
  21. <div role="tabpanel" class="tab-pane active" id="undergraduate">
  22. <div class="row">
  23. <div class="col-md-9 graph" id="graph-undergrad"></div>
  24. <div class="col-md-3">
  25. <br>
  26. <div class="panel panel-default panel-scrolling">
  27. <div class="panel-heading" role="tab" id="headingOne">
  28. <h4 class="panel-title">
  29. Programs
  30. </h4>
  31. </div>
  32. <div class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  33. <table class="table table-striped table-condensed">
  34. <tr>
  35. <th>Name</th>
  36. <th>Participation</th>
  37. </tr>
  38. @foreach ($undergrad_programs as $program)
  39. <tr>
  40. <td>{{ HTML::linkAction('ProgramsController@show', $program->name, array($program->id)) }}</td>
  41. <td class="text-center">
  42. @if(in_array($program->id, $participating_programs))
  43. <span class="glyphicon glyphicon-ok"></span>
  44. @endif
  45. </td>
  46. </tr>
  47. @endforeach
  48. </table>
  49. </div>
  50. </div>
  51. <br>
  52. @if(isset($default_undergrad))
  53. <p><strong>This Goal Bar is the default score. If you wish to change it, change it on the selected Semesters Annual Plan</strong></p>
  54. @else
  55. <p><strong>This Goal is from {{$linea_undergrad->program_name}} on the semester {{$linea_undergrad->semester_name}}</strong></p>
  56. @endif
  57. </div>
  58. </div>
  59. <div>
  60. <!-- Nav tabs -->
  61. <ul id="undergradSchoolTabs" class="nav nav-tabs" role="tablist">
  62. <li role="presentation" class="active"><a href="#undergrad-outcomes-assessed" aria-controls="undergrad-outcomes-assessed" role="tab">Assessment Results by Learning Outcomes in Academic Programs</a></li>
  63. <li role="presentation"><a href="#undergrad-courses" aria-controls="undergrad-courses" role="tab"> Undergraduate Courses</a></li>
  64. <li role="presentation"><a href="#undergrad-sections" aria-controls="undergrad-sections" role="tab">Sections</a></li>
  65. <!-- <li role="presentation"><a href="#performance-undergrad-students" aria-controls = 'performance-undergrad-students' role="tab">Performance by Students in Learning Outcomes</a></li>-->
  66. </ul>
  67. <!-- Tab panes -->
  68. <div class="tab-content">
  69. <div role="tabpanel" class="tab-pane active" id="undergrad-outcomes-assessed">
  70. <div class="row">
  71. <div class="col-md-12">
  72. <table class="table table-striped table-condensed">
  73. <thead>
  74. <th>Learning Outcome</th>
  75. <th>Programs doing Assessment</th>
  76. <th>Programs Achieved</th>
  77. <th>Success Rate</th>
  78. </thead>
  79. <tbody>
  80. @foreach($outcomes_undergrad as $outcome)
  81. <?php $count = 0;?>
  82. <tr>
  83. <td class="col-md-6">{{ link_to_action('OutcomesController@show', $outcome->name, array($outcome->id), $attributes = array()) }}</td>
  84. <td class="col-md-2">{{{ count($attemptedUndergradProgramsPerOutcome[$outcome->id]) }}}</td>
  85. @foreach($undergrad_programs as $program)
  86. <?php
  87. if(isset($achievedUndergradProgramsPerOutcome[$outcome->id][$program->id])
  88. && $achievedUndergradProgramsPerOutcome[$outcome->id][$program->id] / $attemptedUndergradProgramsPerOutcome[$outcome->id][$program->id] * 100 >= $expected_target_for_undergradprograms)
  89. $count++;
  90. ?>
  91. @endforeach
  92. <td class="col-md-2">{{{ $count }}}</td>
  93. <td class="col-md-2">
  94. @if(count($attemptedUndergradProgramsPerOutcome[$outcome->id])!=0)
  95. {{{ round( $count / count($attemptedUndergradProgramsPerOutcome[$outcome->id])*100, 2) }}}%
  96. @else
  97. N/M
  98. @endif
  99. </td>
  100. </tr>
  101. @endforeach
  102. </tbody>
  103. <tfoot></tfoot>
  104. <caption>N/M: Not Measured</caption>
  105. </table>
  106. </div>
  107. </div>
  108. </div>
  109. <div role="tabpanel" class="tab-pane" id="undergrad-courses">
  110. <div class="row">
  111. <div class="col-md-12">
  112. <br>
  113. <h3>Courses in this school</h3>
  114. <p>Note that some sections may have assessed activities but unpublished results. Unpublished results are <strong>not considered</strong>. Check the Sections tab for a breakdown.</p>
  115. @if($undergrad_school_sections_count>0)
  116. <table class="table table-striped table-condensed datatable">
  117. <thead>
  118. <tr>
  119. <th>Identifier</th>
  120. <th>Name</th>
  121. <th>Program</th>
  122. <th>Assessed and Published</th>
  123. </tr>
  124. </thead>
  125. <tfoot>
  126. <tr class="column-search">
  127. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  128. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  129. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  130. <th><select class="column-search-select form-control"><option value=""></option></select></th>
  131. </tr>
  132. </tfoot>
  133. <tbody>
  134. @foreach($undergrad_grouped_courses as $grouped_course)
  135. <tr>
  136. <td class="col-md-2">{{ HTML::linkAction('CoursesController@showGrouped', $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')', array($grouped_course->code, $grouped_course->number, $grouped_course->semester->code)) }}</td>
  137. <td class="col-md-4">{{{ $grouped_course->name}}}</td>
  138. <td class="col-md-2">{{{ $grouped_course->program->name }}}</td>
  139. <td class="col-md-1">
  140. @if($grouped_course->outcomes_attempted!=NULL)
  141. Yes
  142. @else
  143. No
  144. @endif
  145. </td>
  146. </tr>
  147. @endforeach
  148. </tbody>
  149. </table>
  150. @else
  151. <p class="lead"> No courses doing Assessment (0%)</p>
  152. @endif
  153. </div>
  154. </div>
  155. </div>
  156. <div role="tabpanel" class="tab-pane" id="undergrad-sections">
  157. <div class="row">
  158. <div class="col-md-12">
  159. <br>
  160. @if($undergrad_school_sections_count>0)
  161. <h3>Sections in this school</h3>
  162. <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>
  163. <p>Note that some sections may have assessed activities but unpublished results. Unplublished results are <strong>not considered</strong>.</p>
  164. <table class="table table-striped table-condensed datatable">
  165. <thead>
  166. <tr>
  167. <th>Identifier</th>
  168. <th>Name</th>
  169. <th>Program</th>
  170. <th>Professor</th>
  171. <th>Assessed Activities</th>
  172. <th>Published Results</th>
  173. </tr>
  174. </thead>
  175. <tfoot>
  176. <tr class="column-search">
  177. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  178. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  179. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  180. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  181. <th><select class="column-search-select form-control"><option value=""></option></select></th>
  182. <th><select class="column-search-select form-control"><option value=""></option></select></th>
  183. </tr>
  184. </tfoot>
  185. <tbody>
  186. @foreach($school->programs as $program)
  187. @foreach($program->courses as $course)
  188. @if(!$course->program->is_graduate)
  189. <tr>
  190. <td class="col-md-2">{{ HTML::linkAction('CoursesController@showLimited', $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')', array('id'=>$course->id)) }}</td>
  191. <td class="col-md-3">{{{ $course->name}}}</td>
  192. <td class="col-md-2">{{{ $course->program->name }}}</td>
  193. <td class="col-md-3">{{{ $course->user->surnames }}}, {{{ $course->user->first_name }}}</td>
  194. <td class="col-md-1">
  195. @if(count($course->assessedActivities))
  196. Yes
  197. @else
  198. No
  199. @endif
  200. </td>
  201. <td class="col-md-1">
  202. @if(count($course->publishedActivities))
  203. Yes
  204. @else
  205. No
  206. @endif
  207. </td>
  208. </tr>
  209. @endif
  210. @endforeach
  211. @endforeach
  212. </tbody>
  213. </table>
  214. @else
  215. <p class="lead"> No sections doing Assessment (0%)</p>
  216. @endif
  217. </div>
  218. </div>
  219. </div>
  220. <div role="tabpanel" class="tab-pane" id="performance-undergrad-students"></div>
  221. </div>
  222. </div>
  223. </div>
  224. <div role="tabpanel" class="tab-pane" id="graduate">
  225. <div class="row">
  226. <div class="col-md-9 graph" id="graph-grad"></div>
  227. <div class="col-md-3">
  228. <br>
  229. <div class="panel panel-default panel-scrolling">
  230. <div class="panel-heading" role="tab" id="headingOne">
  231. <h4 class="panel-title">
  232. Programs
  233. </h4>
  234. </div>
  235. <div class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
  236. <table class="table table-striped table-condensed">
  237. <tr>
  238. <th>Name</th>
  239. <th>Participation</th>
  240. </tr>
  241. @foreach ($grad_programs as $program)
  242. <tr>
  243. <td>{{ HTML::linkAction('ProgramsController@show', $program->name, array($program->id)) }}</td>
  244. <td class="text-center">
  245. @if(in_array($program->id, $participating_programs))
  246. <span class="glyphicon glyphicon-ok"></span>
  247. @endif
  248. </td>
  249. </tr>
  250. @endforeach
  251. </table>
  252. </div>
  253. </div>
  254. <br>
  255. @if(isset($default_grad))
  256. <p><strong>This Goal Bar is the default score. If you wish to change it, change it on the selected Semesters Annual Plan</strong></p>
  257. @else
  258. <p><strong>This Goal is from {{$linea_grad->program_name}} on the semester {{$linea_grad->semester_name}}</strong></p>
  259. @endif
  260. </div>
  261. </div>
  262. <div>
  263. <!-- Nav tabs -->
  264. <ul id="gradSchoolTabs" class="nav nav-tabs" role="tablist">
  265. <li role="presentation" class="active"><a href="#grad-outcomes-assessed" aria-controls="grad-outcomes-assessed" role="tab">Assessment Results by Learning Outcomes in Academic Programs</a></li>
  266. <li role="presentation"><a href="#grad-courses" aria-controls="grad-courses" role="tab"> Graduate Courses</a></li>
  267. <li role="presentation"><a href="#grad-sections" aria-controls="grad-sections" role="tab">Sections</a></li>
  268. <!--<li role="presentation"><a href="#performance-grad-students" aria-controls = 'performance-grad-students' role="tab">Performance by Students in Learning Outcomes</a></li>-->
  269. </ul>
  270. <!-- Tab panes -->
  271. <div class="tab-content">
  272. <div role="tabpanel" class="tab-pane active" id="grad-outcomes-assessed">
  273. <div class="row">
  274. <div class="col-md-12">
  275. <table class="table table-striped table-condensed">
  276. <thead>
  277. <th>Learning Outcome</th>
  278. <th>Programs doing Assessment</th>
  279. <th>Programs Achieved</th>
  280. <th>Success Rate</th>
  281. </thead>
  282. <tbody>
  283. @foreach($outcomes_grad as $outcome)
  284. <?php $count = 0;?>
  285. <tr>
  286. <td class="col-md-6">{{ link_to_action('OutcomesController@show', $outcome->name, array($outcome->id), $attributes = array()) }}</td>
  287. <td class="col-md-2">{{{ count($attemptedGradProgramsPerOutcome[$outcome->id]) }}}</td>
  288. @foreach($grad_programs as $program)
  289. <?php
  290. if(isset($achievedGradProgramsPerOutcome[$outcome->id][$program->id])
  291. && $achievedGradProgramsPerOutcome[$outcome->id][$program->id] / $attemptedGradProgramsPerOutcome[$outcome->id][$program->id] * 100 >= $expected_target_for_gradprograms)
  292. $count++;
  293. ?>
  294. @endforeach
  295. <td class="col-md-2">{{{ $count }}}</td>
  296. <td class="col-md-2">
  297. @if(count($attemptedGradProgramsPerOutcome[$outcome->id])!=0)
  298. {{{ round($count / count($attemptedGradProgramsPerOutcome[$outcome->id])*100, 2) }}}%
  299. @else
  300. N/M
  301. @endif
  302. </td>
  303. </tr>
  304. @endforeach
  305. </tbody>
  306. <tfoot></tfoot>
  307. <caption>N/M: Not Measured</caption>
  308. </table>
  309. </div>
  310. </div>
  311. </div>
  312. <div role="tabpanel" class="tab-pane" id="grad-courses">
  313. <div class="row">
  314. <div class="col-md-12">
  315. <br>
  316. <h3>Courses in this school</h3>
  317. <p>Note that some sections may have assessed activities but unpublished results. Unpublished results are <strong>not considered</strong>. Check the Sections tab for a breakdown.</p>
  318. @if($grad_school_sections_count>0)
  319. <table class="table table-striped table-condensed datatable">
  320. <thead>
  321. <tr>
  322. <th>Identifier</th>
  323. <th>Name</th>
  324. <th>Program</th>
  325. <th>Assessed and Published</th>
  326. </tr>
  327. </thead>
  328. <tfoot>
  329. <tr class="column-search">
  330. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  331. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  332. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  333. <th><select class="column-search-select form-control"><option value=""></option></select></th>
  334. </tr>
  335. </tfoot>
  336. <tbody>
  337. @foreach($grad_grouped_courses as $grouped_course)
  338. <tr>
  339. <td class="col-md-2">{{ HTML::linkAction('CoursesController@showGrouped', $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')', array($grouped_course->code, $grouped_course->number, $grouped_course->semester->code)) }}</td>
  340. <td class="col-md-4">{{{ $grouped_course->name}}}</td>
  341. <td class="col-md-2">{{{ $grouped_course->program->name }}}</td>
  342. <td class="col-md-1">
  343. @if($grouped_course->outcomes_attempted!=NULL)
  344. Yes
  345. @else
  346. No
  347. @endif
  348. </td>
  349. </tr>
  350. @endforeach
  351. </tbody>
  352. </table>
  353. @else
  354. <p class="lead"> No courses doing Assessment (0%)</p>
  355. @endif
  356. </div>
  357. </div>
  358. </div>
  359. <div role="tabpanel" class="tab-pane" id="grad-sections">
  360. <div class="row">
  361. <div class="col-md-12">
  362. <br>
  363. @if($grad_school_sections_count>0)
  364. <h3>Sections in this school</h3>
  365. <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>
  366. <p>Note that some sections may have assessed activities but unpublished results. Unplublished results are <strong>not considered</strong>.</p>
  367. <table class="table table-striped table-condensed datatable">
  368. <thead>
  369. <tr>
  370. <th>Identifier</th>
  371. <th>Name</th>
  372. <th>Program</th>
  373. <th>Professor</th>
  374. <th>Assessed Activities</th>
  375. <th>Published Results</th>
  376. </tr>
  377. </thead>
  378. <tfoot>
  379. <tr class="column-search">
  380. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  381. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  382. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  383. <th><input class="column-search-bar form-control" type="text" placeholder="Buscar"/></th>
  384. <th><select class="column-search-select form-control"><option value=""></option></select></th>
  385. <th><select class="column-search-select form-control"><option value=""></option></select></th>
  386. </tr>
  387. </tfoot>
  388. <tbody>
  389. @foreach($school->programs as $program)
  390. @foreach($program->courses as $course)
  391. @if($course->program->is_graduate)
  392. <tr>
  393. <td class="col-md-2">{{ HTML::linkAction('CoursesController@showLimited', $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')', array('id'=>$course->id)) }}</td>
  394. <td class="col-md-3">{{{ $course->name}}}</td>
  395. <td class="col-md-2">{{{ $course->program->name }}}</td>
  396. <td class="col-md-3">{{{ $course->user->surnames }}}, {{{ $course->user->first_name }}}</td>
  397. <td class="col-md-1">
  398. @if(count($course->assessedActivities))
  399. Yes
  400. @else
  401. No
  402. @endif
  403. </td>
  404. <td class="col-md-1">
  405. @if(count($course->publishedActivities))
  406. Yes
  407. @else
  408. No
  409. @endif
  410. </td>
  411. </tr>
  412. @endif
  413. @endforeach
  414. @endforeach
  415. </tbody>
  416. </table>
  417. @else
  418. <p class="lead"> No sections doing Assessment (0%)</p>
  419. @endif
  420. </div>
  421. </div>
  422. </div>
  423. <div role="tabpanel" class = "tab-pane" id = "performance-grad-students">
  424. </div>
  425. </div>
  426. </div>
  427. </div>
  428. </div>
  429. @stop
  430. @section('included-js')
  431. <!-- HighCharts -->
  432. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  433. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  434. <!-- Datatables -->
  435. @include('global._datatables_js')
  436. @stop
  437. @section('javascript')
  438. $(function () {
  439. $('#undergradSchoolTabs a').click(function (e) {
  440. e.preventDefault()
  441. $(this).tab('show');
  442. });
  443. $('#gradSchoolTabs a').click(function (e) {
  444. e.preventDefault()
  445. $(this).tab('show');
  446. });
  447. $('#levelTabs a').click(function (e) {
  448. e.preventDefault()
  449. $(this).tab('show');
  450. $('#graph-undergrad').highcharts({
  451. chart: {
  452. type: 'bar'
  453. },
  454. title: {
  455. text: 'Undergraduate Performance of {{ $school->name }} Students by Learning Outcome'
  456. },
  457. legend: {
  458. reversed: true,
  459. },
  460. xAxis: {
  461. categories: [
  462. @foreach($outcomes_undergrad as $outcome)
  463. "{{{ $outcome->name }}}, <br> (N = {{$undergrad_outcomes_attempted[$outcome->id]}} ,{{$undergrad_outcomes_achieved[$outcome->id]}})",
  464. @endforeach
  465. ],
  466. labels: {
  467. style: {
  468. fontSize:'11px'
  469. },
  470. step:1,
  471. useHTML:true,
  472. formatter: function() {
  473. return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  474. },
  475. }
  476. },
  477. yAxis: {
  478. min: 0,
  479. max: 100,
  480. title: {
  481. text: 'Percentage'
  482. },
  483. @if(isset($default_undergrad))
  484. plotLines:[{
  485. value:70,
  486. color: '#000',
  487. width:3,
  488. zIndex:4,
  489. label:{
  490. text: 'Goal (70%)',
  491. style: {
  492. color: '#000',
  493. fontSize: '14px',
  494. }
  495. }
  496. }]
  497. @else
  498. plotLines:[{
  499. value:{{$linea_undergrad->expected_target}},
  500. color: '#000',
  501. width:3,
  502. zIndex:4,
  503. label:{
  504. text: 'Goal ({{$linea_undergrad->expected_target}}%)',
  505. style: {
  506. color: '#000',
  507. fontSize: '14px',
  508. }
  509. }
  510. }]
  511. @endif
  512. },
  513. tooltip: {
  514. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  515. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  516. '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
  517. footerFormat: '</table>',
  518. shared: true,
  519. useHTML: true
  520. },
  521. plotOptions: {
  522. bar: {
  523. //grouping: false,
  524. shadow: false,
  525. borderWidth: 0,
  526. },
  527. series: {
  528. pointPadding: 0,
  529. groupPadding: 0.075
  530. },
  531. },
  532. series: [/*{
  533. name: 'Expected Value',
  534. color: '#555555',
  535. dataLabels: {
  536. enabled: true,
  537. fontSize: 8,
  538. color: '#fff',
  539. align: 'right',
  540. format: '{y:.1f}%',
  541. style: {
  542. //fontWeight: 'bold'
  543. },
  544. y:-1
  545. },
  546. data: [
  547. @foreach($outcomes_undergrad as $index => $outcome)
  548. @if(
  549. is_array($undergrad_outcomes_attempted)
  550. && array_key_exists($outcome->id, $undergrad_outcomes_attempted)
  551. && $undergrad_outcomes_attempted[$outcome->id]!=0)
  552. {{{ $outcome->expected_outcome }}},
  553. @else
  554. 0,
  555. @endif
  556. @endforeach
  557. ],
  558. pointPadding: 0,
  559. },*/ {
  560. name: 'Obtained Value',
  561. color: '#e70033',
  562. dataLabels: {
  563. enabled: true,
  564. fontSize: 8,
  565. color: '#fff',
  566. align: 'right',
  567. format: '{y:.1f}%',
  568. style: {
  569. //fontWeight: 'bold'
  570. },
  571. y:-1
  572. },
  573. data:[
  574. @foreach($outcomes_undergrad as $index => $outcome)
  575. @if(
  576. is_array($undergrad_outcomes_attempted)
  577. && array_key_exists($outcome->id, $undergrad_outcomes_attempted)
  578. && $undergrad_outcomes_attempted[$outcome->id]!=0)
  579. <?php
  580. if (isset($undergrad_outcomes_achieved[$outcome->id]))
  581. $achieved = $undergrad_outcomes_achieved[$outcome->id];
  582. else {
  583. $achieved =0;
  584. }
  585. ?>
  586. {{{ ($achieved/$undergrad_outcomes_attempted[$outcome->id])*100 }}},
  587. @else
  588. 0,
  589. @endif
  590. @endforeach
  591. ],
  592. pointPadding: 0,
  593. }]
  594. });
  595. $('#graph-grad').highcharts({
  596. chart: {
  597. type: 'bar'
  598. },
  599. title: {
  600. text: 'Graduate Performance by {{ $school->name }} Students by Learning Outcome Criteria'
  601. },
  602. legend: {
  603. reversed: true,
  604. },
  605. xAxis: {
  606. categories: [
  607. @foreach($outcomes_grad as $outcome)
  608. "{{{ $outcome->name }}} <br> (N = {{$grad_outcomes_attempted[$outcome->id]}} , {{$grad_outcomes_achieved[$outcome->id]}})",
  609. @endforeach
  610. ],
  611. labels: {
  612. style: {
  613. fontSize:'11px'
  614. },
  615. step:1,
  616. useHTML:true,
  617. formatter: function() {
  618. return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  619. },
  620. }
  621. },
  622. yAxis: {
  623. min: 0,
  624. max: 100,
  625. title: {
  626. text: 'Percentage'
  627. },
  628. @if(isset($default_grad))
  629. plotLines:[{
  630. value:70.00,
  631. color: '#000',
  632. width:3,
  633. zIndex:4,
  634. label:{
  635. text: 'Goal (70%)',
  636. style: {
  637. color: '#000',
  638. fontSize: '14px',
  639. }
  640. }
  641. }]
  642. @else
  643. plotLines:[{
  644. value:{{$linea_grad->expected_target}},
  645. color: '#000',
  646. width:3,
  647. zIndex:4,
  648. label:{
  649. text: 'Goal ({{$linea_grad->expected_target}}%)',
  650. style: {
  651. color: '#000',
  652. fontSize: '14px',
  653. }
  654. }
  655. }]
  656. @endif
  657. },
  658. tooltip: {
  659. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  660. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  661. '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
  662. footerFormat: '</table>',
  663. shared: true,
  664. useHTML: true
  665. },
  666. plotOptions: {
  667. bar: {
  668. //grouping: false,
  669. shadow: false,
  670. borderWidth: 0,
  671. },
  672. series: {
  673. pointPadding: 0,
  674. groupPadding: 0.075
  675. },
  676. },
  677. series: [/*{
  678. name: 'Expected Value',
  679. color: '#555555',
  680. dataLabels: {
  681. enabled: true,
  682. fontSize: 8,
  683. color: '#fff',
  684. align: 'right',
  685. format: '{y:.1f}%',
  686. style: {
  687. //fontWeight: 'bold'
  688. },
  689. y:-1
  690. },
  691. data: [
  692. @foreach($outcomes_grad as $index => $outcome)
  693. @if(
  694. is_array($grad_outcomes_attempted)
  695. && array_key_exists($outcome->id, $grad_outcomes_attempted)
  696. && $grad_outcomes_attempted[$outcome->id]!=0)
  697. {{{ $outcome->expected_outcome }}},
  698. @else
  699. 0,
  700. @endif
  701. @endforeach
  702. ],
  703. pointPadding: 0,
  704. }, */{
  705. name: 'Obtained Value',
  706. color: '#e70033',
  707. dataLabels: {
  708. enabled: true,
  709. fontSize: 8,
  710. color: '#fff',
  711. align: 'right',
  712. format: '{y:.1f}%',
  713. style: {
  714. //fontWeight: 'bold'
  715. },
  716. y:-1
  717. },
  718. data:[
  719. @foreach($outcomes_grad as $index => $outcome)
  720. @if(
  721. is_array($grad_outcomes_attempted)
  722. && array_key_exists($outcome->id, $grad_outcomes_attempted)
  723. && $grad_outcomes_attempted[$outcome->id]!=0)
  724. <?php
  725. if (isset($grad_outcomes_achieved[$outcome->id]))
  726. $achieved = $grad_outcomes_achieved[$outcome->id];
  727. else {
  728. $achieved =0;
  729. }
  730. ?>
  731. {{{ ($achieved/$grad_outcomes_attempted[$outcome->id])*100 }}},
  732. @else
  733. 0,
  734. @endif
  735. @endforeach
  736. ],
  737. pointPadding: 0,
  738. }]
  739. });
  740. });
  741. $('#graph-undergrad').highcharts({
  742. chart: {
  743. type: 'bar'
  744. },
  745. title: {
  746. text: 'Undergraduate Performance by Learning Outcome Criteria in {{ $school->name }}'
  747. },
  748. legend: {
  749. reversed: true,
  750. },
  751. xAxis: {
  752. categories: [
  753. @foreach($outcomes_undergrad as $outcome)
  754. "{{{ $outcome->name }}} <br> (N = {{$undergrad_outcomes_attempted[$outcome->id]}} ,{{$undergrad_outcomes_achieved[$outcome->id]}})",
  755. @endforeach
  756. ],
  757. labels: {
  758. style: {
  759. fontSize:'11px'
  760. },
  761. step:1,
  762. useHTML:true,
  763. formatter: function() {
  764. return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  765. },
  766. }
  767. },
  768. yAxis: {
  769. min: 0,
  770. max: 100,
  771. title: {
  772. text: 'Percentage'
  773. },
  774. @if(isset($default_undergrad))
  775. plotLines:[{
  776. value:70,
  777. color: '#000',
  778. width:3,
  779. zIndex:4,
  780. label:{
  781. text: 'Goal (70%)',
  782. style: {
  783. color: '#000',
  784. fontSize: '14px',
  785. }
  786. }
  787. }]
  788. @else
  789. plotLines:[{
  790. value:{{$linea_undergrad->expected_target}},
  791. color: '#000',
  792. width:3,
  793. zIndex:4,
  794. label:{
  795. text: 'Goal ({{$linea_undergrad->expected_target}}%)',
  796. style: {
  797. color: '#000',
  798. fontSize: '14px',
  799. }
  800. }
  801. }]
  802. @endif
  803. },
  804. tooltip: {
  805. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  806. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  807. '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
  808. footerFormat: '</table>',
  809. shared: true,
  810. useHTML: true
  811. },
  812. plotOptions: {
  813. bar: {
  814. //grouping: false,
  815. shadow: false,
  816. borderWidth: 0,
  817. },
  818. series: {
  819. pointPadding: 0,
  820. groupPadding: 0.075
  821. },
  822. },
  823. series: [/*{
  824. name: 'Expected Value',
  825. color: '#555555',
  826. dataLabels: {
  827. enabled: true,
  828. fontSize: 8,
  829. color: '#fff',
  830. align: 'right',
  831. format: '{y:.1f}%',
  832. style: {
  833. //fontWeight: 'bold'
  834. },
  835. y:-1
  836. },
  837. data: [
  838. @foreach($outcomes_undergrad as $index => $outcome)
  839. @if(
  840. is_array($undergrad_outcomes_attempted)
  841. && array_key_exists($outcome->id, $undergrad_outcomes_attempted)
  842. && $undergrad_outcomes_attempted[$outcome->id]!=0)
  843. {{{ $outcome->expected_outcome }}},
  844. @else
  845. 0,
  846. @endif
  847. @endforeach
  848. ],
  849. pointPadding: 0,
  850. },*/ {
  851. name: 'Obtained Value',
  852. color: '#e70033',
  853. dataLabels: {
  854. enabled: true,
  855. fontSize: 8,
  856. color: '#fff',
  857. align: 'right',
  858. format: '{y:.1f}%',
  859. style: {
  860. //fontWeight: 'bold'
  861. },
  862. y:-1
  863. },
  864. data:[
  865. @foreach($outcomes_undergrad as $index => $outcome)
  866. @if(
  867. is_array($undergrad_outcomes_attempted)
  868. && array_key_exists($outcome->id, $undergrad_outcomes_attempted)
  869. && $undergrad_outcomes_attempted[$outcome->id]!=0)
  870. {{{ ($undergrad_outcomes_achieved[$outcome->id]/$undergrad_outcomes_attempted[$outcome->id])*100 }}},
  871. @else
  872. 0,
  873. @endif
  874. @endforeach
  875. ],
  876. pointPadding: 0,
  877. }]
  878. });
  879. // Include dummy graph for outcomes
  880. @include('global.dummy-outcomes')
  881. });
  882. @stop