@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')
Go to Performance by Program Students
School/College Coordinator(s)
Name |
Email |
Office Phone |
@foreach ($scoords as $scoord)
{{ $scoord->surnames }}, {{ $scoord->first_name }} |
{{ $scoord->email }}
|
@if($scoord->office_phone)
{{{ $scoord->office_phone }}}
@if($scoord->office_extension)
ext. {{{ $scoord->office_extension }}}
@endif
@else
Not set
@endif
|
@endforeach
Program Coordinator(s)
Name |
Email |
Office Phone |
@foreach ($pcoords as $pcoord)
{{ $pcoord->surnames }}, {{ $pcoord->first_name }} |
{{ $pcoord->email }}
|
@if($pcoord->office_phone)
{{{ $pcoord->office_phone }}}
@if($pcoord->office_extension)
ext. {{{ $pcoord->office_extension }}}
@endif
@else
Not set
@endif
|
@endforeach
@stop
@section('included-js')
@stop
@section('javascript')
$(function () {
$('#graph').highcharts({
chart: {
type: 'bar'
},
title: {
text: 'Achieved vs Expected Learning Outcomes'
},
xAxis: {
categories: [
@foreach($outcomes as $outcome)
"{{{ $outcome->name }}}
(N = {{$outcomes_attempted[$outcome->id]}}, {{$outcomes_achieved[$outcome->id]}})",
@endforeach
],
labels: {
style: {
fontSize:'11px'
},
step:1,
useHTML:true,
formatter: function() {
return ''+this.value+'
';
},
}
},
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: '{point.key}',
pointFormat: '{series.name}: | ' +
'{point.y:.2f} |
',
footerFormat: '
',
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)
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 }}}
(N = {{$program_outcomes_attempted[$outcome->id]}}, {{$program_outcomes_achieved[$outcome->id]}})",
@endforeach
],
labels: {
style: {
fontSize:'11px'
},
step:1,
useHTML:true,
formatter: function() {
return ''+this.value+'
';
},
}
},
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