Без опису

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @extends('layouts.master')
  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('main')
  14. <div class="row">
  15. <div class="col-md-12">
  16. <div class="btn-group pull-right" role="group" aria-label="navigation-buttons">
  17. {{ HTML::linkAction('StudentsController@printStudentReport', 'Print', array($course->semester_id, $course->code.$course->number.'-'.$course->section, $student->number), array('class'=>'btn btn-default')) }}
  18. {{ HTML::linkAction('CoursesController@show', 'Back to Section', array($course->id), array('class'=>'btn btn-default')) }}
  19. </div>
  20. <p class="lead">Student Number: {{{ substr($student->number, 0, 3)}}}-{{{substr($student->number, 3, 2)}}}-{{{substr($student->number, 5, 4)}}}</p>
  21. <p class="lead">Course: {{{ $course->name }}} ({{{ $course->code }}} {{{ $course->number }}}-{{{ $course->section }}})</p>
  22. </div>
  23. </div>
  24. <!-- <div class="row">
  25. <div class="col-md-12" id="graph"></div>
  26. </div> -->
  27. @if($assessments!=NULL)
  28. <div class="row">
  29. <div class="col-md-12">
  30. <h3>Assessment Results </h3>
  31. @foreach($assessments as $assessment)
  32. <?php
  33. $activity = Activity::find($assessment->activity_id);
  34. // Used to get custom rubric criterion indicators
  35. $rubric_contents = json_decode(Rubric::find($activity->rubric_id)->contents, true);
  36. ?>
  37. <div class="panel panel-default">
  38. <div class="panel-heading">
  39. <h3 class="panel-title">{{ $activity->name }}</h3>
  40. </div>
  41. <div class="panel-body">
  42. <table class="table table-striped table-condensed">
  43. <thead>
  44. <tr>
  45. <th class="col-md-4">Criterion</th>
  46. <th class="col-md-2">Score</th>
  47. <th class="col-md-6">Reason</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <?php
  52. $scores = json_decode($assessment->scores, true);
  53. ?>
  54. @foreach($rubric_contents as $row)
  55. <?php $real_score = $scores[$row['id']]; ?>
  56. <tr>
  57. <td>{{{ $row['name'] }}}</td>
  58. <td>{{{ $real_score }}}</td>
  59. <td>
  60. @if($real_score == 1 || $real_score == 2)
  61. {{ nl2br($row['description12']) }}
  62. @elseif ($real_score == 3 || $real_score == 4)
  63. {{ nl2br($row['description34']) }}
  64. @elseif ($real_score == 5 || $real_score == 6)
  65. {{ nl2br($row['description56']) }}
  66. @elseif ($real_score == 7 || $real_score == 8)
  67. {{ nl2br($row['description78']) }}
  68. @else
  69. There is not enough information to assess this criterion, or the student did not complete the required work.
  70. @endif
  71. </td>
  72. </tr>
  73. @endforeach
  74. </tbody>
  75. </table>
  76. <p class="lead"><strong>Percentage:</strong> {{ $assessment->percentage }}%</p>
  77. <p class="lead"><strong>Comments:</strong> {{ $assessment->comments }}</p>
  78. </div>
  79. </div>
  80. @endforeach
  81. </div>
  82. </div>
  83. @else
  84. <div class="row">
  85. <div class="col-md-12">
  86. <p class="lead">No activities have been assessed.</p>
  87. </div>
  88. </div>
  89. @endif
  90. @stop
  91. @section('javascript')
  92. // --------------------------------------------------------------------------
  93. // Page load
  94. // --------------------------------------------------------------------------
  95. // Hide accordion panel contents by default
  96. $('.panel-body').hide();
  97. // --------------------------------------------------------------------------
  98. // Functions
  99. // --------------------------------------------------------------------------
  100. // --------------------------------------------------------------------------
  101. // Events
  102. // --------------------------------------------------------------------------
  103. // When panel heading is clicked, toggle it
  104. $('.panel-heading').on('click', function()
  105. {
  106. $(this).next().stop().slideToggle();
  107. })
  108. @stop