123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- @extends('layouts.master')
-
- @section('navigation')
- @if($role==1)
- @include('local.managers.admins._new_navigation')
- @elseif($role==2)
- @include('local.managers.sCoords._new_navigation')
- @elseif($role==3)
- @include('local.managers.pCoords._new_navigation')
- @else
- @include('local.professors._navigation')
- @endif
- @stop
-
- @section('main')
- <a href="{{ action('ProgramsController@studentsProgramAssessmentReportForProfessors', array($program->id)); }}" class="btn btn-primary pull-left" alt="print">Go to Performance by Program Students</a>
- <div class="row" id = "allGraph">
- <div class="col-md-12" id="graph"></div>
- </div>
- <div class="row graph-stu" id = "programGraph">
- <div class = "col-md-12" id="graph-stu-program"></div>
- </div>
-
- <div class="row">
- <div class="col-md-12">
- <h3>Contact Information</h3>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <h4>School/College Coordinator(s)</h4>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Name</th>
- <th>Email</th>
- <th>Office Phone</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($scoords as $scoord)
- <tr>
- <td>{{ $scoord->surnames }}, {{ $scoord->first_name }}</td>
- <td>
- <a href="mailto:{{ $scoord->email }}">{{ $scoord->email }}</a>
- </td>
- <td>
- @if($scoord->office_phone)
- {{{ $scoord->office_phone }}}
-
- @if($scoord->office_extension)
- <span>ext.</span> {{{ $scoord->office_extension }}}
- @endif
- @else
- Not set
- @endif
- </td>
- </tr>
-
- @endforeach
- </tbody>
- </table>
- </div>
- <div class="col-md-6">
- <h4>Program Coordinator(s)</h4>
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Name</th>
- <th>Email</th>
- <th>Office Phone</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($pcoords as $pcoord)
- <tr>
- <td>{{ $pcoord->surnames }}, {{ $pcoord->first_name }}</td>
- <td>
- <a href="mailto:{{ $pcoord->email }}">{{ $pcoord->email }}</a>
- </td>
- <td>
- @if($pcoord->office_phone)
- {{{ $pcoord->office_phone }}}
-
- @if($pcoord->office_extension)
- <span>ext.</span> {{{ $pcoord->office_extension }}}
- @endif
- @else
- Not set
- @endif
- </td>
- </tr>
-
- @endforeach
- </tbody>
- </table>
- </div>
- </div>
-
- <script>
-
- function changeView(graph_to_hide, graph_to_show, index, message){
-
- current_message = $("#change-view-btn"+index).html();
- $("#change-view-btn"+index).html(message);
-
- $(graph_to_hide).hide()
- $(graph_to_show).show()
-
-
- $("#change-view-btn"+index).attr('onclick','changeView("'+graph_to_show+'", "'+graph_to_hide+'","'+index+'","'+current_message+'")')
- }
-
- $(".graph-stu").hide();
- </script>
-
- @stop
-
- @section('included-js')
-
- <!-- HighCharts -->
- <script src="{{ asset('vendor/highcharts/highcharts.js') }}"></script>
- <!--script src="http://code.highcharts.com/modules/exporting.js"></script -->
-
- @stop
-
- @section('javascript')
- $(function () {
- $('#graph').highcharts({
- chart: {
- type: 'bar'
- },
- title: {
- text: 'Achieved vs Expected Learning Outcomes'
- },
- xAxis: {
- categories: [
- @foreach($outcomes as $outcome)
- "{{{ $outcome->name }}}<br> (N = {{$outcomes_attempted[$outcome->id]}}, {{$outcomes_achieved[$outcome->id]}})",
- @endforeach
- ],
- labels: {
- style: {
- fontSize:'11px'
- },
- step:1,
- useHTML:true,
- formatter: function() {
- return '<div style="width:200px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
- },
- }
- },
- yAxis: {
- min: 0,
- max: 100,
- title: {
- text: 'Percentage'
- },@if($program->expected_outcome_target == null)
- plotLines:[{
- value:70.00,
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal (70.00%)',
- style: {
- color: '#000',
- fontSize: '14px',
- }
-
- }
- }]
- @else
- plotLines:[{
- value:{{$program->expected_outcome_target->expected_target}},
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal ({{$program->expected_outcome_target->expected_target}}%)',
- style: {
- color: '#000',
- fontSize: '14px',
- }
-
- }
- }]
-
- @endif
- },
- tooltip: {
- headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
- pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
- '<td style="padding:0"><b>{point.y:.2f}</b></td></tr>',
- footerFormat: '</table>',
- shared: true,
- useHTML: true
- },
- plotOptions: {
- bar: {
- //grouping: false,
- shadow: false,
- borderWidth: 0,
- },
- series: {
- pointPadding: 0,
- groupPadding: 0.075
- },
- },
- series: [{
- name: 'Achieved',
- color: '#e70033',
- dataLabels: {
- enabled: true,
- fontSize: 8,
- color: '#fff',
- align: 'right',
- format: '{y:.1f}%',
- style: {
- //fontWeight: 'bold'
- },
- y:-1
- },
- data:[
- @foreach($outcomes as $index => $outcome)
- @if(
- is_array($outcomes_attempted)
- && array_key_exists($outcome->id, $outcomes_attempted)
- && $outcomes_attempted[$outcome->id]!=0)
-
- <?php
- if (isset($outcomes_achieved[$outcome->id])){
- $achieved = $outcomes_achieved[$outcome->id];
- }
- else $achieved = 0;
- ?>
- {{{ ($achieved/$outcomes_attempted[$outcome->id])*100 }}},
- @else
- 0,
- @endif
- @endforeach
-
- ],
- pointPadding: 0,
- } {{--, {
- name: 'Expected',
- color: '#555555',
- dataLabels: {
- enabled: true,
- fontSize: 8,
- color: '#fff',
- align: 'right',
- format: '{y:.1f}%',
- style: {
- //fontWeight: 'bold'
- },
- y:-1
- },
- data: [
- @foreach($outcomes as $index => $outcome)
- @if(
- is_array($outcomes_attempted)
- && array_key_exists($outcome->id, $outcomes_attempted)
- && $outcomes_attempted[$outcome->id]!=0)
- {{{ $outcome->expected_outcome }}},
- @else
- 0,
- @endif
- @endforeach
- ],
- pointPadding: 0,
-
- } --}}]
- });
-
-
- $('#graph-stu-program').highcharts({
- chart: {
- type: 'bar'
- },
- title: {
- text: 'Performance by Learning Outcome Criteria in Program\'s students'
- },
- legend: {
- reversed: true,
- },
- xAxis: {
- categories: [
- @foreach($outcomes as $outcome)
- "{{{ $outcome->name }}} <br>(N = {{$program_outcomes_attempted[$outcome->id]}}, {{$program_outcomes_achieved[$outcome->id]}})",
- @endforeach
- ],
- labels: {
- style: {
- fontSize:'11px'
- },
- step:1,
- useHTML:true,
- formatter: function() {
- return '<div style="width:100px; word-break:break; text-overflow:ellipsis; overflow:hidden;">'+this.value+'</div>';
- },
- }
- },
-
- yAxis: {
- min: 0,
- max: 100,
- title: {
- text: 'Percentage'
- },
- @if($program->expected_outcome_target == null)
- plotLines:[{
- value:70.00,
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal (70.00%)',
- style: {
- color: '#000',
- fontSize: '14px',
- }
-
- }
- }]
- @else
- plotLines:[{
- value:{{$program->expected_outcome_target->expected_target}},
- color: '#000',
- width:3,
- zIndex:4,
- label:{
- text: 'Goal ({{$program->expected_outcome_target->expected_target}}%)',
- style: {
- color: '#000',
- fontSize: '14px',
- }
-
- }
- }]
-
- @endif
- },
- tooltip: {
- enabled:false
- },
- plotOptions: {
- bar: {
- //grouping: false,
- shadow: false,
- borderWidth: 0,
- },
- series: {
- pointPadding: 0,
- groupPadding: 0.075,
- animation: false
- },
- },
- series: [{
- name: 'Obtained Value',
- color: '#e70033',
- dataLabels: {
- enabled: true,
- fontSize: 8,
- color: '#fff',
- align: 'right',
- format: '{y:.1f}%',
- style: {
- //fontWeight: 'bold'
- },
- y:-1
- },
- data:[
- @foreach($outcomes as $index => $outcome)
- @if(
- is_array($program_outcomes_attempted)
- && array_key_exists($outcome->id, $program_outcomes_attempted)
- && $program_outcomes_attempted[$outcome->id]!=0)
- {{{ ($program_outcomes_achieved[$outcome->id]/$program_outcomes_attempted[$outcome->id])*100 }}},
- @else
- 0,
- @endif
- @endforeach
-
- ]
- }]
- });
-
- // Include dummy graph for outcomes
- @include('global.dummy-outcomes')
- });
-
-
-
- @stop
|