No Description

print_program.blade.php 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. @extends('layouts.print')
  2. @section('header')
  3. <p class="header-text">
  4. @foreach (Session::get('semesters_info') as $index => $semester_info)
  5. {{ $semester_info }}
  6. @if($index+1 != count(Session::get('semesters_info')))
  7. <strong>&#183;</strong>
  8. @endif
  9. @endforeach
  10. </p>
  11. <p class="header-text">Program Assessment Results</p>
  12. <h1 class="header-text">{{{ $program->name}}}</h1>
  13. @stop
  14. @section('main')
  15. <div id="graph"></div>
  16. <h3>Courses</h3>
  17. @if($program_courses->count()>0)
  18. <table>
  19. <thead>
  20. <tr>
  21. <th>Identifier</th>
  22. <th>Name</th>
  23. <th>Assessed and Published</th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. @foreach($grouped_courses as $grouped_course)
  28. <tr>
  29. <td>{{ $grouped_course->code.$grouped_course->number.' ('.$grouped_course->semester->code.')' }}</td>
  30. <td>{{{ $grouped_course->name}}}</td>
  31. <td>
  32. @if($grouped_course->outcomes_attempted!=NULL)
  33. <span class="glyphicon glyphicon-ok"></span>
  34. @endif
  35. </td>
  36. </tr>
  37. @endforeach
  38. </tbody>
  39. </table>
  40. @else
  41. <p class="lead"> No courses assigned.</p>
  42. @endif
  43. <h3>Sections</h3>
  44. @if($program_courses->count()>0)
  45. <p class="lead"> {{{ $assessed_courses_count }}} out of {{{ $program_courses->count() }}} section(s) doing Assessment ({{{ round($assessed_courses_count/$program_courses->count()*100, 2) }}}%)</p>
  46. <table>
  47. <thead>
  48. <tr>
  49. <th>Identifier</th>
  50. <th>Name</th>
  51. <th>Professor</th>
  52. <th>Assessed Activities</th>
  53. <th>Published Results</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. @foreach($program_courses as $course)
  58. <tr>
  59. <td>{{ $course->code.$course->number.'-'.$course->section.' ('.$course->semester->code.')' }}</td>
  60. <td>{{{ $course->name}}}</td>
  61. <td>{{{ $course->user->surnames }}}, {{{ $course->user->first_name }}}</td>
  62. <td>
  63. @if(count($course->assessedActivities))
  64. <span class="glyphicon glyphicon-ok"></span>
  65. @endif
  66. </td>
  67. <td>
  68. @if(count($course->publishedActivities))
  69. <span class="glyphicon glyphicon-ok"></span>
  70. @endif
  71. </td>
  72. </tr>
  73. @endforeach
  74. </tbody>
  75. </table>
  76. @else
  77. <p class="lead"> No sections assigned.</p>
  78. @endif
  79. <!-- =================== end tabs =================== -->
  80. @stop
  81. @section('included-js')
  82. <!-- HighCharts -->
  83. <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
  84. <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
  85. @stop
  86. @section('javascript')
  87. $('#graph').highcharts({
  88. chart: {
  89. type: 'bar'
  90. },
  91. title: {
  92. text: 'Performance by Learning Outcome Criteria in {{ $program->name }} Program'
  93. },
  94. legend: {
  95. reversed: true,
  96. },
  97. xAxis: {
  98. categories: [
  99. @foreach($outcomes as $outcome)
  100. "{{{ $outcome->name }}}",
  101. @endforeach
  102. ],
  103. labels: {
  104. style: {
  105. fontSize:'11px'
  106. },
  107. step:1,
  108. useHTML:true,
  109. formatter: function() {
  110. return '<div style="width:100px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
  111. },
  112. }
  113. },
  114. yAxis: {
  115. min: 0,
  116. max: 100,
  117. title: {
  118. text: 'Percentage'
  119. }
  120. },
  121. tooltip: {
  122. enabled:false
  123. },
  124. plotOptions: {
  125. bar: {
  126. //grouping: false,
  127. shadow: false,
  128. borderWidth: 0,
  129. },
  130. series: {
  131. pointPadding: 0,
  132. groupPadding: 0.075,
  133. animation: false
  134. },
  135. },
  136. series: [{
  137. name: 'Expected Value',
  138. color: '#555555',
  139. dataLabels: {
  140. enabled: true,
  141. fontSize: 8,
  142. color: '#fff',
  143. align: 'right',
  144. format: '{y:.1f}%',
  145. style: {
  146. //fontWeight: 'bold'
  147. },
  148. y:-1
  149. },
  150. data: [
  151. @foreach($outcomes as $index => $outcome)
  152. @if(
  153. is_array($outcomes_attempted)
  154. && array_key_exists($outcome->id, $outcomes_attempted)
  155. && $outcomes_attempted[$outcome->id]!=0)
  156. {{{ $outcome->expected_outcome }}},
  157. @else
  158. 0,
  159. @endif
  160. @endforeach
  161. ]
  162. },{
  163. name: 'Obtained Value',
  164. color: '#e70033',
  165. dataLabels: {
  166. enabled: true,
  167. fontSize: 8,
  168. color: '#fff',
  169. align: 'right',
  170. format: '{y:.1f}%',
  171. style: {
  172. //fontWeight: 'bold'
  173. },
  174. y:-1
  175. },
  176. data:[
  177. @foreach($outcomes as $index => $outcome)
  178. @if(
  179. is_array($outcomes_attempted)
  180. && array_key_exists($outcome->id, $outcomes_attempted)
  181. && $outcomes_attempted[$outcome->id]!=0)
  182. {{{ ($outcomes_achieved[$outcome->id]/$outcomes_attempted[$outcome->id])*100 }}},
  183. @else
  184. 0,
  185. @endif
  186. @endforeach
  187. ]
  188. }]
  189. });
  190. @stop