@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._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')
@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', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }} @else @if (count($activity->rubric) != 0) {{ HTML::linkAction('RubricsController@show', 'View Rubric', [$activity->id], ['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', [$activity->id], ['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', [$activity->id], ['class' => 'btn btn-primary btn-sm btn-block']) }} @else @if ($activity->is_assessed()) {{ HTML::linkAction('ActivitiesController@viewAssessment', 'View Assessment Sheet', [$activity->id], ['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', [$activity->id], ['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', [$course->id], ['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" }); string_for_format = ""; $('#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: '' + ''+ '{point.outcomes}', //''+ // '', // ' //'', footerFormat: '
{series.name}: {point.y:.2f}%
Learning Outcomes:{point.outcomes},
Outcome2
{point.outcomes},
Outcome2
', 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) {y: {{ $crit->score_percentage }}, outcomes: "{{ $crit->outcome_names_html }}"}, @else {y:0, outcomes:"{{ $crit->outcome_names_html }}"}, @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) @if( array_key_exists($outcome->id, $outcomes_activity) && $outcomes_activity[$outcome->id] //&& //array_key_exists($outcome->id, $outcomes_attempted) && //$outcomes_attempted[$outcome->id] != 0 ) id]->attempted; $achieved = $outcomes_activity[$outcome->id]->achieved; ?> @else @endif "{{ $outcome->name }}
(N = {{$attempted}} , {{$achieved}})", @endforeach ], labels: { style: { fontSize:'11px' }, step:1, useHTML:true, formatter: function() { return '
'+this.value+'
'; }, } }, yAxis: { min: 0, max: 100, title: { text: 'Percentage' }, @if($activity->course->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:{{$activity->course->program->expected_outcome_target->expected_target}}, color: '#000', width:3, zIndex:4, label:{ text: 'Goal ({{$activity->course->program->expected_outcome_target->expected_target}})', 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.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( array_key_exists($outcome->id, $outcomes_activity) && $outcomes_activity[$outcome->id] && $outcomes_activity[$outcome->id]->attempted!=0) {{$outcomes_activity[$outcome->id]->achieved / $outcomes_activity[$outcome->id]->attempted * 100}} {{-- ($outcomes_achieved[$outcome->id] / $outcomes_attempted[$outcome->id]) * 100 --}}, {{--@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