123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659 |
- @extends('layouts.master')
-
- @section('navigation')
- @if (Auth::user()->role == 1)
- @include('local.managers.admins._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')
- <div class="row">
- <div class="col-md-12">
- <p>This report contains performance information for all your Program's assessed courses during the following
- semester(s):</p>
- <ul>
- @foreach (Session::get('semesters_info') as $semester_info)
- <li>{{ $semester_info }}</li>
- @endforeach
- </ul>
- <?php set_time_limit(0); ?>
- @foreach ($schools as $school)
- <h3>{{ $school->name }}</h3>
- <hr>
- @if (!$school->programs->isEmpty())
- <h3>Table of Contents</h3>
- <ol id="table-of-contents" class="upper-roman">
-
- </ol>
- @foreach ($school->programs as $program)
- {{-- <ul id='levelTabs' class="nav nav-tabs" role="tablist">
- <!-- For each grouped course -->
- @foreach ($program->courses as $index2 => $course)
-
- <li role="presentation">
- <a data-toggle="tab" href="#{{ $course->code }}-{{ $course->number }}"
- role="tab">{{ $course->code }}-{{ $course->number }}</a>
- </li>
- @endforeach
- </ul>
- <d id="allLists" class="tab-content"> --}}
-
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">{{ $program->name }}</h3>
- </div>
- <div class="panel-body">
- <ul class="nav navbars" role="tablist">
- @foreach ($program->courses as $index2 => $course)
- <li role="presentation">
- <a data-toggle="tab" href="#{{ $course->code }}-{{ $course->number }}"
- role="tab">{{ $course->code }}-{{ $course->number }}</a>
- </li>
- @endforeach
- </ul>
-
-
-
- <!-- If grouped course has activities that evaluate the outcome -->
- @foreach ($program->courses as $index2 => $course)
- <?php
-
- /*$sections_evaluating = Course::has('activities')
- ->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 (&$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')
- ->join('courses', 'courses.id', '=', 'activities.course_id')
- ->where('courses.code', $course->code)
- ->where('courses.number', $course->number)
- ->where('activities.draft', 0)
- ->where('activities.diagnostic', 0)
- //->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'))
- ->orderBy('semester_id')
- ->get();
-
- ?>
-
-
- <div role="tabpanel" class='tab-pane'
- id="{{ $course->code }}-{{ $course->number }}">
- @foreach ($sections_evaluating as $index3 => $section)
- @if (!$section->publishedActivities->isEmpty())
- <h3 style="text-align: center"> Course: {{ $course->code }}
- {{ $course->number }}-{{ $section->section }} </h3>
- @endif
-
- @foreach ($section->publishedActivities as $index4 => $activity)
- <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
- <p style="display: inline;">{{ $activity->name }}
- <strong>({{ $activity->date }})</strong>
- </p>
- <br>
- <br>
- <h5 style="display: inline;">Performance Indicators: </h5>
- <?php
- Log::info($activity->rubric[0]);
- ?>
- <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
- <?php
- $titles = $activity->rubric[0]->getTitles();
- ?>
- @if (sizeof($titles) != 1)
- @foreach ($titles as $index5 => $rubric_title)
- @if ($index5 != $activity->rubric[0]->num_scales - 1)
- {{ $rubric_title->text }},
- @else
- and {{ $rubric_title->text }}
- @endif
- @endforeach
- )
- @else
- {{ $titles[0]->text }} )
- @endif
- </i></p>
- <br>
- <h5 style="display: inline;">Scale: </h5>
- @if ($activity->rubric[0]->max_score == 1)
- <p style="display: inline;">1 point scale</p>
- @else
- <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }}
- point
- scale
- </p>
- @endif
- <br>
- <br>
- <h4>Performance of Students by Learning Outcome Criteria</h4>
- <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
- <p style="display: inline;">
- <i>{{ $activity->rubric[0]->expected_points }}
- or
- more</i>
- </p>
- <br>
- <h5 style="display: inline; margin:30px;">Expected percent of students
- achieving
- the
- target by criterion: </h5>
- <p style="display: inline;">
- <i>{{ $activity->rubric[0]->expected_percentage }}
- %</i>
- </p>
-
- <br>
-
- <table class='table table-striped table-condensed datatable'>
- <thead>
- <tr>
- <th>
- Criterion
- </th>
- <th>
- Number of Students Assessed
- </th>
- <th>
- Number of students that achieved the target
- </th>
- <th>
- %
- </th>
- <th>
- Learning Outcomes
- </th>
- </tr>
- </thead>
- <tbody>
- @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
- <tr>
- <td> {{ $ac_criterion->name }}</td>
- <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
- </td>
- <td>
- {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
-
- </td>
- <?php
-
- $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
- $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
-
- $percentage = 'N/A';
- $activity->getOutcomeReport();
-
- ?>
- @if ($out_att == 0)
- <td class="col-md-1 danger">{{ $percentage }}</td>
- @else
- <?php
- $percentage = round(($out_ach / $out_att) * 100, 2);
- ?>
- @if ($percentage >= $activity->rubric[0]->expected_percentage)
- <td class="col-md-1 success">{{ $percentage }}%
- </td>
- @else
- <td class="col-md-1 danger">{{ $percentage }}%
- </td>
- @endif
- @endif
- <td>
-
- @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
- <?php echo $outcome->name . "\n\n\n <br>"; ?>
- @endforeach
-
-
- </td>
- </tr>
- @endforeach
- </tbody>
-
- </table>
- <br>
- <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
- <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
- @if ($formative_actions)
- <p style="display: inline;">
- <u>{{ $formative_actions[0]->at_text }}:
- </u>
-
- <i>{{ $formative_actions[0]->description }}
- </i>
- </p>
- <br>
- <h5 style="display: inline; margin:30px;">Formative Action's Associated
- Criteria: </h5>
- <ul style="margin:30px;">
- @foreach ($formative_actions as $criteria)
- <li> <i>{{ $criteria->name }} </i></li>
- @endforeach
- </ul>
- @endif
-
- <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
- @if ($activity->assessment_comments != null)
- <p style="display: inline;">{{ $activity->assessment_comments }}</p>
- @endif
- <br>
- <hr>
- <br>
-
- <h4>Performance of Students by Learning Outcome</h4>
- <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
- <p style="display: inline;">{{ $activity->name }}
- <strong>({{ $activity->date }})</strong>
- </p>
- <br>
- <br>
-
- <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
- <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
- </p>
- <br>
- <h5 style="display: inline; margin:30px;">Expected percent of students
- achieving
- the
- target by learning outcome: </h5>
- <p style="display: inline;"> <i>
- <?php
- $expected = DB::table('target_outcomes_program')
- ->where('program_id', $course->program_id)
- ->where('semester_id', $course->semester_id)
- ->first(); //->expected_target;
- if (!$expected) {
- $expected = 'It has not been defined in the annual plan';
- } else {
- $expected = $expected->expected_target;
- }
- ?>
- {{ $expected }}
- </i>
- </p>
- <br>
- <table class='table table-striped table-condensed datatable'>
- <thead>
- <tr>
- <th>
- Learning Outcome
- </th>
- <th>
- Number of Students Assessed
- </th>
- <th>
- Number of students that achieved the target
- </th>
- <th>
- %
- </th>
-
- </tr>
- </thead>
- <tbody>
- @foreach ($activity->getOutcomeReport() as $outcome)
- <tr>
- <td>
- {{ $outcome->name }}
- </td>
- <td>
- {{ $outcome->attempted }}
- </td>
- <td>
- {{ $outcome->achieved }}
- </td>
- @if ($outcome->percentage >= $expected)
- <td class="col-md-1 success">
- {{ $outcome->percentage }}%
- </td>
- @else
- <td class="col-md-1 danger">
- {{ $outcome->percentage }}%
- </td>
- @endif
-
-
-
-
-
- </tr>
- @endforeach
- </tbody>
- </table>
-
- <br>
- <hr>
- @endforeach
- <h4>Diagnostic Activities</h4>
- @foreach ($section->diagnosticActivities as $index4 => $activity)
- <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
- <p style="display: inline;">{{ $activity->name }}
- <strong>({{ $activity->date }})</strong>
- </p>
- <br>
- <br>
- <h5 style="display: inline;">Performance Indicators: </h5>
- <?php
- Log::info($activity->rubric[0]);
- ?>
- <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
- <?php
- $titles = $activity->rubric[0]->getTitles();
- ?>
- @if (sizeof($titles) != 1)
- @foreach ($titles as $index5 => $rubric_title)
- @if ($index5 != $activity->rubric[0]->num_scales - 1)
- {{ $rubric_title->text }},
- @else
- and {{ $rubric_title->text }}
- @endif
- @endforeach
- )
- @else
- {{ $titles[0]->text }} )
- @endif
- </i></p>
- <br>
- <h5 style="display: inline;">Scale: </h5>
- @if ($activity->rubric[0]->max_score == 1)
- <p style="display: inline;">1 point scale</p>
- @else
- <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }}
- point
- scale
- </p>
- @endif
- <br>
- <br>
- <h4>Performance of Students by Learning Outcome Criteria</h4>
- <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
- <p style="display: inline;">
- <i>{{ $activity->rubric[0]->expected_points }}
- or
- more</i>
- </p>
- <br>
- <h5 style="display: inline; margin:30px;">Expected percent of students
- achieving
- the
- target by criterion: </h5>
- <p style="display: inline;">
- <i>{{ $activity->rubric[0]->expected_percentage }}
- %</i>
- </p>
-
- <br>
-
- <table class='table table-striped table-condensed datatable'>
- <thead>
- <tr>
- <th>
- Criterion
- </th>
- <th>
- Number of Students Assessed
- </th>
- <th>
- Number of students that achieved the target
- </th>
- <th>
- %
- </th>
- <th>
- Learning Outcomes
- </th>
- </tr>
- </thead>
- <tbody>
- @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
- <tr>
- <td> {{ $ac_criterion->name }}</td>
- <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
- </td>
- <td>
- {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
-
- </td>
- <?php
-
- $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
- $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
-
- $percentage = 'N/A';
- $activity->getOutcomeReport();
-
- ?>
- @if ($out_att == 0)
- <td class="col-md-1 danger">{{ $percentage }}</td>
- @else
- <?php
- $percentage = round(($out_ach / $out_att) * 100, 2);
- ?>
- @if ($percentage >= $activity->rubric[0]->expected_percentage)
- <td class="col-md-1 success">{{ $percentage }}%
- </td>
- @else
- <td class="col-md-1 danger">{{ $percentage }}%
- </td>
- @endif
- @endif
- <td>
-
- @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
- <?php echo $outcome->name . "\n\n\n <br>"; ?>
- @endforeach
-
-
- </td>
- </tr>
- @endforeach
- </tbody>
-
- </table>
- <br>
- <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
- <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
- @if ($formative_actions)
- <p style="display: inline;">
- <u>{{ $formative_actions[0]->at_text }}:
- </u>
-
- <i>{{ $formative_actions[0]->description }}
- </i>
- </p>
- <br>
- <h5 style="display: inline; margin:30px;">Formative Action's Associated
- Criteria: </h5>
- <ul style="margin:30px;">
- @foreach ($formative_actions as $criteria)
- <li> <i>{{ $criteria->name }} </i></li>
- @endforeach
- </ul>
- @endif
-
- <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
- @if ($activity->assessment_comments != null)
- <p style="display: inline;">{{ $activity->assessment_comments }}</p>
- @endif
- <br>
- <hr>
- <br>
-
- <h4>Performance of Students by Learning Outcome</h4>
- <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
- <p style="display: inline;">{{ $activity->name }}
- <strong>({{ $activity->date }})</strong>
- </p>
- <br>
- <br>
-
- <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
- <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
- </p>
- <br>
- <h5 style="display: inline; margin:30px;">Expected percent of students
- achieving
- the
- target by learning outcome: </h5>
- <p style="display: inline;"> <i>
- <?php
- $expected = DB::table('target_outcomes_program')
- ->where('program_id', $course->program_id)
- ->where('semester_id', $course->semester_id)
- ->first(); //->expected_target;
- if (!$expected) {
- $expected = 'It has not been defined in the annual plan';
- } else {
- $expected = $expected->expected_target;
- }
- ?>
- {{ $expected }}
- </i>
- </p>
- <br>
- <table class='table table-striped table-condensed datatable'>
- <thead>
- <tr>
- <th>
- Learning Outcome
- </th>
- <th>
- Number of Students Assessed
- </th>
- <th>
- Number of students that achieved the target
- </th>
- <th>
- %
- </th>
-
- </tr>
- </thead>
- <tbody>
- @foreach ($activity->getOutcomeReport() as $outcome)
- <tr>
- <td>
- {{ $outcome->name }}
- </td>
- <td>
- {{ $outcome->attempted }}
- </td>
- <td>
- {{ $outcome->achieved }}
- </td>
- @if ($outcome->percentage >= $expected)
- <td class="col-md-1 success">
- {{ $outcome->percentage }}%
- </td>
- @else
- <td class="col-md-1 danger">
- {{ $outcome->percentage }}%
- </td>
- @endif
-
-
-
-
-
- </tr>
- @endforeach
- </tbody>
- </table>
-
- <br>
- <hr>
- @endforeach
- @endforeach
- </div>
- @endforeach
- </div>
- </div>
- @endforeach
- @else
- <h4>This program has not assessed any activity</h4>
- @endif
- @endforeach
-
- </div>
- </div>
- <script>
- var outcome = $('.outcome');
-
- var str = '';
- str += '<li><a href="#' + 1 + '">' + "outcome.text()" + '</a><ol class="schools upper-alpha">';
-
- $('[id^=' + outcome.attr('id') + '-].school:visible').each(function(e) {
- var school = $(this);
- str += '<li><a href="#' + school.attr('id') + '">' + school.text() + '</a><ol class="programs">';
-
- $('[id^=' + school.attr('id') + '-].program:visible').each(function(e) {
-
- var program = $(this);
- if (!program.hasClass('no-courses'))
- str += '<li><a href="#' + program.attr('id') + '">' + program.text() + '</a></li>';
- else
- str += '<li>' + program.text() + '</li>';
-
- });
-
- str += '</ol></li>';
- });
- // Hide accordion panel contents by default
- $('.panel-body').hide();
-
- // --------------------------------------------------------------------------
- // Functions
- // --------------------------------------------------------------------------
-
-
- // --------------------------------------------------------------------------
- // Events
- // --------------------------------------------------------------------------
-
- // When panel heading is clicked, toggle it
- $('.panel-heading').on('click', function() {
- $(this).next().stop().slideToggle();
- })
- </script>
-
- @section('included-js')
- @include('global._datatables_js')
- @stop
-
- @stop
-
- @section('javascript')
-
-
-
- // Build table of contents
-
- @stop
|