No Description

grouped_course.blade.php 7.6KB

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