@extends('layouts.master') @section('css') {{ HTML::style('vendor/jquery-ui-1.11.4.custom/jquery-ui.min.css') }} {{ HTML::style('vendor/jquery-ui-1.11.4.custom/jquery-ui.theme.min.css') }} @stop @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 (in_array($course->semester->id, $active_semesters)) @endif @if(count($activity->rubric) == 0 && in_array($course->semester->id, $active_semesters)) {{ HTML::linkAction('RubricsController@newRubric', 'Assign Rubric', array($activity->id), array('class'=>'btn btn-primary btn-sm btn-block')) }} @else @if(count($activity->rubric) != 0) {{ HTML::linkAction('RubricsController@show', 'View Rubric', array($activity->id), array('class'=>'btn btn-primary btn-sm btn-block')) }} @else
No rubric associated to this activity
@endif @if (in_array($course->semester->id, $active_semesters)) {{ HTML::linkAction('RubricsController@newRubric', 'Change Rubric', array($activity->id), array('class'=>'btn btn-primary btn-sm btn-block')) }} @endif @if(!$activity->is_assessed() && in_array($course->semester->id, $active_semesters)) {{ HTML::linkAction('ActivitiesController@assess', 'Assess', array($activity->id), array('class'=>'btn btn-primary btn-sm btn-block')) }} @else @if($activity->is_assessed()) {{ HTML::linkAction('ActivitiesController@viewAssessment', 'View Assessment Sheet', array($activity->id), array('class'=>'btn btn-primary btn-sm btn-block')) }} @else
No assessment associated to this activity
@endif @if (in_array($course->semester->id, $active_semesters)) {{ HTML::linkAction('ActivitiesController@assess', 'Edit Assessment', array($activity->id), array('class'=>'btn btn-primary btn-sm btn-block')) }} @endif @endif @endif @if (in_array($course->semester->id, $active_semesters)) @endif {{ HTML::linkAction('CoursesController@show', 'Back to Section', array($course->id), array('class'=>'btn btn-primary btn-sm btn-block')) }}

Description

{{ $activity->description }}

formativeActionsWithCriteria(); ?> @if($formative_actions != NULL)
Formative Actions

{{ $formative_actions[0]->at_text }}: {{$formative_actions[0]->description}}

Formative Action's Associated Criteria
@endif @if($activity->assessment_comments != NULL)
Assessment Comments
{{{ $activity->assessment_comments }}} @endif
@stop @section('included-js') @stop @section('javascript') $(function () { $('#date').datepicker({ dateFormat: "yy-mm-dd" }); $('#criteriaGraph').highcharts({ chart: { type: 'bar', height: @if($activity->is_assessed()) {{ count($activity->criteria_achieved() )*22+225 }} @else {{22+225}} @endif , }, title: { text: 'Criteria Achievement', }, xAxis: { categories: [ @if($activity->is_assessed()) @foreach($activity->criteria_achieved() as $id=>$value) "{{{ Criterion::withTrashed()->find($id)->name }}}", @endforeach @endif ], labels: { style: { fontSize:'12px' }, step:1, useHTML:true, formatter: function() { return '
'+this.value+'
'; }, } }, yAxis: { min: 0, max: 100, title: { text: 'Percentage' }, @if(isset($activity->rubric[0]) and isset($activity->rubric[0]->expected_percentage) ) plotLines:[{ value:{{ $activity->rubric[0]->expected_percentage }}, color: '#000', width:3, zIndex:4, label:{ text: 'Goal ({{ $activity->rubric[0]->expected_percentage }}%)', style: { color: '#000', fontSize: '14px', } } }] @endif }, 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.1 }, }, series: [{ type:'column', name: 'Passed', color: '#e70033', dataLabels: { enabled: true, fontSize: 8, color: '#fff', align: 'right', format: '{y:.1f}%', style: { //fontWeight: 'bold' }, y:-1 }, data:[ @if($activity->is_assessed()) @foreach($activity->cap_array as $id=>$crit) //This conditional is to ignore criteria that weren't assessed. These would have a value of null. @if($crit->score_percentage) {{{ $crit->score_percentage }}}, @else 0, @endif @endforeach @endif ], pointPadding: 0, } ] }); $('#graph').highcharts({ chart: { type: 'bar', }, title: { text: 'Performance by Learning Outcome Criteria in {{ $title }}' }, 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: '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($outcomes_attempted) && array_key_exists($outcome->id, $outcomes_attempted) && $outcomes_attempted[$outcome->id]!=0) {{{ ($outcomes_achieved[$outcome->id]/$outcomes_attempted[$outcome->id])*100 }}}, @else 0, @endif @endforeach ], pointPadding: 0, }, { name: 'Expected Value', 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, }] }); var chart = $('#graph').highcharts(); var titletext = $('#graph').highcharts().options.title.text; var newtitletext = titletext.replace("'", "\'"); chart.setTitle({text: newtitletext}); // Include dummy graph for outcomes @include('global.dummy-outcomes') }); @stop