Ei kuvausta

school.blade.php 43KB

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