Geen omschrijving

print_course.blade.php 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. @extends('layouts.print')
  2. @section('navigation')
  3. @if($role==1)
  4. @include('local.managers.admins._navigation')
  5. @elseif($role==2)
  6. @include('local.managers.sCoords._navigation')
  7. @elseif($role==3)
  8. @include('local.managers.pCoords._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 Report 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. </tr>
  28. </thead>
  29. <tbody>
  30. @foreach($sections as $section)
  31. <tr>
  32. <td>{{{ $section->code.$section->number.'-'.$section->section.' ('.$section->semester->code.')'}}}</td>
  33. <td>{{ $section->user->surnames }}, {{ $section->user->first_name }}</td>
  34. <td>
  35. @if($section->outcomes_attempted!=NULL)
  36. <span class="glyphicon glyphicon-ok"></span>
  37. @endif
  38. </td>
  39. </tr>
  40. @endforeach
  41. </tbody>
  42. </table>
  43. <h3>Transforming Action Overview</h3>
  44. <table>
  45. <thead>
  46. <tr>
  47. <th class="col-md-3">Activity</th>
  48. <th class="col-md-1">Section</th>
  49. <th class="col-md-8">Transforming Action</th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. @foreach ($activities as $activity)
  54. <tr>
  55. <td>{{ $activity->name }} </td>
  56. <td>{{ $activity->course->section }}</td>
  57. <td>{{ $activity->transforming_actions }}</td>
  58. </tr>
  59. @endforeach
  60. </tbody>
  61. </table>
  62. @stop
  63. @section('included-js')
  64. <!-- HighCharts -->
  65. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  66. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  67. @stop
  68. @section('javascript')
  69. // --------------------------------------------------------------------------
  70. // Page load
  71. // --------------------------------------------------------------------------
  72. // --------------------------------------------------------------------------
  73. // Functions
  74. // --------------------------------------------------------------------------
  75. $(function () {
  76. $('#graph').highcharts({
  77. chart: {
  78. type: 'bar'
  79. },
  80. title: {
  81. text: 'Performance by Learning Outcome Criteria in {{ $title }}'
  82. },
  83. legend: {
  84. reversed: true,
  85. },
  86. xAxis: {
  87. categories: [
  88. @foreach($outcomes as $outcome)
  89. "{{{ $outcome->name }}}",
  90. @endforeach
  91. ],
  92. labels: {
  93. style: {
  94. fontSize:'10px'
  95. },
  96. step:1,
  97. useHTML:true,
  98. formatter: function() {
  99. return '<div class="blue" style="word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  100. },
  101. }
  102. },
  103. yAxis: {
  104. min: 0,
  105. max: 100,
  106. title: {
  107. text: 'Percentage'
  108. }
  109. },
  110. tooltip: {
  111. enabled:false,
  112. },
  113. plotOptions: {
  114. bar: {
  115. //grouping: false,
  116. shadow: false,
  117. borderWidth: 0,
  118. },
  119. series: {
  120. pointPadding: 0,
  121. groupPadding: 0.075,
  122. animation:false,
  123. },
  124. },
  125. series: [{
  126. name: 'Expected Value',
  127. color: '#555555',
  128. dataLabels: {
  129. enabled: true,
  130. fontSize: 8,
  131. color: '#fff',
  132. align: 'right',
  133. format: '{y:.1f}%',
  134. style: {
  135. //fontWeight: 'bold'
  136. },
  137. y:-1
  138. },
  139. data: [
  140. @foreach($outcomes as $index => $outcome)
  141. @if(
  142. is_array($outcomes_attempted)
  143. && array_key_exists($outcome->id, $outcomes_attempted)
  144. && $outcomes_attempted[$outcome->id]!=0)
  145. {{{ $outcome->expected_outcome }}},
  146. @else
  147. 0,
  148. @endif
  149. @endforeach
  150. ]
  151. },{
  152. name: 'Obtained Value',
  153. color: '#e70033',
  154. dataLabels: {
  155. enabled: true,
  156. fontSize: 8,
  157. color: '#fff',
  158. align: 'right',
  159. format: '{y:.1f}%',
  160. style: {
  161. //fontWeight: 'bold'
  162. },
  163. y:-1
  164. },
  165. data:[
  166. @foreach($outcomes as $index => $outcome)
  167. @if(
  168. is_array($outcomes_attempted)
  169. && array_key_exists($outcome->id, $outcomes_attempted)
  170. && $outcomes_attempted[$outcome->id]!=0)
  171. {{{ ($outcomes_achieved[$outcome->id]/$outcomes_attempted[$outcome->id])*100 }}},
  172. @else
  173. 0,
  174. @endif
  175. @endforeach
  176. ]
  177. }]
  178. });
  179. // Include dummy graph for outcomes
  180. @include('global.dummy-outcomes')
  181. });
  182. @stop