Sin descripción

grouped_course.blade.php 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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. @elseif($role==3)
  8. @include('local.managers.pCoords._new_navigation')
  9. @else
  10. @include('local.professors._navigation')
  11. @endif
  12. @stop
  13. @section('main')
  14. <p>{{{ $grouped_courses[0]->program->name }}}</p>
  15. <a href="{{ action('CoursesController@print_course', array($grouped_courses[0]->code, $grouped_courses[0]->number, $grouped_courses[0]->semester->code )); }}" class="btn btn-primary pull-right" alt="print"><span class="glyphicon glyphicon-print"></span></a>
  16. <br>
  17. <br>
  18. @if($grouped_courses[0]->program->expected_outcome_target== null)
  19. <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>
  20. @else
  21. <p><strong>This Goal is from {{$grouped_courses[0]->program->name}} on the semester {{$grouped_courses[0]->program->expected_outcome_target->semester_name}}</strong></p>
  22. @endif
  23. <div class="row">
  24. <div class="col-md-12 graph" id="graph"></div>
  25. </div>
  26. <div class="row">
  27. <div class="col-md-5">
  28. <h3>Sections</h3>
  29. <table class="table table-striped table-condensed">
  30. <thead>
  31. <tr>
  32. <th>Identifier</th>
  33. <th>Professor</th>
  34. <th>Assessed</th>
  35. <th>Published</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. @foreach($sections as $section)
  40. <tr>
  41. <td>{{ HTML::linkAction('CoursesController@showLimited', $section->code.$section->number.'-'.$section->section.' ('.$section->semester->code.')', array($section->id)) }}</td>
  42. <td>{{ $section->user->surnames }}, {{ $section->user->first_name }}</td>
  43. <td>
  44. @if(count($section->assessedActivities))
  45. <span class="glyphicon glyphicon-ok"></span>
  46. @endif
  47. </td>
  48. <td>
  49. @if(count($section->publishedActivities))
  50. <span class="glyphicon glyphicon-ok"></span>
  51. @endif
  52. </td>
  53. </tr>
  54. @endforeach
  55. </tbody>
  56. </table>
  57. </div>
  58. <div class="col-md-7">
  59. <h3>Transformative Action Overview</h3>
  60. <table class="table table-striped table-condensed">
  61. <thead>
  62. <tr>
  63. <th>Activity</th>
  64. <th>Section</th>
  65. <th>Transformative Action</th>
  66. <th>Comments</th>
  67. </tr>
  68. </thead>
  69. <tbody>
  70. @foreach ($activities as $activity)
  71. <tr>
  72. <td>{{ $activity->name }} </td>
  73. <td>{{ $activity->course->section }}</td>
  74. @if(isset($activity->transforming_action))
  75. <td><strong>{{ $activity->transforming_action->at_text }}: </strong>{{$activity->transforming_action->description}}</td>
  76. @else
  77. <td></td>
  78. @endif
  79. <td>{{ $activity->assessment_comments }}</td>
  80. </tr>
  81. @endforeach
  82. </tbody>
  83. </table>
  84. </div>
  85. </div>
  86. @stop
  87. @section('included-js')
  88. <!-- HighCharts -->
  89. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  90. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  91. @stop
  92. @section('javascript')
  93. // --------------------------------------------------------------------------
  94. // Page load
  95. // --------------------------------------------------------------------------
  96. // --------------------------------------------------------------------------
  97. // Functions
  98. // --------------------------------------------------------------------------
  99. $(function () {
  100. $('#graph').highcharts({
  101. chart: {
  102. type: 'bar'
  103. },
  104. title: {
  105. text: 'Performance by Learning Outcome Criteria in {{ $title }}'
  106. },
  107. xAxis: {
  108. categories: [
  109. @foreach($outcomes as $outcome)
  110. "{{{ $outcome->name }}} <br>(N = {{$outcomes_attempted[$outcome->id]}}, {{$outcomes_achieved[$outcome->id]}})",
  111. @endforeach
  112. ],
  113. labels: {
  114. style: {
  115. fontSize:'11px'
  116. },
  117. step:1,
  118. useHTML:true,
  119. formatter: function() {
  120. return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  121. },
  122. }
  123. },
  124. yAxis: {
  125. min: 0,
  126. max: 100,
  127. title: {
  128. text: 'Percentage'
  129. },
  130. @if($grouped_courses[0]->program->expected_outcome_target == null)
  131. plotLines:[{
  132. value:70.00,
  133. color: '#000',
  134. width:3,
  135. zIndex:4,
  136. label:{
  137. text: 'Goal (70.00%)',
  138. style: {
  139. color: '#000',
  140. fontSize: '14px',
  141. }
  142. }
  143. }]
  144. @else
  145. plotLines:[{
  146. value:{{$grouped_courses[0]->program->expected_outcome_target->expected_target}},
  147. color: '#000',
  148. width:3,
  149. zIndex:4,
  150. label:{
  151. text: 'Goal ({{$grouped_courses[0]->program->expected_outcome_target->expected_target}}%)',
  152. style: {
  153. color: '#000',
  154. fontSize: '14px',
  155. }
  156. }
  157. }]
  158. @endif
  159. },
  160. tooltip: {
  161. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  162. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  163. '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
  164. footerFormat: '</table>',
  165. shared: true,
  166. useHTML: true
  167. },
  168. plotOptions: {
  169. bar: {
  170. //grouping: false,
  171. shadow: false,
  172. borderWidth: 0,
  173. },
  174. series: {
  175. pointPadding: 0,
  176. groupPadding: 0.075
  177. },
  178. },
  179. series: [/*{
  180. name: 'Expected Value',
  181. color: '#555555',
  182. dataLabels: {
  183. enabled: true,
  184. fontSize: 8,
  185. color: '#fff',
  186. align: 'right',
  187. format: '{y:.1f}%',
  188. style: {
  189. //fontWeight: 'bold'
  190. },
  191. y:-1
  192. },
  193. data: [
  194. @foreach($outcomes as $index => $outcome)
  195. @if(
  196. is_array($outcomes_attempted)
  197. && array_key_exists($outcome->id, $outcomes_attempted)
  198. && $outcomes_attempted[$outcome->id]!=0)
  199. {{{ $outcome->expected_outcome }}},
  200. @else
  201. 0,
  202. @endif
  203. @endforeach
  204. ]
  205. }, */{
  206. name: 'Obtained Value',
  207. color: '#e70033',
  208. dataLabels: {
  209. enabled: true,
  210. fontSize: 8,
  211. color: '#fff',
  212. align: 'right',
  213. format: '{y:.1f}%',
  214. style: {
  215. //fontWeight: 'bold'
  216. },
  217. y:-1
  218. },
  219. data:[
  220. @foreach($outcomes as $index => $outcome)
  221. @if(
  222. is_array($outcomes_attempted)
  223. && array_key_exists($outcome->id, $outcomes_attempted)
  224. && $outcomes_attempted[$outcome->id]!=0)
  225. {{{ ($outcomes_achieved[$outcome->id]/$outcomes_attempted[$outcome->id])*100 }}},
  226. @else
  227. 0,
  228. @endif
  229. @endforeach
  230. ]
  231. }]
  232. });
  233. // Include dummy graph for outcomes
  234. @include('global.dummy-outcomes')
  235. });
  236. // --------------------------------------------------------------------------
  237. // Events
  238. // --------------------------------------------------------------------------
  239. @stop