Açıklama Yok

student.blade.php 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. <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 $activity_id => $activity)
  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">{{ $assessments[$activity_id]['activity'] }}</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($assessments[$activity_id]["criteria"] as $activity_criterion_id => $criteria)
  55. <tr>
  56. <td>{{{ $criteria->name }}}</td>
  57. <td>{{{$assessments[$activity_id]["score"][$activity_criterion_id]}}}</td>
  58. <td>
  59. @if($assessments[$activity_id]['score'][$activity_criterion_id] != 0 || $assessments[$activity_id]['score'][$activity_criterion_id] !="N/A")
  60. {{ $assessments[$activity_id]['explication'][$activity_criterion_id] }}
  61. @else
  62. There is not enough information to assess this criterion, or the student did not complete the required work.
  63. @endif
  64. </td>
  65. </tr>
  66. @endforeach
  67. </tbody>
  68. </table>
  69. <p class="lead"><strong>Percentage:</strong> {{ $assessments[$activity_id]['percentage'] }}%</p>
  70. <p class="lead"><strong>Comments:</strong> {{ $assessments[$activity_id]['comments'] }}</p>
  71. </div>
  72. </div>
  73. @endforeach
  74. </div>
  75. </div>
  76. @else
  77. <div class="row">
  78. <div class="col-md-12">
  79. <p class="lead">No activities have been assessed.</p>
  80. </div>
  81. </div>
  82. @endif
  83. @stop
  84. @section('javascript')
  85. // --------------------------------------------------------------------------
  86. // Page load
  87. // --------------------------------------------------------------------------
  88. // Hide accordion panel contents by default
  89. $('.panel-body').hide();
  90. // --------------------------------------------------------------------------
  91. // Functions
  92. // --------------------------------------------------------------------------
  93. // --------------------------------------------------------------------------
  94. // Events
  95. // --------------------------------------------------------------------------
  96. // When panel heading is clicked, toggle it
  97. $('.panel-heading').on('click', function()
  98. {
  99. $(this).next().stop().slideToggle();
  100. })
  101. @stop