Bladeren bron

Diagnostic

Gabriel Santiago Plaza 2 jaren geleden
bovenliggende
commit
57cd508060

+ 14
- 0
app/models/Course.php Bestand weergeven

@@ -64,6 +64,20 @@ class Course extends Eloquent
64 64
     //$this->hasMany('Activity')->whereNotNull('activities.outcomes_attempted')->where('activities.draft', 0)->orderBy('date', 'asc');
65 65
     return  $this->hasMany('Activity')->whereIn('activities.id', $activitiesAssessed)->orderBy('date', 'asc');
66 66
   }
67
+  public function diagnosticActivities()
68
+  {
69
+    $activitiesAssessed = DB::table('activities')
70
+      ->join('activity_criterion as ac', 'ac.activity_id', '=', 'activities.id')
71
+      ->join('assessments', 'assessments.activity_criterion_id', '=', 'ac.id')
72
+      ->where('activities.course_id', $this->id)
73
+      ->where('activities.draft', 0)
74
+      ->where('activities.diagnostic', 1)
75
+      ->select('activities.id')
76
+      ->distinct()
77
+      ->lists('activities.id');
78
+    //$this->hasMany('Activity')
79
+    return  $this->hasMany('Activity')->whereIn('activities.id', $activitiesAssessed)->orderBy('date', 'asc');
80
+  }
67 81
 
68 82
   public function outcomes_attempted()
