@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($activity->rubric == NULL && 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 {{ HTML::linkAction('RubricsController@show', 'View Rubric', array($activity->id), array('class'=>'btn btn-primary btn-sm btn-block')) }} @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->outcomes_attempted == NULL && 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 {{ HTML::linkAction('ActivitiesController@viewAssessment', 'View Assessment Sheet', array($activity->id), array('class'=>'btn btn-primary btn-sm btn-block')) }} @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 }}

@if($activity->transforming_actions != NULL)
Transforming Actions
{{{ $activity->transforming_actions }}} @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: {{{ count(json_decode($activity->criteria_achieved, true))*22+225 }}}, }, title: { text: 'Criteria Achievement', }, xAxis: { categories: [ @if($activity->criteria_achieved_percentage!=NULL) @foreach(json_decode($activity->criteria_achieved, true) 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($activity->rubric!=NULL) plotLines:[{ value:{{ $activity->rubric->expected_percentage }}, color: '#000', width:3, zIndex:4, label:{ text: 'Goal ({{ $activity->rubric->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->criteria_achieved_percentage!=NULL) @foreach(json_decode($activity->criteria_achieved_percentage, true) as $id=>$value) //This conditional is to ignore criteria that weren't assessed. These would have a value of null. @if($value) {{{ $value }}}, @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