Няма описание

print_course.blade.php 7.1KB

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