@extends('layouts.master') @section('navigation') @if($role==1) @include('local.managers.admins._navigation') @elseif($role==2) @include('local.managers.sCoords._navigation') @elseif($role==3) @include('local.managers.pCoords._navigation') @else @include('local.professors._navigation') @endif @stop @section('main')
@if(!$grouped_courses->isEmpty())
@foreach($grouped_courses as $index=>$grouped_course)

About this Course

{{ $grouped_course->name }}

Term: {{ $grouped_course->semester->name }}

School: {{ $grouped_course->program->school->name }}

Program: {{ $grouped_course->program->name }}

@foreach($grouped_sections[$index] as $section) @endforeach
Section Activities Students Assessed
{{ HTML::linkAction('CoursesController@show', $section->section, array($section->id)) }} {{ count($section->activities) }} {{ count($section->students) }} @if($section->outcomes_attempted!=NULL) @endif
@endforeach
@else
You have no classes assigned for the selected semester(s). Select other semesters or contact the administrators via the Feedback page if you think it is a mistake.
@endif
@stop @section('included-js') @stop @section('javascript') // -------------------------------------------------------------------------- // Page load // -------------------------------------------------------------------------- $('#levelTabs a:first').tab('show'); loadGraphs(); // -------------------------------------------------------------------------- // Functions // -------------------------------------------------------------------------- function loadGraphs() { @foreach($grouped_courses as $index=>$grouped_course) // Load grad charts after clicking tab, so they are sized correctly. $('#graph-{{ $index }}').highcharts({ chart: { type: 'bar' }, title: { text: 'Achieved vs Expected Learning Outcomes' }, xAxis: { categories: [ @foreach($outcomes as $outcome) "{{{ $outcome->name }}}", @endforeach ], labels: { style: { fontSize:'11px' }, step:1, useHTML:true, formatter: function() { return '
'+this.value+'
'; }, } }, yAxis: { min: 0, max: 100, title: { text: 'Percentage' } }, tooltip: { headerFormat: '{point.key}', pointFormat: '' + '', footerFormat: '
{series.name}: {point.y:.2f}
', 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 $outcome) @if( is_array($grouped_outcomes_attempted_results[$index]) && array_key_exists($outcome->id, $grouped_outcomes_attempted_results[$index]) && $grouped_outcomes_attempted_results[$index][$outcome->id]!=0) {{{ ($grouped_outcomes_achieved_results[$index][$outcome->id]/$grouped_outcomes_attempted_results[$index][$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 $outcome) @if( is_array($grouped_outcomes_attempted_results[$index]) && array_key_exists($outcome->id, $grouped_outcomes_attempted_results[$index]) && $grouped_outcomes_attempted_results[$index][$outcome->id]!=0) {{{ $outcome->expected_outcome }}}, @else 0, @endif @endforeach ], pointPadding: 0, }] }); @endforeach } // -------------------------------------------------------------------------- // Events // -------------------------------------------------------------------------- $('#levelTabs a').click(function (e) { e.preventDefault() $(this).tab('show'); loadGraphs(); }); // Include dummy graph for outcomes @include('global.dummy-outcomes') @stop