@extends('layouts.master') @section('navigation') @if (Auth::user()->role == 1) @include('local.managers.admins._new_navigation') @elseif(Auth::user()->role == 2) @include('local.managers.sCoords._new_navigation') @elseif(Auth::user()->role == 3) @include('local.managers.pCoords._new_navigation') @endif @stop @section('main')

This report contains performance information for all your Program's assessed courses during the following semester(s):

@if ($program)

{{ $outcome->name }}

@if ($program->assessesOutcome($outcome->id)) @foreach ($program->courses as $index2 => $course) whereNotNull('outcomes_attempted') ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'') ->with(array('activities'=>function($query) use(&$outcome){ $query->whereNotNull('outcomes_attempted'); $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} )) ->where('code', $course->code)->where('number',$course->number) ->whereIn('semester_id', Session::get('semesters_ids')) ->get();*/ $sections_evaluating = Course::has('activities') //->whereNotNull('outcomes_attempted') //->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'') ->with([ 'activities' => function ($query) use (&$outcome, &$course) { $activities = DB::table('activities') ->join('activity_criterion', 'activity_criterion.activity_id', '=', 'activities.id') ->join('assessments', 'assessments.activity_criterion_id', '=', 'activity_criterion.id') ->join('criterion_objective_outcome', 'activity_criterion.criterion_id', '=', 'criterion_objective_outcome.criterion_id') ->where('course_id', $course->id) ->where('criterion_objective_outcome.outcome_id', $outcome->id) ->select('activity_id') ->lists('activity_id'); //$query->whereNotNull('outcomes_attempted'); //$query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\''); $query->whereIn('id', $activities); }, ]) ->where('code', $course->code) ->where('number', $course->number) ->whereIn('semester_id', Session::get('semesters_ids')) ->get(); ?> @if (count($sections_evaluating)) @else @endif @endforeach @else @endif

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

{{ $course->code }}-{{ $course->number }}

@foreach ($sections_evaluating as $index3 => $section)
Instance {{ $index3 + 1 }}
@foreach ($section->activities as $index4 => $activity) @if ($activity->draft == 0 && $activity->diagnostic == 0 && array_key_exists($outcome->id, (array) $activity->o_att_array) && $activity->o_att_array[$outcome->id] >= 1)
Measure {{ $index4 + 1 }}

A rubric was used in the {{ $section->code }}-{{ $section->number }} ({{ $section->name }}) course ({{ date('M Y', strtotime($course->updated_at)) }}) to assess students’ {{ strtolower($outcome->name) }} in the activity: "{{ $activity->name }}". N= {{ count($section->students) }}.

The expected performance level was that {{ $activity->rubric[0]->expected_percentage }}% of students participating in the activity would score {{ $activity->rubric[0]->expected_points }} points or more in the 1-8 point scale used.

The results for each criterion were as follows:

@foreach ((array) $activity->cap_array as $criterion_id => $criterion) @if (in_array($outcome->id, json_decode($criterion->outcome_id)) /*== $outcome->id*/ && $criterion->score_percentage >= $activity->rubric[0]->expected_percentage) @elseif(in_array($outcome->id, json_decode($criterion->outcome_id)) && $criterion->score_percentage < $activity->rubric[0]->expected_percentage) @endif @endforeach
{{ $criterion->name }} {{ $criterion->score_percentage }}%
{{ $criterion->name }} {{ $criterion->score_percentage }}%

o_att_array; $o_ach_array = $activity->o_ach_array; $percentage = ($o_ach_array[$outcome->id] / $o_att_array[$outcome->id]) * 100; ?> @if ($percentage >= 100) The expected goal was reached in all (100%) of the criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was met. @elseif ($percentage < 1) The expected goal was reached in none (0%) of the criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was not met. @elseif ($percentage >= $outcome->expected_outcome) The expected goal was reached in {{ $o_ach_array[$outcome->id] }} out of the {{ $o_att_array[$outcome->id] }} ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was met. @elseif ($percentage < $outcome->expected_outcome) The expected goal was reached in {{ $o_ach_array[$outcome->id] }} out of the {{ $o_att_array[$outcome->id] }} ({{ round($percentage, 2) }}%) criteria assessed. Therefore, the goal for this outcome ({{ $outcome->expected_outcome }}%) was not met. @endif

Transformative Actions
@if ($activity->transforming_actions) {{ $activity->transforming_actions }} @else None @endif

@elseif($activity->draft == 0)
Measure {{ $index4 + 1 }}
Outcome not measured. @else @endif @endforeach @endforeach

{{ $course->code }}-{{ $course->number }}

No assessment.

{{ $program->name }} This program does not assess {{ $outcome->name }}.
@else

No professors have assessed courses for your program during the selected semesters.

@endif
@stop @section('javascript') @stop