123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591 |
- @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')
- @else
- @include('local.professors._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>
-
-
- <!-- For each grouped course -->
- <ul id="levelTabs" class="nav nav-tabs" role="tablist">
-
- <?php set_time_limit(0); ?>
- @foreach ($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>
- <div id="allLists" class="tab-content">
-
-
-
-
- @foreach ($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('activities.id', $activities);
- },
- ])
-
- ->where('code', $course->code)
- ->where('number', $course->number)
- ->where('user_id', Auth::user()->id)
- ->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)
- <h3 style="text-align: center"> Course: {{ $course->code }}
- {{ $course->number }}-{{ $section->section }}</h3>
-
- @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; margin:-30px;"> <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; margin:-30px;">
- <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> -->
- <h5>Formative Actions: </h5>
- <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
- @if ($formative_actions)
- <p style="display: inline; margin:30px;">
- <u>{{ $formative_actions[0]->at_text }}:
- </u>
-
- <i>{{ $formative_actions[0]->description }}
- </i>
- </p>
-
- <!-- <h5 style="display: inline; margin:30px;"> -->
- <h5>
- Formative Action's Associated
- Criteria: </h5>
- <!-- <ul style="margin:30px;"> -->
- <ul>
- @foreach ($formative_actions as $criteria)
- <li> <i>{{ $criteria->name }} </i></li>
- @endforeach
- </ul>
- @endif
-
-
- <!-- <h5 style="display: inline; margin:30px;"> -->
- <h5>
- Assessment Comments: </h5>
- @if ($activity->assessment_comments != null)
- <p style="display: inline; margin:30px;">
- {{ $activity->assessment_comments }}
- </p>
- @endif
- <!-- <br> -->
- <hr>
- <!-- <br> -->
-
- <h4>Performance of Students by Learning Outcome</h4>
- <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5><br>
- <!-- <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; margin:-30px;"> <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; margin:-30px;">
- <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> -->
- <h5>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;"> -->
- <ul>
- @foreach ($formative_actions as $criteria)
- <li> <i>{{ $criteria->name }} </i></li>
- @endforeach
- </ul>
- @endif
-
-
- <!-- <h5 style="display: inline; margin:30px;">Assessment Comments: </h5> -->
- <h5>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><br>
- <p style="display: inline;">{{ $activity->name }}
- <strong>({{ $activity->date }})</strong>
- </p>
- <br><br>
- <!-- <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5> -->
- <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>
-
-
- @section('included-js')
- @include('global._datatables_js')
- @stop
-
- @stop
-
- @section('javascript')
-
-
-
- @stop
|