69 83
   {

+ 240
- 32
app/views/local/managers/admins/new_assessment_report.blade.php Bestand weergeven

@@ -29,8 +29,6 @@
29 29
 
30 30
                     </ol>
31 31
                     @foreach ($school->programs as $program)
32
-
33
-
34 32
                         {{-- <ul id='levelTabs' class="nav nav-tabs" role="tablist">
35 33
                         <!-- For each grouped course -->
36 34
                         @foreach ($program->courses as $index2 => $course)
@@ -54,18 +52,17 @@
54 52
 
55 53
                                 <!-- If grouped course has activities that evaluate the outcome -->
56 54
                                 @foreach ($program->courses as $index2 => $course)
57
-
58 55
                                     <?php
59 56
                                     
60 57
                                     /*$sections_evaluating = Course::has('activities')
61
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereNotNull('outcomes_attempted')
62
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
63
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->with(array('activities'=>function($query) use(&$outcome){
64
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    $query->whereNotNull('outcomes_attempted');
65
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
66
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->where('code', $course->code)->where('number',$course->number)
67
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->whereIn('semester_id', Session::get('semesters_ids'))
68
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ->get();*/
58
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->whereNotNull('outcomes_attempted')
59
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
60
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->with(array('activities'=>function($query) use(&$outcome){
61
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                $query->whereNotNull('outcomes_attempted');
62
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
63
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->where('code', $course->code)->where('number',$course->number)
64
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->whereIn('semester_id', Session::get('semesters_ids'))
65
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->get();*/
69 66
                                     
70 67
                                     $sections_evaluating = Course::has('activities')
71 68
                                     
@@ -107,8 +104,8 @@
107 104
                                             <h3 style="text-align: center"> Course: {{ $course->code }}
108 105
                                                 {{ $course->number }}-{{ $section->section }} </h3>
109 106
                                         @endif
107
+                                        <h4>Non-Diagnostic Activities</h4>
110 108
                                         @foreach ($section->publishedActivities as $index4 => $activity)
111
-
112 109
                                             <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
113 110
                                             <p style="display: inline;">{{ $activity->name }}
114 111
                                                 <strong>({{ $activity->date }})</strong>
@@ -130,7 +127,6 @@
130 127
                                                             @else
131 128
                                                                 and {{ $rubric_title->text }}
132 129
                                                             @endif
133
-
134 130
                                                         @endforeach
135 131
                                                         )
136 132
                                                     @else
@@ -145,7 +141,6 @@
145 141
                                                 <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point
146 142
                                                     scale
147 143
                                                 </p>
148
-
149 144
                                             @endif
150 145
                                             <br>
151 146
                                             <br>
@@ -217,17 +212,12 @@
217 212
 
218 213
                                                                 @else
219 214
                                                                     <td class="col-md-1 danger">{{ $percentage }}%</td>
220
-
221 215
                                                                 @endif
222 216
                                                             @endif
223 217
                                                             <td>
224 218
 
225 219
                                                                 @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
226
-
227 220
                                                                     <?php echo $outcome->name . "\n\n\n <br>"; ?>
228
-
229
-
230
-
231 221
                                                                 @endforeach
232 222
 
233 223
 
@@ -254,18 +244,12 @@
254 244
                                                 <ul style="margin:30px;">
255 245
                                                     @foreach ($formative_actions as $criteria)
256 246
                                                         <li> <i>{{ $criteria->name }} <i></li>
257
-
258 247
                                                     @endforeach
259 248
                                                 </ul>
260
-
261
-
262
-
263 249
                                             @endif
264 250
                                             <br>
265 251
                                             <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
266 252
                                             @if ($activity->assessment_comments != null)
267
-
268
-
269 253
                                                 <p style="display: inline;">{{ $activity->assessment_comments }}</p>
270 254
                                             @endif
271 255
                                             <br>
@@ -295,10 +279,9 @@
295 279
                                                         ->first(); //->expected_target;
296 280
                                                     if (!$expected) {
297 281
                                                         $expected = 'It has not been defined in the annual plan';
282
+                                                    } else {
283
+                                                        $expected = $expected->expected_target;
298 284
                                                     }
299
-                                                    else{
300
-                                            $expected = $expected->expected_target;
301
-                                        }
302 285
                                                     ?>
303 286
                                                     {{ $expected }}
304 287
                                                 </i>
@@ -343,7 +326,6 @@
343 326
                                                                 <td class="col-md-1 danger">
344 327
                                                                     {{ $outcome->percentage }}%
345 328
                                                                 </td>
346
-
347 329
                                                             @endif
348 330
 
349 331
 
@@ -351,23 +333,250 @@
351 333
 
352 334
 
353 335
                                                         </tr>
336
+                                                    @endforeach
337
+                                                </tbody>
338
+                                            </table>
339
+
340
+                                            <br>
341
+                                            <hr>
342
+                                        @endforeach
343
+                                        <h4>Diagnostic Activities</h4>
344
+                                        @foreach ($section->diagnosticActivities as $index4 => $activity)
345
+                                            <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
346
+                                            <p style="display: inline;">{{ $activity->name }}
347
+                                                <strong>({{ $activity->date }})</strong>
348
+                                            </p>
349
+                                            <br>
350
+                                            <br>
351
+                                            <h5 style="display: inline;">Performance Indicators: </h5>
352
+                                            <?php
353
+                                            Log::info($activity->rubric[0]);
354
+                                            ?>
355
+                                            <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
356
+                                                    <?php
357
+                                                    $titles = $activity->rubric[0]->getTitles();
358
+                                                    ?>
359
+                                                    @if (sizeof($titles) != 1)
360
+                                                        @foreach ($titles as $index5 => $rubric_title)
361
+                                                            @if ($index5 != $activity->rubric[0]->num_scales - 1)
362
+                                                                {{ $rubric_title->text }},
363
+                                                            @else
364
+                                                                and {{ $rubric_title->text }}
365
+                                                            @endif
366
+                                                        @endforeach
367
+                                                        )
368
+                                                    @else
369
+                                                        {{ $titles[0]->text }} )
370
+                                                    @endif
371
+                                                </i></p>
372
+                                            <br>
373
+                                            <h5 style="display: inline;">Scale: </h5>
374
+                                            @if ($activity->rubric[0]->max_score == 1)
375
+                                                <p style="display: inline;">1 point scale</p>
376
+                                            @else
377
+                                                <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point
378
+                                                    scale
379
+                                                </p>
380
+                                            @endif
381
+                                            <br>
382
+                                            <br>
383
+                                            <h4>Performance of Students by Learning Outcome Criteria</h4>
384
+                                            <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
385
+                                            <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_points }}
386
+                                                    or
387
+                                                    more</i>
388
+                                            </p>
389
+                                            <br>
390
+                                            <h5 style="display: inline; margin:30px;">Expected percent of students achieving
391
+                                                the
392
+                                                target by criterion: </h5>
393
+                                            <p style="display: inline;">
394
+                                                <i>{{ $activity->rubric[0]->expected_percentage }}
395
+                                                    %</i>
396
+                                            </p>
397
+
398
+                                            <br>
399
+
400
+                                            <table class='table table-striped table-condensed datatable'>
401
+                                                <thead>
402
+                                                    <tr>
403
+                                                        <th>
404
+                                                            Criterion
405
+                                                        </th>
406
+                                                        <th>
407
+                                                            Number of Students Assessed
408
+                                                        </th>
409
+                                                        <th>
410
+                                                            Number of students that achieved the target
411
+                                                        </th>
412
+                                                        <th>
413
+                                                            %
414
+                                                        </th>
415
+                                                        <th>
416
+                                                            Learning Outcomes
417
+                                                        </th>
418
+                                                    </tr>
419
+                                                </thead>
420
+                                                <tbody>
421
+                                                    @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
422
+                                                        <tr>
423
+                                                            <td> {{ $ac_criterion->name }}</td>
424
+                                                            <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
425
+                                                            </td>
426
+                                                            <td>
427
+                                                                {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
428
+
429
+                                                            </td>
430
+                                                            <?php
431
+                                                            
432
+                                                            $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
433
+                                                            $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
434
+                                                            
435
+                                                            $percentage = 'N/A';
436
+                                                            $activity->getOutcomeReport();
437
+                                                            
438
+                                                            ?>
439
+                                                            @if ($out_att == 0)
440
+                                                                <td class="col-md-1 danger">{{ $percentage }}</td>
441
+
442
+                                                            @else
443
+                                                                <?php
444
+                                                                $percentage = round(($out_ach / $out_att) * 100, 2);
445
+                                                                ?>
446
+                                                                @if ($percentage >= $activity->rubric[0]->expected_percentage)
447
+                                                                    <td class="col-md-1 success">{{ $percentage }}%</td>
448
+
449
+                                                                @else
450
+                                                                    <td class="col-md-1 danger">{{ $percentage }}%</td>
451
+                                                                @endif
452
+                                                            @endif
453
+                                                            <td>
454
+
455
+                                                                @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
456
+                                                                    <?php echo $outcome->name . "\n\n\n <br>"; ?>
457
+                                                                @endforeach
458
+
354 459
 
460
+                                                            </td>
461
+                                                        </tr>
355 462
                                                     @endforeach
356 463
                                                 </tbody>
464
+
357 465
                                             </table>
466
+                                            <br>
467
+                                            <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
468
+                                            <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
469
+                                            @if ($formative_actions)
470
+                                                <p style="display: inline;">
471
+                                                    <u>{{ $formative_actions[0]->at_text }}:
472
+                                                    </u>
358 473
 
474
+                                                    <i>{{ $formative_actions[0]->description }}
475
+                                                    </i>
476
+                                                </p>
477
+                                                <br>
478
+                                                <h5 style="display: inline; margin:30px;">Formative Action's Associated
479
+                                                    Criteria: </h5>
480
+                                                <ul style="margin:30px;">
481
+                                                    @foreach ($formative_actions as $criteria)
482
+                                                        <li> <i>{{ $criteria->name }} <i></li>
483
+                                                    @endforeach
484
+                                                </ul>
485
+                                            @endif
486
+                                            <br>
487
+                                            <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
488
+                                            @if ($activity->assessment_comments != null)
489
+                                                <p style="display: inline;">{{ $activity->assessment_comments }}</p>
490
+                                            @endif
359 491
                                             <br>
360 492
                                             <hr>
493
+                                            <br>
361 494
 
495
+                                            <h4>Performance of Students by Learning Outcome</h4>
496
+                                            <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
497
+                                            <p style="display: inline;">{{ $activity->name }}
498
+                                                <strong>({{ $activity->date }})</strong>
499
+                                            </p>
500
+                                            <br>
362 501
 
502
+                                            <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
503
+                                            <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
504
+                                            </p>
505
+                                            <br>
506
+                                            <h5 style="display: inline; margin:30px;">Expected percent of students
507
+                                                achieving
508
+                                                the
509
+                                                target by learning outcome: </h5>
510
+                                            <p style="display: inline;"> <i>
511
+                                                    <?php
512
+                                                    $expected = DB::table('target_outcomes_program')
513
+                                                        ->where('program_id', $course->program_id)
514
+                                                        ->where('semester_id', $course->semester_id)
515
+                                                        ->first(); //->expected_target;
516
+                                                    if (!$expected) {
517
+                                                        $expected = 'It has not been defined in the annual plan';
518
+                                                    } else {
519
+                                                        $expected = $expected->expected_target;
520
+                                                    }
521
+                                                    ?>
522
+                                                    {{ $expected }}
523
+                                                </i>
524
+                                            </p>
525
+                                            <br>
526
+                                            <table class='table table-striped table-condensed datatable'>
527
+                                                <thead>
528
+                                                    <tr>
529
+                                                        <th>
530
+                                                            Learning Outcome
531
+                                                        </th>
532
+                                                        <th>
533
+                                                            Number of Students Assessed
534
+                                                        </th>
535
+                                                        <th>
536
+                                                            Number of students that achieved the target
537
+                                                        </th>
538
+                                                        <th>
539
+                                                            %
540
+                                                        </th>
363 541
 
542
+                                                    </tr>
543
+                                                </thead>
544
+                                                <tbody>
545
+                                                    @foreach ($activity->getOutcomeReport() as $outcome)
546
+                                                        <tr>
547
+                                                            <td>
548
+                                                                {{ $outcome->name }}
549
+                                                            </td>
550
+                                                            <td>
551
+                                                                {{ $outcome->attempted }}
552
+                                                            </td>
553
+                                                            <td>
554
+                                                                {{ $outcome->achieved }}
555
+                                                            </td>
556
+                                                            @if ($outcome->percentage >= $expected)
557
+                                                                <td class="col-md-1 success">
558
+                                                                    {{ $outcome->percentage }}%
559
+                                                                </td>
560
+
561
+                                                            @else
562
+                                                                <td class="col-md-1 danger">
563
+                                                                    {{ $outcome->percentage }}%
564
+                                                                </td>
565
+                                                            @endif
364 566
 
365 567
 
366 568
 
367
-                                        @endforeach
368
-                                    @endforeach
369 569
 
370 570
 
571
+                                                        </tr>
572
+                                                    @endforeach
573
+                                                </tbody>
574
+                                            </table>
575
+
576
+                                            <br>
577
+                                            <hr>
578
+                                        @endforeach
579
+                                    @endforeach
371 580
                                 @endforeach
372 581
                             </div>
373 582
                         </div>
@@ -378,7 +587,6 @@
378 587
                 @else
379 588
                     <h4>This program has not assessed any activity</h4>
380 589
                 @endif
381
-
382 590
             @endforeach
383 591
 
384 592
         </div>

+ 247
- 0
app/views/local/managers/pCoords/new_assessment_report.blade.php Bestand weergeven

@@ -91,6 +91,7 @@
91 91
                             @foreach ($sections_evaluating as $index3 => $section)
92 92
                                 <h3 style="text-align: center"> Course: {{ $course->code }}
93 93
                                     {{ $course->number }}-{{ $section->section }} </h3>
94
+                                    <h4>Non Diagnostic Activities</h4>
94 95
                                 @foreach ($section->publishedActivities as $index4 => $activity)
95 96
 
96 97
                                     <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
@@ -336,6 +337,252 @@
336 337
 
337 338
 
338 339
                                 @endforeach
340
+                                <h4>Diagnostic Activities</h4>
341
+                                @foreach ($section->diagnosticActivities as $index4 => $activity)
342
+
343
+                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
344
+                                <p style="display: inline;">{{ $activity->name }}
345
+                                    <strong>({{ $activity->date }})</strong>
346
+                                </p>
347
+                                <br>
348
+                                <br>
349
+                                <h5 style="display: inline;">Performance Indicators: </h5>
350
+                                <?php
351
+                                Log::info($activity->rubric[0]);
352
+                                ?>
353
+                                <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
354
+                                        <?php
355
+                                        $titles = $activity->rubric[0]->getTitles();
356
+                                        ?>
357
+                                        @if (sizeof($titles) != 1)
358
+                                            @foreach ($titles as $index5 => $rubric_title)
359
+                                                @if ($index5 != $activity->rubric[0]->num_scales - 1)
360
+                                                    {{ $rubric_title->text }},
361
+                                                @else
362
+                                                    and {{ $rubric_title->text }}
363
+                                                @endif
364
+
365
+                                            @endforeach
366
+                                            )
367
+                                        @else
368
+                                            {{ $titles[0]->text }} )
369
+                                        @endif
370
+                                    </i></p>
371
+                                <br>
372
+                                <h5 style="display: inline;">Scale: </h5>
373
+                                @if ($activity->rubric[0]->max_score == 1)
374
+                                    <p style="display: inline;">1 point scale</p>
375
+                                @else
376
+                                    <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point scale
377
+                                    </p>
378
+
379
+                                @endif
380
+                                <br>
381
+                                <br>
382
+                                <h4>Performance of Students by Learning Outcome Criteria</h4>
383
+                                <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
384
+                                <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_points }} or
385
+                                        more</i>
386
+                                </p>
387
+                                <br>
388
+                                <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
389
+                                    target by criterion: </h5>
390
+                                <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_percentage }} %</i>
391
+                                </p>
392
+
393
+                                <br>
394
+
395
+                                <table class='table table-striped table-condensed datatable'>
396
+                                    <thead>
397
+                                        <tr>
398
+                                            <th>
399
+                                                Criterion
400
+                                            </th>
401
+                                            <th>
402
+                                                Number of Students Assessed
403
+                                            </th>
404
+                                            <th>
405
+                                                Number of students that achieved the target
406
+                                            </th>
407
+                                            <th>
408
+                                                %
409
+                                            </th>
410
+                                            <th>
411
+                                                Learning Outcomes
412
+                                            </th>
413
+                                        </tr>
414
+                                    </thead>
415
+                                    <tbody>
416
+                                        @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
417
+                                            <tr>
418
+                                                <td> {{ $ac_criterion->name }}</td>
419
+                                                <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
420
+                                                </td>
421
+                                                <td>
422
+                                                    {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
423
+
424
+                                                </td>
425
+                                                <?php
426
+                                                
427
+                                                $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
428
+                                                $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
429
+                                                
430
+                                                $percentage = 'N/A';
431
+                                                $activity->getOutcomeReport();
432
+                                                
433
+                                                ?>
434
+                                                @if ($out_att == 0)
435
+                                                    <td class="col-md-1 danger">{{ $percentage }}</td>
436
+
437
+                                                @else
438
+                                                    <?php
439
+                                                    $percentage = round(($out_ach / $out_att) * 100, 2);
440
+                                                    ?>
441
+                                                    @if ($percentage >= $activity->rubric[0]->expected_percentage)
442
+                                                        <td class="col-md-1 success">{{ $percentage }}%</td>
443
+
444
+                                                    @else
445
+                                                        <td class="col-md-1 danger">{{ $percentage }}%</td>
446
+
447
+                                                    @endif
448
+                                                @endif
449
+                                                <td>
450
+
451
+                                                    @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
452
+
453
+                                                        <?php echo $outcome->name . "\n\n\n <br>"; ?>
454
+
455
+
456
+
457
+                                                    @endforeach
458
+
459
+
460
+                                                </td>
461
+                                            </tr>
462
+                                        @endforeach
463
+                                    </tbody>
464
+
465
+                                </table>
466
+                                <br>
467
+                                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
468
+                                <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
469
+                                @if ($formative_actions)
470
+                                    <p style="display: inline;">
471
+                                        <u>{{ $formative_actions[0]->at_text }}:
472
+                                        </u>
473
+
474
+                                        <i>{{ $formative_actions[0]->description }}
475
+                                        </i>
476
+                                    </p>
477
+                                    <br>
478
+                                    <h5 style="display: inline; margin:30px;">Formative Action's Associated
479
+                                        Criteria: </h5>
480
+                                    <ul style="margin:30px;">
481
+                                        @foreach ($formative_actions as $criteria)
482
+                                            <li> <i>{{ $criteria->name }} <i></li>
483
+
484
+                                        @endforeach
485
+                                    </ul>
486
+
487
+
488
+                                @endif
489
+                                <br>
490
+                                <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
491
+                                @if ($activity->assessment_comments != null)
492
+
493
+
494
+                                    <p style="display: inline;">{{ $activity->assessment_comments }}</p>
495
+                                @endif
496
+                                <br>
497
+                                <hr>
498
+                                <br>
499
+
500
+                                <h4>Performance of Students by Learning Outcome</h4>
501
+                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
502
+                                <p style="display: inline;">{{ $activity->name }}
503
+                                    <strong>({{ $activity->date }})</strong>
504
+                                </p>
505
+                                <br>
506
+                                <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
507
+                                <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
508
+                                </p>
509
+                                <br>
510
+                                <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
511
+                                    target by learning outcome: </h5>
512
+                                <p style="display: inline;"> <i>
513
+                                        <?php
514
+                                        $expected = DB::table('target_outcomes_program')
515
+                                            ->where('program_id', $course->program_id)
516
+                                            ->where('semester_id', $course->semester_id)
517
+                                            ->first();
518
+                                        if (!$expected) {
519
+                                            $expected = 'It has not been defined in the annual plan';
520
+                                        }
521
+                                        else{
522
+                                        $expected = $expected->expected_target;
523
+                                    }
524
+                                        ?>
525
+                                        {{ $expected }}
526
+                                    </i>
527
+                                </p>
528
+                                <br>
529
+                                <table class='table table-striped table-condensed datatable'>
530
+                                    <thead>
531
+                                        <tr>
532
+                                            <th>
533
+                                                Learning Outcome
534
+                                            </th>
535
+                                            <th>
536
+                                                Number of Students Assessed
537
+                                            </th>
538
+                                            <th>
539
+                                                Number of students that achieved the target
540
+                                            </th>
541
+                                            <th>
542
+                                                %
543
+                                            </th>
544
+
545
+                                        </tr>
546
+                                    </thead>
547
+                                    <tbody>
548
+                                        @foreach ($activity->getOutcomeReport() as $outcome)
549
+                                            <tr>
550
+                                                <td>
551
+                                                    {{ $outcome->name }}
552
+                                                </td>
553
+                                                <td>
554
+                                                    {{ $outcome->attempted }}
555
+                                                </td>
556
+                                                <td>
557
+                                                    {{ $outcome->achieved }}
558
+                                                </td>
559
+                                                @if ($outcome->percentage >= $expected)
560
+                                                    <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
561
+
562
+                                                @else
563
+                                                    <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
564
+
565
+                                                @endif
566
+
567
+
568
+
569
+
570
+
571
+                                            </tr>
572
+
573
+                                        @endforeach
574
+                                    </tbody>
575
+                                </table>
576
+
577
+                                <br>
578
+                                <hr>
579
+
580
+
581
+
582
+
583
+
584
+
585
+                            @endforeach
339 586
                             @endforeach
340 587
                         </div>
341 588
 

+ 251
- 0
app/views/local/managers/sCoords/new_assessment_report.blade.php Bestand weergeven

@@ -105,6 +105,7 @@
105 105
                                         <h3 style="text-align: center"> Course: {{ $course->code }}
106 106
                                             {{ $course->number }}-{{ $section->section }} </h3>
107 107
                                     @endif
108
+                                    <h4> Non-Diagnostic Activities</h4>
108 109
                                     @foreach ($section->publishedActivities as $index4 => $activity)
109 110
 
110 111
                                         <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
@@ -354,6 +355,256 @@
354 355
 
355 356
 
356 357
                                     @endforeach
358
+                                    <h4>Diagnostic Activities</h4>
359
+                                    @foreach ($section->diagnosticActivities as $index4 => $activity)
360
+
361
+                                    <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
362
+                                    <p style="display: inline;">{{ $activity->name }}
363
+                                        <strong>({{ $activity->date }})</strong>
364
+                                    </p>
365
+                                    <br>
366
+                                    <br>
367
+                                    <h5 style="display: inline;">Performance Indicators: </h5>
368
+                                    <?php
369
+                                    Log::info($activity->rubric[0]);
370
+                                    ?>
371
+                                    <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
372
+                                            <?php
373
+                                            $titles = $activity->rubric[0]->getTitles();
374
+                                            ?>
375
+                                            @if (sizeof($titles) != 1)
376
+                                                @foreach ($titles as $index5 => $rubric_title)
377
+                                                    @if ($index5 != $activity->rubric[0]->num_scales - 1)
378
+                                                        {{ $rubric_title->text }},
379
+                                                    @else
380
+                                                        and {{ $rubric_title->text }}
381
+                                                    @endif
382
+
383
+                                                @endforeach
384
+                                                )
385
+                                            @else
386
+                                                {{ $titles[0]->text }} )
387
+                                            @endif
388
+                                        </i></p>
389
+                                    <br>
390
+                                    <h5 style="display: inline;">Scale: </h5>
391
+                                    @if ($activity->rubric[0]->max_score == 1)
392
+                                        <p style="display: inline;">1 point scale</p>
393
+                                    @else
394
+                                        <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point
395
+                                            scale
396
+                                        </p>
397
+
398
+                                    @endif
399
+                                    <br>
400
+                                    <br>
401
+                                    <h4>Performance of Students by Learning Outcome Criteria</h4>
402
+                                    <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
403
+                                    <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_points }} or
404
+                                            more</i>
405
+                                    </p>
406
+                                    <br>
407
+                                    <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
408
+                                        target by criterion: </h5>
409
+                                    <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_percentage }}
410
+                                            %</i>
411
+                                    </p>
412
+
413
+
414
+                                    <br>
415
+                                    <table class='table table-striped table-condensed datatable'>
416
+                                        <thead>
417
+                                            <tr>
418
+                                                <th>
419
+                                                    Criterion
420
+                                                </th>
421
+                                                <th>
422
+                                                    Number of Students Assessed
423
+                                                </th>
424
+                                                <th>
425
+                                                    Number of students that achieved the target
426
+                                                </th>
427
+                                                <th>
428
+                                                    %
429
+                                                </th>
430
+                                                <th>
431
+                                                    Learning Outcomes
432
+                                                </th>
433
+                                            </tr>
434
+                                        </thead>
435
+                                        <tbody>
436
+                                            @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
437
+                                                <tr>
438
+                                                    <td> {{ $ac_criterion->name }}</td>
439
+                                                    <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
440
+                                                    </td>
441
+                                                    <td>
442
+                                                        {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
443
+
444
+                                                    </td>
445
+                                                    <?php
446
+                                                    
447
+                                                    $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
448
+                                                    $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
449
+                                                    
450
+                                                    $percentage = 'N/A';
451
+                                                    $activity->getOutcomeReport();
452
+                                                    
453
+                                                    ?>
454
+                                                    @if ($out_att == 0)
455
+                                                        <td class="col-md-1 danger">{{ $percentage }}</td>
456
+
457
+                                                    @else
458
+                                                        <?php
459
+                                                        $percentage = round(($out_ach / $out_att) * 100, 2);
460
+                                                        ?>
461
+                                                        @if ($percentage >= $activity->rubric[0]->expected_percentage)
462
+                                                            <td class="col-md-1 success">{{ $percentage }}%</td>
463
+
464
+                                                        @else
465
+                                                            <td class="col-md-1 danger">{{ $percentage }}%</td>
466
+
467
+                                                        @endif
468
+                                                    @endif
469
+                                                    <td>
470
+
471
+                                                        @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
472
+
473
+                                                            <?php echo $outcome->name . "\n\n\n <br>"; ?>
474
+
475
+
476
+
477
+                                                        @endforeach
478
+
479
+
480
+                                                    </td>
481
+                                                </tr>
482
+                                            @endforeach
483
+                                        </tbody>
484
+
485
+                                    </table>
486
+
487
+                                    <br>
488
+                                    <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
489
+                                    <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
490
+                                    @if ($formative_actions)
491
+                                        <p style="display: inline;"> <u>{{ $formative_actions[0]->at_text }}:
492
+                                            </u>
493
+
494
+                                            <i>{{ $formative_actions[0]->description }}
495
+                                            </i>
496
+                                        </p>
497
+                                        <br>
498
+                                        <h5 style="display: inline; margin:30px;">Formative Action's Associated
499
+                                            Criteria: </h5>
500
+                                        <ul style="margin:30px;">
501
+                                            @foreach ($formative_actions as $criteria)
502
+                                                <li> <i>{{ $criteria->name }} <i></li>
503
+
504
+                                            @endforeach
505
+                                        </ul>
506
+
507
+
508
+
509
+                                    @endif
510
+                                    <br>
511
+                                    <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
512
+                                    @if ($activity->assessment_comments != null)
513
+
514
+
515
+                                        <p style="display: inline;">{{ $activity->assessment_comments }}</p>
516
+                                    @endif
517
+                                    <hr>
518
+                                    <br>
519
+
520
+
521
+
522
+                                    <h4>Performance of Students by Learning Outcome</h4>
523
+                                    <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
524
+                                    <p style="display: inline;">{{ $activity->name }}
525
+                                        <strong>({{ $activity->date }})</strong>
526
+                                    </p>
527
+                                    <br>
528
+                                    <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
529
+                                    <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
530
+                                    </p>
531
+                                    <br>
532
+                                    <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
533
+                                        target by learning outcome: </h5>
534
+                                    <p style="display: inline;"> <i>
535
+                                            <?php
536
+                                            $expected = DB::table('target_outcomes_program')
537
+                                                ->where('program_id', $course->program_id)
538
+                                                ->where('semester_id', $course->semester_id)
539
+                                                ->first(); //->expected_target;
540
+                                            if (!$expected) {
541
+                                                $expected = 'It has not been defined in the annual plan';
542
+                                            }
543
+                                            else{
544
+                                        $expected = $expected->expected_target;
545
+                                    }
546
+                                            ?>
547
+                                            {{ $expected }}
548
+                                        </i>
549
+                                    </p>
550
+                                    <br>
551
+                                    <table class='table table-striped table-condensed datatable'>
552
+                                        <thead>
553
+                                            <tr>
554
+                                                <th>
555
+                                                    Learning Outcome
556
+                                                </th>
557
+                                                <th>
558
+                                                    Number of Students Assessed
559
+                                                </th>
560
+                                                <th>
561
+                                                    Number of students that achieved the target
562
+                                                </th>
563
+                                                <th>
564
+                                                    %
565
+                                                </th>
566
+
567
+                                            </tr>
568
+                                        </thead>
569
+                                        <tbody>
570
+                                            @foreach ($activity->getOutcomeReport() as $outcome)
571
+                                                <tr>
572
+                                                    <td>
573
+                                                        {{ $outcome->name }}
574
+                                                    </td>
575
+                                                    <td>
576
+                                                        {{ $outcome->attempted }}
577
+                                                    </td>
578
+                                                    <td>
579
+                                                        {{ $outcome->achieved }}
580
+                                                    </td>
581
+                                                    @if ($outcome->percentage >= $expected)
582
+                                                        <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
583
+
584
+                                                    @else
585
+                                                        <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
586
+
587
+                                                    @endif
588
+
589
+
590
+
591
+
592
+
593
+                                                </tr>
594
+
595
+                                            @endforeach
596
+                                        </tbody>
597
+                                    </table>
598
+
599
+                                    <br>
600
+                                    <hr>
601
+
602
+
603
+
604
+
605
+
606
+
607
+                                @endforeach
357 608
                                 @endforeach
358 609
 
359 610
 

+ 258
- 3
app/views/local/professors/new_assessment_report.blade.php Bestand weergeven

@@ -97,9 +97,7 @@
97 97
                         @foreach ($sections_evaluating as $index3 => $section)
98 98
                             <h3 style="text-align: center"> Course: {{ $course->code }}
99 99
                                 {{ $course->number }}-{{ $section->section }}</h3>
100
-                            <?php
101
-                            Log::info($section->publishedActivities);
102
-                            ?>
100
+                                <h4> Non-diagnostic Activities</h4>
103 101
                             @foreach ($section->publishedActivities as $index4 => $activity)
104 102
 
105 103
                                 <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
@@ -355,6 +353,263 @@
355 353
 
356 354
 
357 355
                             @endforeach
356
+                            <h4>Diagnostic Activities</h4>
357
+                            @foreach ($section->diagnosticActivities as $index4 => $activity)
358
+
359
+                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
360
+                                <p style="display: inline;">{{ $activity->name }}
361
+                                    <strong>({{ $activity->date }})</strong>
362
+                                </p>
363
+                                <br>
364
+                                <br>
365
+                                <h5 style="display: inline;">Performance Indicators: </h5>
366
+                                <?php
367
+                                Log::info($activity->rubric[0]);
368
+                                ?>
369
+                                <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
370
+                                        <?php
371
+                                        $titles = $activity->rubric[0]->getTitles();
372
+                                        ?>
373
+                                        @if (sizeof($titles) != 1)
374
+                                            @foreach ($titles as $index5 => $rubric_title)
375
+                                                @if ($index5 != $activity->rubric[0]->num_scales - 1)
376
+                                                    {{ $rubric_title->text }},
377
+                                                @else
378
+                                                    and {{ $rubric_title->text }}
379
+                                                @endif
380
+
381
+                                            @endforeach
382
+                                            )
383
+                                        @else
384
+                                            {{ $titles[0]->text }} )
385
+                                        @endif
386
+                                    </i></p>
387
+                                <br>
388
+                                <h5 style="display: inline;">Scale: </h5>
389
+                                @if ($activity->rubric[0]->max_score == 1)
390
+
391
+                                    <p style="display: inline;">1 point scale</p>
392
+                                @else
393
+                                    <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point scale</p>
394
+
395
+                                @endif
396
+                                <br>
397
+                                <br>
398
+                                <h4>Performance of Students by Learning Outcome Criteria</h4>
399
+                                <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
400
+                                <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_points }} or more</i>
401
+                                </p>
402
+                                <br>
403
+                                <h5 style="display: inline; margin:30px;">Expected percent of students achieving the target
404
+                                    by criterion: </h5>
405
+                                <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_percentage }} %</i>
406
+                                </p>
407
+
408
+                                <br>
409
+
410
+
411
+                                <table class='table table-striped table-condensed datatable'>
412
+                                    <thead>
413
+                                        <tr>
414
+                                            <th>
415
+                                                Criterion
416
+                                            </th>
417
+                                            <th>
418
+                                                Number of Students Assessed
419
+                                            </th>
420
+                                            <th>
421
+                                                Number of students that achieved the target
422
+                                            </th>
423
+                                            <th>
424
+                                                %
425
+                                            </th>
426
+                                            <th>
427
+                                                Learning Outcomes
428
+                                            </th>
429
+                                        </tr>
430
+                                    </thead>
431
+                                    <tbody>
432
+                                        @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
433
+                                            <tr>
434
+                                                <td> {{ $ac_criterion->name }}</td>
435
+                                                <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
436
+                                                </td>
437
+                                                <td>
438
+                                                    {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
439
+
440
+                                                </td>
441
+                                                <?php
442
+                                                
443
+                                                $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
444
+                                                $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
445
+                                                
446
+                                                $percentage = 'N/A';
447
+                                                $activity->getOutcomeReport();
448
+                                                
449
+                                                ?>
450
+
451
+                                                @if ($out_att == 0)
452
+                                                    <td class="col-md-1 danger">{{ $percentage }}</td>
453
+
454
+                                                @else
455
+                                                    <?php
456
+                                                    $percentage = round(($out_ach / $out_att) * 100, 2);
457
+                                                    ?>
458
+                                                    @if ($percentage >= $activity->rubric[0]->expected_percentage)
459
+                                                        <td class="col-md-1 success">{{ $percentage }}%</td>
460
+
461
+                                                    @else
462
+                                                        <td class="col-md-1 danger">{{ $percentage }}%</td>
463
+
464
+                                                    @endif
465
+
466
+
467
+
468
+                                                @endif
469
+
470
+
471
+
472
+                                                <td>
473
+
474
+
475
+                                                    @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
476
+
477
+                                                        <?php echo $outcome->name . "\n\n\n <br>"; ?>
478
+
479
+
480
+
481
+                                                    @endforeach
482
+
483
+
484
+                                                </td>
485
+                                            </tr>
486
+                                        @endforeach
487
+                                    </tbody>
488
+
489
+                                </table>
490
+                                <br>
491
+                                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
492
+                                <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
493
+                                @if ($formative_actions)
494
+                                    <p style="display: inline;"> <u>{{ $formative_actions[0]->at_text }}:
495
+                                        </u>
496
+
497
+                                        <i>{{ $formative_actions[0]->description }}
498
+                                        </i>
499
+                                    </p>
500
+                                    <br>
501
+                                    <h5 style="display: inline; margin:30px;">Formative Action's Associated
502
+                                        Criteria: </h5>
503
+                                    <ul style="margin:30px;">
504
+                                        @foreach ($formative_actions as $criteria)
505
+                                            <li> <i>{{ $criteria->name }} <i></li>
506
+
507
+                                        @endforeach
508
+                                    </ul>
509
+                                @endif
510
+                                <br>
511
+
512
+                                <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
513
+                                @if ($activity->assessment_comments != null)
514
+
515
+
516
+                                    <p style="display: inline;">{{ $activity->assessment_comments }}</p>
517
+                                @endif
518
+                                <br>
519
+                                <hr>
520
+                                <br>
521
+
522
+                                <h4>Performance of Students by Learning Outcome</h4>
523
+                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5><br>
524
+                                <p style="display: inline;">{{ $activity->name }}
525
+                                    <strong>({{ $activity->date }})</strong>
526
+                                </p>
527
+                                <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
528
+                                <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
529
+                                </p>
530
+                                <br>
531
+                                <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
532
+                                    target
533
+                                    by learning outcome: </h5>
534
+                                <p style="display: inline;"> <i>
535
+                                        <?php
536
+                                        $expected = DB::table('target_outcomes_program')
537
+                                            ->where('program_id', $course->program_id)
538
+                                            ->where('semester_id', $course->semester_id)
539
+                                            ->first(); //->expected_target;
540
+                                        if (!$expected) {
541
+                                            
542
+                                             $expected = 'It has not been defined in the annual plan';
543
+                                        }
544
+                                        else{
545
+                                            $expected = $expected->expected_target;
546
+                                        }
547
+                                        
548
+                                        ?>
549
+                                        {{ $expected }}
550
+                                    </i>
551
+                                </p>
552
+                                <br>
553
+                                <table class='table table-striped table-condensed datatable'>
554
+                                    <thead>
555
+                                        <tr>
556
+                                            <th>
557
+                                                Learning Outcome
558
+                                            </th>
559
+                                            <th>
560
+                                                Number of Students Assessed
561
+                                            </th>
562
+                                            <th>
563
+                                                Number of students that achieved the target
564
+                                            </th>
565
+                                            <th>
566
+                                                %
567
+                                            </th>
568
+
569
+                                        </tr>
570
+                                    </thead>
571
+                                    <tbody>
572
+                                        @foreach ($activity->getOutcomeReport() as $outcome)
573
+                                            <tr>
574
+                                                <td>
575
+                                                    {{ $outcome->name }}
576
+                                                </td>
577
+                                                <td>
578
+                                                    {{ $outcome->attempted }}
579
+                                                </td>
580
+                                                <td>
581
+                                                    {{ $outcome->achieved }}
582
+                                                </td>
583
+                                                @if ($outcome->percentage >= $expected)
584
+                                                    <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
585
+
586
+                                                @else
587
+                                                    <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
588
+
589
+                                                @endif
590
+
591
+
592
+
593
+
594
+
595
+                                            </tr>
596
+
597
+                                        @endforeach
598
+                                    </tbody>
599
+                                </table>
600
+
601
+                                <br>
602
+                                <hr>
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+                            @endforeach
612
+                            
358 613
                         @endforeach
359 614
                     </div>
360 615