Procházet zdrojové kódy

Arreglar unos bugs en los results,

Gabriel Santiago Plaza před 2 roky
rodič
revize
ba166bcb71

+ 23
- 11
app/controllers/CriteriaController.php Zobrazit soubor

@@ -261,6 +261,7 @@ class CriteriaController extends \BaseController
261 261
     public function delete()
262 262
     {
263 263
         DB::delete("delete from criteria where id = ?", array(Input::get('criterion_delete')));
264
+        return Redirect::to('criteria')->withInput();
264 265
         $role = Auth::user()['role'];
265 266
         switch ($role) {
266 267
             case 1:
@@ -446,6 +447,7 @@ class CriteriaController extends \BaseController
446 447
             /** Send error message and old data */
447 448
             Session::flash('status', 'danger');
448 449
             Session::flash('message', $message);
450
+            return Redirect::to('criteria')->withInput();
449 451
             $role = Auth::user()['role'];
450 452
             switch ($role) {
451 453
                 case 1:
@@ -464,7 +466,7 @@ class CriteriaController extends \BaseController
464 466
                 /** Send error message and old data*/
465 467
                 Session::flash('status', 'danger');
466 468
                 Session::flash('message', 'This criterion is a duplicate of an already saved criterion because its name and associated program are the same.');
467
-
469
+                return Redirect::to('criteria')->withInput();
468 470
                 $role = Auth::user()['role'];
469 471
                 switch ($role) {
470 472
                     case 1:
@@ -530,6 +532,7 @@ class CriteriaController extends \BaseController
530 532
                         } else {
531 533
                             Session::flash('status', 'danger');
532 534
                             Session::flash('message', '<p>Error creating the Scales</p>');
535
+                            return Redirect::to('criteria')->withInput();
533 536
                             $role = Auth::user()['role'];
534 537
                             switch ($role) {
535 538
                                 case 1:
@@ -583,6 +586,7 @@ class CriteriaController extends \BaseController
583 586
 
584 587
                 Session::flash('status', 'success');
585 588
                 Session::flash('message', 'Criterion created: "' . $criterion->name . '".');
589
+                return Redirect::to('criteria')->withInput();
586 590
                 $role = Auth::user()['role'];
587 591
                 switch ($role) {
588 592
                     case 1:
@@ -600,6 +604,7 @@ class CriteriaController extends \BaseController
600 604
             else {
601 605
                 Session::flash('status', 'danger');
602 606
                 Session::flash('message', '<p>Error creating Criterion. Please try again later.</p>');
607
+                return Redirect::to('criteria')->withInput();
603 608
                 $role = Auth::user()['role'];
604 609
                 switch ($role) {
605 610
                     case 1:
@@ -745,6 +750,8 @@ class CriteriaController extends \BaseController
745 750
             /** Send error message and old data */
746 751
             Session::flash('status', 'danger');
747 752
             Session::flash('message', $message);
753
+
754
+            return Redirect::to('criteria')->withInput();
748 755
             $role = Auth::user()['role'];
749 756
             switch ($role) {
750 757
                 case 1:
@@ -846,7 +853,8 @@ class CriteriaController extends \BaseController
846 853
                         } else {
847 854
                             Session::flash('status', 'danger');
848 855
                             Session::flash('message', '<p>Error creating the Scales</p>');
849
-                            $role = Auth::user()['role'];
856
+                            return Redirect::to('criteria')->withInput();
857
+                            /*$role = Auth::user()['role'];
850 858
                             switch ($role) {
851 859
                                 case 1:
852 860
                                     return Redirect::to('criteria')->withInput();
@@ -856,7 +864,7 @@ class CriteriaController extends \BaseController
856 864
 
857 865
                                 case 3:
858 866
                                     return Redirect::to('program-criteria')->withInput();
859
-                            }
867
+                            }*/
860 868
                         }
861 869
                     }
862 870
                 }/*
@@ -897,7 +905,8 @@ class CriteriaController extends \BaseController
897 905
 
898 906
                 Session::flash('status', 'success');
899 907
                 Session::flash('message', 'Updated criterion: "' . $criterion->name . '"');
900
-                $role = Auth::user()['role'];
908
+                return Redirect::to('criteria')->withInput();
909
+                /*$role = Auth::user()['role'];
901 910
                 switch ($role) {
902 911
                     case 1:
903 912
                         return Redirect::to('criteria')->withInput();
@@ -907,15 +916,16 @@ class CriteriaController extends \BaseController
907 916
 
908 917
                     case 3:
909 918
                         return Redirect::to('program-criteria')->withInput();
910
-                }
919
+                }*/
911 920
             }
912 921
 
913 922
             /** If saving fails, send error message and old data */
914 923
             else {
915 924
                 Session::flash('status', 'danger');
916 925
                 Session::flash('message', 'Error updating the Criterion. Please try again later.');
926
+                return Redirect::to('criteria')->withInput();
917 927
                 $role = Auth::user()['role'];
918
-                switch ($role) {
928
+                /*switch ($role) {
919 929
                     case 1:
920 930
                         return Redirect::to('criteria')->withInput();
921 931
 
@@ -924,7 +934,7 @@ class CriteriaController extends \BaseController
924 934
 
925 935
                     case 3:
926 936
                         return Redirect::to('program-criteria')->withInput();
927
-                }
937
+                }*/
928 938
             }
929 939
         }
930 940
     }
@@ -1024,7 +1034,8 @@ class CriteriaController extends \BaseController
1024 1034
                 Session::flash('status', 'danger');
1025 1035
                 Session::flash('message', 'Error deactivating criterion."' . $criterion->name . '"');
1026 1036
             }
1027
-            $role = Auth::user()['role'];
1037
+            return Redirect::to('criteria')->withInput();
1038
+            /*$role = Auth::user()['role'];
1028 1039
             switch ($role) {
1029 1040
                 case 1:
1030 1041
                     return Redirect::to('objective')->withInput();
@@ -1034,7 +1045,7 @@ class CriteriaController extends \BaseController
1034 1045
 
1035 1046
                 case 3:
1036 1047
                     return Redirect::to('program-objective')->withInput();
1037
-            }
1048
+            }*/
1038 1049
         } else {
1039 1050
             try {
1040 1051
                 $criterion->restore();
@@ -1044,7 +1055,8 @@ class CriteriaController extends \BaseController
1044 1055
                 Session::flash('status', 'danger');
1045 1056
                 Session::flash('message', 'Error reactivating criterion: "' . $criterion->name . '".');
1046 1057
             }
1047
-            $role = Auth::user()['role'];
1058
+            return Redirect::to('criteria')->withInput();
1059
+            /*$role = Auth::user()['role'];
1048 1060
             switch ($role) {
1049 1061
                 case 1:
1050 1062
                     return Redirect::to('objective')->withInput();
@@ -1054,7 +1066,7 @@ class CriteriaController extends \BaseController
1054 1066
 
1055 1067
                 case 3:
1056 1068
                     return Redirect::to('program-objective')->withInput();
1057
-            }
1069
+            }*/
1058 1070
         }
1059 1071
     }
1060 1072
 

+ 24
- 14
app/controllers/Objective2Controller.php Zobrazit soubor

@@ -141,7 +141,8 @@ class Objective2Controller extends \BaseController
141 141
 	public function delete()
142 142
 	{
143 143
 		DB::delete("delete from objectives where id = ?", array(Input::get('deleteObj')));
144
-		$role = Auth::user()['role'];
144
+		return Redirect::to('objectives')->withInput();
145
+		/*$role = Auth::user()['role'];
145 146
 		switch ($role) {
146 147
 			case 1:
147 148
 				return Redirect::to('objectives')->withInput();
@@ -151,7 +152,7 @@ class Objective2Controller extends \BaseController
151 152
 
152 153
 			case 3:
153 154
 				return Redirect::to('program-objective')->withInput();
154
-		}
155
+		}*/
155 156
 	}
156 157
 	/**
157 158
 	 * Create a new Objective.
@@ -180,7 +181,8 @@ class Objective2Controller extends \BaseController
180 181
 			/** Send error message and old data */
181 182
 			Session::flash('status', 'danger');
182 183
 			Session::flash('message', $message);
183
-			$role = Auth::user()['role'];
184
+			return Redirect::to('objective')->withInput();
185
+			/*$role = Auth::user()['role'];
184 186
 			switch ($role) {
185 187
 				case 1:
186 188
 					return Redirect::to('objective')->withInput();
@@ -190,14 +192,15 @@ class Objective2Controller extends \BaseController
190 192
 
191 193
 				case 3:
192 194
 					return Redirect::to('program-objective')->withInput();
193
-			}
195
+			}*/
194 196
 		} else {
195 197
 			// Check Objective uniqueness
196 198
 			if (!$this->isObjectiveUnique($clean_input)) {
197 199
 				/** Send error message and old data */
198 200
 				Session::flash('status', 'danger');
199 201
 				Session::flash('message', "This objective is a duplicate of an already saved Objective because it's and associated program are the same.");
200
-				$role = Auth::user()['role'];
202
+				return Redirect::to('objective')->withInput();
203
+				/*$role = Auth::user()['role'];
201 204
 				switch ($role) {
202 205
 					case 1:
203 206
 						return Redirect::to('objective')->withInput();
@@ -207,7 +210,7 @@ class Objective2Controller extends \BaseController
207 210
 
208 211
 					case 3:
209 212
 						return Redirect::to('program-objective')->withInput();
210
-				}
213
+				}*/
211 214
 			}
212 215
 
213 216
 			/** Instantiate new Objective */
@@ -248,7 +251,8 @@ class Objective2Controller extends \BaseController
248 251
 
249 252
 				Session::flash('status', 'success');
250 253
 				Session::flash('message', 'Objective created: "' . $objective->text . '".');
251
-				$role = Auth::user()['role'];
254
+				return Redirect::to('objective')->withInput(Input::only('outcome_id'));
255
+				/*$role = Auth::user()['role'];
252 256
 				switch ($role) {
253 257
 					case 1:
254 258
 						return Redirect::to('objective')->withInput(Input::only('outcome_id'));
@@ -258,14 +262,15 @@ class Objective2Controller extends \BaseController
258 262
 
259 263
 					case 3:
260 264
 						return Redirect::to('program-objective')->withInput(Input::only('outcome_id'));
261
-				}
265
+				}*/
262 266
 			}
263 267
 
264 268
 			/** If saving fails, send error message and old data */
265 269
 			else {
266 270
 				Session::flash('status', 'danger');
267 271
 				Session::flash('message', '<p>Error creating objective. Please try again later.</p>');
268
-				$role = Auth::user()['role'];
272
+				return Redirect::to('objective')->withInput();
273
+				/*$role = Auth::user()['role'];
269 274
 				switch ($role) {
270 275
 					case 1:
271 276
 						return Redirect::to('objective')->withInput();
@@ -275,7 +280,7 @@ class Objective2Controller extends \BaseController
275 280
 
276 281
 					case 3:
277 282
 						return Redirect::to('program-objective')->withInput();
278
-				}
283
+				}*/
279 284
 			}
280 285
 		}
281 286
 	}
@@ -424,7 +429,8 @@ class Objective2Controller extends \BaseController
424 429
 			//Session::flash('status', 'danger');
425 430
 			//Session::flash('message', $message);
426 431
 			$MessageArray = array('status' => 'danger', 'message' => $message);
427
-			$role = Auth::user()['role'];
432
+			return $MessageArray;
433
+			/*$role = Auth::user()['role'];
428 434
 			switch ($role) {
429 435
 				case 1:
430 436
 					return $MessageArray;
@@ -437,7 +443,7 @@ class Objective2Controller extends \BaseController
437 443
 				case 3:
438 444
 					return $MessageArray;
439 445
 					return Redirect::to('program-objective')->withInput();
440
-			}
446
+			}*/
441 447
 		} else {
442 448
 
443 449
 
@@ -455,6 +461,8 @@ class Objective2Controller extends \BaseController
455 461
 			/** If Objective is updated, send success message */
456 462
 			if ($Objective->save()) {
457 463
 
464
+				//TODO
465
+
458 466
 				$objectiveId = $Objective->id;
459 467
 				DB::delete("delete from `objective_outcome` where objective_id ={$objectiveId}");
460 468
 				DB::delete("delete from objective_program where objective_id = {$objectiveId}");
@@ -469,7 +477,8 @@ class Objective2Controller extends \BaseController
469 477
 				//Session::flash('status', 'success');
470 478
 				//Session::flash('message', 'Updated Objective: "' . $Objective->text . '"');
471 479
 				$MessageArray = array('status' => 'success', 'message' => 'Updated Objective: "' . $Objective->text . '"');
472
-				$role = Auth::user()['role'];
480
+				return $MessageArray;
481
+				/*$role = Auth::user()['role'];
473 482
 
474 483
 				switch ($role) {
475 484
 					case 1:
@@ -483,7 +492,7 @@ class Objective2Controller extends \BaseController
483 492
 					case 3:
484 493
 						return $MessageArray;
485 494
 						return Redirect::to('program-objective')->withInput();
486
-				}
495
+				}*/
487 496
 			}
488 497
 
489 498
 			/** If saving fails, send error message and old data */
@@ -491,6 +500,7 @@ class Objective2Controller extends \BaseController
491 500
 				//Session::flash('status', 'danger');
492 501
 				////Session::flash('message', 'Error updating the Objective. Please try again later.');
493 502
 				$MessageArray = array('status' => 'danger', 'message' => 'Error updating the Objective. Please try again later.');
503
+				return $MessageArray;
494 504
 				$role = Auth::user()['role'];
495 505
 				switch ($role) {
496 506
 					case 1:

+ 12
- 8
app/routes.php Zobrazit soubor

@@ -245,6 +245,10 @@ Route::group(array('before' => 'auth|has_access'), function () {
245 245
         'uses' => 'TransformativeActionsController@fetchCourses'
246 246
     ));
247 247
 
248
+    //Objectives and Criteria Shared Routes
249
+    Route::get('criteria', array('uses' => 'CriteriaController@edit'));
250
+    Route::get('objectives', array('uses' => 'Objective2Controller@edit'));
251
+
248 252
     // Fetch a criterion for a rubric
249 253
     Route::post('fetchCriterion', array(
250 254
         'as' => 'fetchCriterion',
@@ -369,8 +373,8 @@ Route::group(array('before' => 'auth|has_access'), function () {
369 373
         Route::post('administrator/updateAccess', array('before' => 'csrf', 'uses' => 'UsersController@updateAccess'));
370 374
         Route::post('administrator/users/store', array('before' => 'csrf', 'uses' => 'UsersController@store'));
371 375
 
372
-        Route::get('criteria', array('uses' => 'CriteriaController@edit'));
373
-        Route::get('objectives', array('uses' => 'Objective2Controller@edit'));
376
+        //Route::get('criteria', array('uses' => 'CriteriaController@edit'));
377
+        //Route::get('objectives', array('uses' => 'Objective2Controller@edit'));
374 378
         Route::get('administrator/semesters', 'SemestersController@edit');
375 379
         Route::post('administrator/semesters/update', 'SemestersController@update');
376 380
         Route::post('deleteObjective', 'Objective2Controller@delete');
@@ -415,8 +419,8 @@ Route::group(array('before' => 'auth|has_access'), function () {
415 419
 
416 420
         // Gabriel added this, so the school coordinator can add criterias and objectives
417 421
         Route::post('createCriterion', array('before' => 'csrf', 'uses' => 'CriteriaController@create'));
418
-        Route::get('school-objective', 'Objective2Controller@edit');
419
-        Route::get('school-criteria', 'CriteriaController@edit');
422
+        //Route::get('school-objective', 'Objective2Controller@edit');
423
+        //Route::get('school-criteria', 'CriteriaController@edit');
420 424
         Route::post('crtiteria/update', array('before' => 'csrf', 'uses' => 'CriteriaController@update'));
421 425
 
422 426
         //Show users annual plan
@@ -473,9 +477,9 @@ Route::group(array('before' => 'auth|has_access'), function () {
473 477
 
474 478
 
475 479
         //Criteria and objectives
476
-        Route::get('program-criteria', 'CriteriaController@edit');
480
+        //Route::get('program-criteria', 'CriteriaController@edit');
477 481
         Route::post('crtiteria/update', array('before' => 'csrf', 'uses' => 'CriteriaController@update'));
478
-        Route::get('program-objective', 'Objective2Controller@edit');
482
+        //Route::get('program-objective', 'Objective2Controller@edit');
479 483
 
480 484
         // Print program report
481 485
         Route::get('print_program/{id}', 'ProgramsController@print_program');
@@ -495,7 +499,7 @@ Route::group(array('before' => 'auth|has_access'), function () {
495 499
         Route::post('fetchObjectivesForCriteria', array('before' => 'csrf', 'uses' => 'ObjectivesController@fetchObjectivesForCriteria'));
496 500
 
497 501
         //Objectives por Gabriel
498
-        Route::get('objective', 'Objective2Controller@edit');
502
+        //Route::get('objective', 'Objective2Controller@edit');
499 503
         Route::post('createObjective', array('before' => 'csrf', 'uses' => 'Objective2Controller@create'));
500 504
         Route::post('updateObjective', array('before' => 'csrf', 'uses' => 'Objective2Controller@update'));
501 505
         Route::post('fetchObjectiveWithTrashed', array('before' => 'csrf', 'uses' => 'Objective2Controller@fetchObjectiveWithTrashed'));
@@ -607,4 +611,4 @@ Route::group(array('before' => 'auth|has_access'), function () {
607 611
 
608 612
         Route::get('general-studies-overview', 'ProfessorsController@generalStudiesOverview');
609 613
     });
610
-});
614
+});

+ 458
- 448
app/views/local/managers/admins/new_assessment_report.blade.php Zobrazit soubor

@@ -20,7 +20,7 @@
20 20
                     <li>{{ $semester_info }}</li>
21 21
                 @endforeach
22 22
             </ul>
23
-            <?php set_time_limit(0);?>
23
+            <?php set_time_limit(0); ?>
24 24
             @foreach ($schools as $school)
25 25
                 <h3>{{ $school->name }}</h3>
26 26
                 <hr>
@@ -47,7 +47,14 @@
47 47
                                 <h3 class="panel-title">{{ $program->name }}</h3>
48 48
                             </div>
49 49
                             <div class="panel-body">
50
-
50
+                                <ul class="nav navbars" role="tablist">
51
+                                    @foreach ($program->courses as $index2 => $course)
52
+                                        <li role="presentation">
53
+                                            <a data-toggle="tab" href="#{{ $course->code }}-{{ $course->number }}"
54
+                                                role="tab">{{ $course->code }}-{{ $course->number }}</a>
55
+                                        </li>
56
+                                    @endforeach
57
+                                </ul>
51 58
 
52 59
 
53 60
 
@@ -56,14 +63,14 @@
56 63
                                     <?php
57 64
                                     
58 65
                                     /*$sections_evaluating = Course::has('activities')
59
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->whereNotNull('outcomes_attempted')
60
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
61
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->with(array('activities'=>function($query) use(&$outcome){
62
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                $query->whereNotNull('outcomes_attempted');
63
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
64
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->where('code', $course->code)->where('number',$course->number)
65
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->whereIn('semester_id', Session::get('semesters_ids'))
66
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ->get();*/
66
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereNotNull('outcomes_attempted')
67
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
68
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->with(array('activities'=>function($query) use(&$outcome){
69
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        $query->whereNotNull('outcomes_attempted');
70
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
71
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->where('code', $course->code)->where('number',$course->number)
72
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->whereIn('semester_id', Session::get('semesters_ids'))
73
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ->get();*/
67 74
                                     
68 75
                                     $sections_evaluating = Course::has('activities')
69 76
                                     
@@ -99,494 +106,497 @@
99 106
                                     ?>
100 107
 
101 108
 
109
+                                    <div role="tabpanel" class='tab-pane'
110
+                                        id="{{ $course->code }}-{{ $course->number }}">
111
+                                        @foreach ($sections_evaluating as $index3 => $section)
112
+                                            @if (!$section->publishedActivities->isEmpty())
113
+                                                <h3 style="text-align: center"> Course: {{ $course->code }}
114
+                                                    {{ $course->number }}-{{ $section->section }} </h3>
115
+                                            @endif
102 116
 
103
-                                    @foreach ($sections_evaluating as $index3 => $section)
104
-                                        @if (!$section->publishedActivities->isEmpty())
105
-                                            <h3 style="text-align: center"> Course: {{ $course->code }}
106
-                                                {{ $course->number }}-{{ $section->section }} </h3>
107
-                                        @endif
108
-                              
109
-                                        @foreach ($section->publishedActivities as $index4 => $activity)
110
-                                            <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
111
-                                            <p style="display: inline;">{{ $activity->name }}
112
-                                                <strong>({{ $activity->date }})</strong>
113
-                                            </p>
114
-                                            <br>
115
-                                            <br>
116
-                                            <h5 style="display: inline;">Performance Indicators: </h5>
117
-                                            <?php
118
-                                            Log::info($activity->rubric[0]);
119
-                                            ?>
120
-                                            <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
121
-                                                    <?php
122
-                                                    $titles = $activity->rubric[0]->getTitles();
123
-                                                    ?>
124
-                                                    @if (sizeof($titles) != 1)
125
-                                                        @foreach ($titles as $index5 => $rubric_title)
126
-                                                            @if ($index5 != $activity->rubric[0]->num_scales - 1)
127
-                                                                {{ $rubric_title->text }},
128
-                                                            @else
129
-                                                                and {{ $rubric_title->text }}
130
-                                                            @endif
131
-                                                        @endforeach
132
-                                                        )
133
-                                                    @else
134
-                                                        {{ $titles[0]->text }} )
135
-                                                    @endif
136
-                                                </i></p>
137
-                                            <br>
138
-                                            <h5 style="display: inline;">Scale: </h5>
139
-                                            @if ($activity->rubric[0]->max_score == 1)
140
-                                                <p style="display: inline;">1 point scale</p>
141
-                                            @else
142
-                                                <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point
143
-                                                    scale
117
+                                            @foreach ($section->publishedActivities as $index4 => $activity)
118
+                                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
119
+                                                <p style="display: inline;">{{ $activity->name }}
120
+                                                    <strong>({{ $activity->date }})</strong>
144 121
                                                 </p>
145
-                                            @endif
146
-                                            <br>
147
-                                            <br>
148
-                                            <h4>Performance of Students by Learning Outcome Criteria</h4>
149
-                                            <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
150
-                                            <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_points }}
151
-                                                    or
152
-                                                    more</i>
153
-                                            </p>
154
-                                            <br>
155
-                                            <h5 style="display: inline; margin:30px;">Expected percent of students achieving
156
-                                                the
157
-                                                target by criterion: </h5>
158
-                                            <p style="display: inline;">
159
-                                                <i>{{ $activity->rubric[0]->expected_percentage }}
160
-                                                    %</i>
161
-                                            </p>
162
-
163
-                                            <br>
164
-
165
-                                            <table class='table table-striped table-condensed datatable'>
166
-                                                <thead>
167
-                                                    <tr>
168
-                                                        <th>
169
-                                                            Criterion
170
-                                                        </th>
171
-                                                        <th>
172
-                                                            Number of Students Assessed
173
-                                                        </th>
174
-                                                        <th>
175
-                                                            Number of students that achieved the target
176
-                                                        </th>
177
-                                                        <th>
178
-                                                            %
179
-                                                        </th>
180
-                                                        <th>
181
-                                                            Learning Outcomes
182
-                                                        </th>
183
-                                                    </tr>
184
-                                                </thead>
185
-                                                <tbody>
186
-                                                    @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
122
+                                                <br>
123
+                                                <br>
124
+                                                <h5 style="display: inline;">Performance Indicators: </h5>
125
+                                                <?php
126
+                                                Log::info($activity->rubric[0]);
127
+                                                ?>
128
+                                                <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
129
+                                                        <?php
130
+                                                        $titles = $activity->rubric[0]->getTitles();
131
+                                                        ?>
132
+                                                        @if (sizeof($titles) != 1)
133
+                                                            @foreach ($titles as $index5 => $rubric_title)
134
+                                                                @if ($index5 != $activity->rubric[0]->num_scales - 1)
135
+                                                                    {{ $rubric_title->text }},
136
+                                                                @else
137
+                                                                    and {{ $rubric_title->text }}
138
+                                                                @endif
139
+                                                            @endforeach
140
+                                                            )
141
+                                                        @else
142
+                                                            {{ $titles[0]->text }} )
143
+                                                        @endif
144
+                                                    </i></p>
145
+                                                <br>
146
+                                                <h5 style="display: inline;">Scale: </h5>
147
+                                                @if ($activity->rubric[0]->max_score == 1)
148
+                                                    <p style="display: inline;">1 point scale</p>
149
+                                                @else
150
+                                                    <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }}
151
+                                                        point
152
+                                                        scale
153
+                                                    </p>
154
+                                                @endif
155
+                                                <br>
156
+                                                <br>
157
+                                                <h4>Performance of Students by Learning Outcome Criteria</h4>
158
+                                                <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
159
+                                                <p style="display: inline;">
160
+                                                    <i>{{ $activity->rubric[0]->expected_points }}
161
+                                                        or
162
+                                                        more</i>
163
+                                                </p>
164
+                                                <br>
165
+                                                <h5 style="display: inline; margin:30px;">Expected percent of students
166
+                                                    achieving
167
+                                                    the
168
+                                                    target by criterion: </h5>
169
+                                                <p style="display: inline;">
170
+                                                    <i>{{ $activity->rubric[0]->expected_percentage }}
171
+                                                        %</i>
172
+                                                </p>
173
+
174
+                                                <br>
175
+
176
+                                                <table class='table table-striped table-condensed datatable'>
177
+                                                    <thead>
187 178
                                                         <tr>
188
-                                                            <td> {{ $ac_criterion->name }}</td>
189
-                                                            <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
190
-                                                            </td>
191
-                                                            <td>
192
-                                                                {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
193
-
194
-                                                            </td>
195
-                                                            <?php
196
-                                                            
197
-                                                            $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
198
-                                                            $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
199
-                                                            
200
-                                                            $percentage = 'N/A';
201
-                                                            $activity->getOutcomeReport();
202
-                                                            
203
-                                                            ?>
204
-                                                            @if ($out_att == 0)
205
-                                                                <td class="col-md-1 danger">{{ $percentage }}</td>
206
-
207
-                                                            @else
179
+                                                            <th>
180
+                                                                Criterion
181
+                                                            </th>
182
+                                                            <th>
183
+                                                                Number of Students Assessed
184
+                                                            </th>
185
+                                                            <th>
186
+                                                                Number of students that achieved the target
187
+                                                            </th>
188
+                                                            <th>
189
+                                                                %
190
+                                                            </th>
191
+                                                            <th>
192
+                                                                Learning Outcomes
193
+                                                            </th>
194
+                                                        </tr>
195
+                                                    </thead>
196
+                                                    <tbody>
197
+                                                        @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
198
+                                                            <tr>
199
+                                                                <td> {{ $ac_criterion->name }}</td>
200
+                                                                <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
201
+                                                                </td>
202
+                                                                <td>
203
+                                                                    {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
204
+
205
+                                                                </td>
208 206
                                                                 <?php
209
-                                                                $percentage = round(($out_ach / $out_att) * 100, 2);
207
+                                                                
208
+                                                                $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
209
+                                                                $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
210
+                                                                
211
+                                                                $percentage = 'N/A';
212
+                                                                $activity->getOutcomeReport();
213
+                                                                
210 214
                                                                 ?>
211
-                                                                @if ($percentage >= $activity->rubric[0]->expected_percentage)
212
-                                                                    <td class="col-md-1 success">{{ $percentage }}%</td>
213
-
215
+                                                                @if ($out_att == 0)
216
+                                                                    <td class="col-md-1 danger">{{ $percentage }}</td>
214 217
                                                                 @else
215
-                                                                    <td class="col-md-1 danger">{{ $percentage }}%</td>
218
+                                                                    <?php
219
+                                                                    $percentage = round(($out_ach / $out_att) * 100, 2);
220
+                                                                    ?>
221
+                                                                    @if ($percentage >= $activity->rubric[0]->expected_percentage)
222
+                                                                        <td class="col-md-1 success">{{ $percentage }}%
223
+                                                                        </td>
224
+                                                                    @else
225
+                                                                        <td class="col-md-1 danger">{{ $percentage }}%
226
+                                                                        </td>
227
+                                                                    @endif
216 228
                                                                 @endif
217
-                                                            @endif
218
-                                                            <td>
229
+                                                                <td>
219 230
 
220
-                                                                @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
221
-                                                                    <?php echo $outcome->name . "\n\n\n <br>"; ?>
222
-                                                                @endforeach
231
+                                                                    @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
232
+                                                                        <?php echo $outcome->name . "\n\n\n <br>"; ?>
233
+                                                                    @endforeach
223 234
 
224 235
 
225
-                                                            </td>
226
-                                                        </tr>
227
-                                                    @endforeach
228
-                                                </tbody>
229
-
230
-                                            </table>
231
-                                            <br>
232
-                                            <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
233
-                                            <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
234
-                                            @if ($formative_actions)
235
-                                                <p style="display: inline;">
236
-                                                    <u>{{ $formative_actions[0]->at_text }}:
237
-                                                    </u>
236
+                                                                </td>
237
+                                                            </tr>
238
+                                                        @endforeach
239
+                                                    </tbody>
238 240
 
239
-                                                    <i>{{ $formative_actions[0]->description }}
241
+                                                </table>
242
+                                                <br>
243
+                                                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
244
+                                                <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
245
+                                                @if ($formative_actions)
246
+                                                    <p style="display: inline;">
247
+                                                        <u>{{ $formative_actions[0]->at_text }}:
248
+                                                        </u>
249
+
250
+                                                        <i>{{ $formative_actions[0]->description }}
251
+                                                        </i>
252
+                                                    </p>
253
+                                                    <br>
254
+                                                    <h5 style="display: inline; margin:30px;">Formative Action's Associated
255
+                                                        Criteria: </h5>
256
+                                                    <ul style="margin:30px;">
257
+                                                        @foreach ($formative_actions as $criteria)
258
+                                                            <li> <i>{{ $criteria->name }} </i></li>
259
+                                                        @endforeach
260
+                                                    </ul>
261
+                                                @endif
262
+
263
+                                                <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
264
+                                                @if ($activity->assessment_comments != null)
265
+                                                    <p style="display: inline;">{{ $activity->assessment_comments }}</p>
266
+                                                @endif
267
+                                                <br>
268
+                                                <hr>
269
+                                                <br>
270
+
271
+                                                <h4>Performance of Students by Learning Outcome</h4>
272
+                                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
273
+                                                <p style="display: inline;">{{ $activity->name }}
274
+                                                    <strong>({{ $activity->date }})</strong>
275
+                                                </p>
276
+                                                <br>
277
+                                                <br>
278
+
279
+                                                <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
280
+                                                <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
281
+                                                </p>
282
+                                                <br>
283
+                                                <h5 style="display: inline; margin:30px;">Expected percent of students
284
+                                                    achieving
285
+                                                    the
286
+                                                    target by learning outcome: </h5>
287
+                                                <p style="display: inline;"> <i>
288
+                                                        <?php
289
+                                                        $expected = DB::table('target_outcomes_program')
290
+                                                            ->where('program_id', $course->program_id)
291
+                                                            ->where('semester_id', $course->semester_id)
292
+                                                            ->first(); //->expected_target;
293
+                                                        if (!$expected) {
294
+                                                            $expected = 'It has not been defined in the annual plan';
295
+                                                        } else {
296
+                                                            $expected = $expected->expected_target;
297
+                                                        }
298
+                                                        ?>
299
+                                                        {{ $expected }}
240 300
                                                     </i>
241 301
                                                 </p>
242 302
                                                 <br>
243
-                                                <h5 style="display: inline; margin:30px;">Formative Action's Associated
244
-                                                    Criteria: </h5>
245
-                                                <ul style="margin:30px;">
246
-                                                    @foreach ($formative_actions as $criteria)
247
-                                                        <li> <i>{{ $criteria->name }} <i></li>
248
-                                                    @endforeach
249
-                                                </ul>
250
-                                            @endif
251
-                                            <br>
252
-                                            <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
253
-                                            @if ($activity->assessment_comments != null)
254
-                                                <p style="display: inline;">{{ $activity->assessment_comments }}</p>
255
-                                            @endif
256
-                                            <br>
257
-                                            <hr>
258
-                                            <br>
259
-
260
-                                            <h4>Performance of Students by Learning Outcome</h4>
261
-                                            <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
262
-                                            <p style="display: inline;">{{ $activity->name }}
263
-                                                <strong>({{ $activity->date }})</strong>
264
-                                            </p>
265
-                                            <br>
266
-                                            <br>
267
-
268
-                                            <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
269
-                                            <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
270
-                                            </p>
271
-                                            <br>
272
-                                            <h5 style="display: inline; margin:30px;">Expected percent of students
273
-                                                achieving
274
-                                                the
275
-                                                target by learning outcome: </h5>
276
-                                            <p style="display: inline;"> <i>
277
-                                                    <?php
278
-                                                    $expected = DB::table('target_outcomes_program')
279
-                                                        ->where('program_id', $course->program_id)
280
-                                                        ->where('semester_id', $course->semester_id)
281
-                                                        ->first(); //->expected_target;
282
-                                                    if (!$expected) {
283
-                                                        $expected = 'It has not been defined in the annual plan';
284
-                                                    } else {
285
-                                                        $expected = $expected->expected_target;
286
-                                                    }
287
-                                                    ?>
288
-                                                    {{ $expected }}
289
-                                                </i>
290
-                                            </p>
291
-                                            <br>
292
-                                            <table class='table table-striped table-condensed datatable'>
293
-                                                <thead>
294
-                                                    <tr>
295
-                                                        <th>
296
-                                                            Learning Outcome
297
-                                                        </th>
298
-                                                        <th>
299
-                                                            Number of Students Assessed
300
-                                                        </th>
301
-                                                        <th>
302
-                                                            Number of students that achieved the target
303
-                                                        </th>
304
-                                                        <th>
305
-                                                            %
306
-                                                        </th>
307
-
308
-                                                    </tr>
309
-                                                </thead>
310
-                                                <tbody>
311
-                                                    @foreach ($activity->getOutcomeReport() as $outcome)
303
+                                                <table class='table table-striped table-condensed datatable'>
304
+                                                    <thead>
312 305
                                                         <tr>
313
-                                                            <td>
314
-                                                                {{ $outcome->name }}
315
-                                                            </td>
316
-                                                            <td>
317
-                                                                {{ $outcome->attempted }}
318
-                                                            </td>
319
-                                                            <td>
320
-                                                                {{ $outcome->achieved }}
321
-                                                            </td>
322
-                                                            @if ($outcome->percentage >= $expected)
323
-                                                                <td class="col-md-1 success">
324
-                                                                    {{ $outcome->percentage }}%
325
-                                                                </td>
306
+                                                            <th>
307
+                                                                Learning Outcome
308
+                                                            </th>
309
+                                                            <th>
310
+                                                                Number of Students Assessed
311
+                                                            </th>
312
+                                                            <th>
313
+                                                                Number of students that achieved the target
314
+                                                            </th>
315
+                                                            <th>
316
+                                                                %
317
+                                                            </th>
326 318
 
327
-                                                            @else
328
-                                                                <td class="col-md-1 danger">
329
-                                                                    {{ $outcome->percentage }}%
319
+                                                        </tr>
320
+                                                    </thead>
321
+                                                    <tbody>
322
+                                                        @foreach ($activity->getOutcomeReport() as $outcome)
323
+                                                            <tr>
324
+                                                                <td>
325
+                                                                    {{ $outcome->name }}
330 326
                                                                 </td>
331
-                                                            @endif
332
-
327
+                                                                <td>
328
+                                                                    {{ $outcome->attempted }}
329
+                                                                </td>
330
+                                                                <td>
331
+                                                                    {{ $outcome->achieved }}
332
+                                                                </td>
333
+                                                                @if ($outcome->percentage >= $expected)
334
+                                                                    <td class="col-md-1 success">
335
+                                                                        {{ $outcome->percentage }}%
336
+                                                                    </td>
337
+                                                                @else
338
+                                                                    <td class="col-md-1 danger">
339
+                                                                        {{ $outcome->percentage }}%
340
+                                                                    </td>
341
+                                                                @endif
333 342
 
334 343
 
335 344
 
336 345
 
337
-                                                        </tr>
338
-                                                    @endforeach
339
-                                                </tbody>
340
-                                            </table>
341 346
 
342
-                                            <br>
343
-                                            <hr>
344
-                                        @endforeach
345
-                                        <h4>Diagnostic Activities</h4>
346
-                                        @foreach ($section->diagnosticActivities as $index4 => $activity)
347
-                                            <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
348
-                                            <p style="display: inline;">{{ $activity->name }}
349
-                                                <strong>({{ $activity->date }})</strong>
350
-                                            </p>
351
-                                            <br>
352
-                                            <br>
353
-                                            <h5 style="display: inline;">Performance Indicators: </h5>
354
-                                            <?php
355
-                                            Log::info($activity->rubric[0]);
356
-                                            ?>
357
-                                            <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
358
-                                                    <?php
359
-                                                    $titles = $activity->rubric[0]->getTitles();
360
-                                                    ?>
361
-                                                    @if (sizeof($titles) != 1)
362
-                                                        @foreach ($titles as $index5 => $rubric_title)
363
-                                                            @if ($index5 != $activity->rubric[0]->num_scales - 1)
364
-                                                                {{ $rubric_title->text }},
365
-                                                            @else
366
-                                                                and {{ $rubric_title->text }}
367
-                                                            @endif
347
+                                                            </tr>
368 348
                                                         @endforeach
369
-                                                        )
370
-                                                    @else
371
-                                                        {{ $titles[0]->text }} )
372
-                                                    @endif
373
-                                                </i></p>
374
-                                            <br>
375
-                                            <h5 style="display: inline;">Scale: </h5>
376
-                                            @if ($activity->rubric[0]->max_score == 1)
377
-                                                <p style="display: inline;">1 point scale</p>
378
-                                            @else
379
-                                                <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point
380
-                                                    scale
349
+                                                    </tbody>
350
+                                                </table>
351
+
352
+                                                <br>
353
+                                                <hr>
354
+                                            @endforeach
355
+                                            <h4>Diagnostic Activities</h4>
356
+                                            @foreach ($section->diagnosticActivities as $index4 => $activity)
357
+                                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
358
+                                                <p style="display: inline;">{{ $activity->name }}
359
+                                                    <strong>({{ $activity->date }})</strong>
381 360
                                                 </p>
382
-                                            @endif
383
-                                            <br>
384
-                                            <br>
385
-                                            <h4>Performance of Students by Learning Outcome Criteria</h4>
386
-                                            <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
387
-                                            <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_points }}
388
-                                                    or
389
-                                                    more</i>
390
-                                            </p>
391
-                                            <br>
392
-                                            <h5 style="display: inline; margin:30px;">Expected percent of students achieving
393
-                                                the
394
-                                                target by criterion: </h5>
395
-                                            <p style="display: inline;">
396
-                                                <i>{{ $activity->rubric[0]->expected_percentage }}
397
-                                                    %</i>
398
-                                            </p>
399
-
400
-                                            <br>
401
-
402
-                                            <table class='table table-striped table-condensed datatable'>
403
-                                                <thead>
404
-                                                    <tr>
405
-                                                        <th>
406
-                                                            Criterion
407
-                                                        </th>
408
-                                                        <th>
409
-                                                            Number of Students Assessed
410
-                                                        </th>
411
-                                                        <th>
412
-                                                            Number of students that achieved the target
413
-                                                        </th>
414
-                                                        <th>
415
-                                                            %
416
-                                                        </th>
417
-                                                        <th>
418
-                                                            Learning Outcomes
419
-                                                        </th>
420
-                                                    </tr>
421
-                                                </thead>
422
-                                                <tbody>
423
-                                                    @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
361
+                                                <br>
362
+                                                <br>
363
+                                                <h5 style="display: inline;">Performance Indicators: </h5>
364
+                                                <?php
365
+                                                Log::info($activity->rubric[0]);
366
+                                                ?>
367
+                                                <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
368
+                                                        <?php
369
+                                                        $titles = $activity->rubric[0]->getTitles();
370
+                                                        ?>
371
+                                                        @if (sizeof($titles) != 1)
372
+                                                            @foreach ($titles as $index5 => $rubric_title)
373
+                                                                @if ($index5 != $activity->rubric[0]->num_scales - 1)
374
+                                                                    {{ $rubric_title->text }},
375
+                                                                @else
376
+                                                                    and {{ $rubric_title->text }}
377
+                                                                @endif
378
+                                                            @endforeach
379
+                                                            )
380
+                                                        @else
381
+                                                            {{ $titles[0]->text }} )
382
+                                                        @endif
383
+                                                    </i></p>
384
+                                                <br>
385
+                                                <h5 style="display: inline;">Scale: </h5>
386
+                                                @if ($activity->rubric[0]->max_score == 1)
387
+                                                    <p style="display: inline;">1 point scale</p>
388
+                                                @else
389
+                                                    <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }}
390
+                                                        point
391
+                                                        scale
392
+                                                    </p>
393
+                                                @endif
394
+                                                <br>
395
+                                                <br>
396
+                                                <h4>Performance of Students by Learning Outcome Criteria</h4>
397
+                                                <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
398
+                                                <p style="display: inline;">
399
+                                                    <i>{{ $activity->rubric[0]->expected_points }}
400
+                                                        or
401
+                                                        more</i>
402
+                                                </p>
403
+                                                <br>
404
+                                                <h5 style="display: inline; margin:30px;">Expected percent of students
405
+                                                    achieving
406
+                                                    the
407
+                                                    target by criterion: </h5>
408
+                                                <p style="display: inline;">
409
+                                                    <i>{{ $activity->rubric[0]->expected_percentage }}
410
+                                                        %</i>
411
+                                                </p>
412
+
413
+                                                <br>
414
+
415
+                                                <table class='table table-striped table-condensed datatable'>
416
+                                                    <thead>
424 417
                                                         <tr>
425
-                                                            <td> {{ $ac_criterion->name }}</td>
426
-                                                            <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
427
-                                                            </td>
428
-                                                            <td>
429
-                                                                {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
430
-
431
-                                                            </td>
432
-                                                            <?php
433
-                                                            
434
-                                                            $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
435
-                                                            $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
436
-                                                            
437
-                                                            $percentage = 'N/A';
438
-                                                            $activity->getOutcomeReport();
439
-                                                            
440
-                                                            ?>
441
-                                                            @if ($out_att == 0)
442
-                                                                <td class="col-md-1 danger">{{ $percentage }}</td>
443
-
444
-                                                            @else
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 445
                                                                 <?php
446
-                                                                $percentage = round(($out_ach / $out_att) * 100, 2);
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
+                                                                
447 453
                                                                 ?>
448
-                                                                @if ($percentage >= $activity->rubric[0]->expected_percentage)
449
-                                                                    <td class="col-md-1 success">{{ $percentage }}%</td>
450
-
454
+                                                                @if ($out_att == 0)
455
+                                                                    <td class="col-md-1 danger">{{ $percentage }}</td>
451 456
                                                                 @else
452
-                                                                    <td class="col-md-1 danger">{{ $percentage }}%</td>
457
+                                                                    <?php
458
+                                                                    $percentage = round(($out_ach / $out_att) * 100, 2);
459
+                                                                    ?>
460
+                                                                    @if ($percentage >= $activity->rubric[0]->expected_percentage)
461
+                                                                        <td class="col-md-1 success">{{ $percentage }}%
462
+                                                                        </td>
463
+                                                                    @else
464
+                                                                        <td class="col-md-1 danger">{{ $percentage }}%
465
+                                                                        </td>
466
+                                                                    @endif
453 467
                                                                 @endif
454
-                                                            @endif
455
-                                                            <td>
468
+                                                                <td>
456 469
 
457
-                                                                @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
458
-                                                                    <?php echo $outcome->name . "\n\n\n <br>"; ?>
459
-                                                                @endforeach
470
+                                                                    @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
471
+                                                                        <?php echo $outcome->name . "\n\n\n <br>"; ?>
472
+                                                                    @endforeach
460 473
 
461 474
 
462
-                                                            </td>
463
-                                                        </tr>
464
-                                                    @endforeach
465
-                                                </tbody>
466
-
467
-                                            </table>
468
-                                            <br>
469
-                                            <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
470
-                                            <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
471
-                                            @if ($formative_actions)
472
-                                                <p style="display: inline;">
473
-                                                    <u>{{ $formative_actions[0]->at_text }}:
474
-                                                    </u>
475
+                                                                </td>
476
+                                                            </tr>
477
+                                                        @endforeach
478
+                                                    </tbody>
475 479
 
476
-                                                    <i>{{ $formative_actions[0]->description }}
480
+                                                </table>
481
+                                                <br>
482
+                                                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
483
+                                                <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
484
+                                                @if ($formative_actions)
485
+                                                    <p style="display: inline;">
486
+                                                        <u>{{ $formative_actions[0]->at_text }}:
487
+                                                        </u>
488
+
489
+                                                        <i>{{ $formative_actions[0]->description }}
490
+                                                        </i>
491
+                                                    </p>
492
+                                                    <br>
493
+                                                    <h5 style="display: inline; margin:30px;">Formative Action's Associated
494
+                                                        Criteria: </h5>
495
+                                                    <ul style="margin:30px;">
496
+                                                        @foreach ($formative_actions as $criteria)
497
+                                                            <li> <i>{{ $criteria->name }} </i></li>
498
+                                                        @endforeach
499
+                                                    </ul>
500
+                                                @endif
501
+
502
+                                                <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
503
+                                                @if ($activity->assessment_comments != null)
504
+                                                    <p style="display: inline;">{{ $activity->assessment_comments }}</p>
505
+                                                @endif
506
+                                                <br>
507
+                                                <hr>
508
+                                                <br>
509
+
510
+                                                <h4>Performance of Students by Learning Outcome</h4>
511
+                                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
512
+                                                <p style="display: inline;">{{ $activity->name }}
513
+                                                    <strong>({{ $activity->date }})</strong>
514
+                                                </p>
515
+                                                <br>
516
+                                                <br>
517
+
518
+                                                <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
519
+                                                <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
520
+                                                </p>
521
+                                                <br>
522
+                                                <h5 style="display: inline; margin:30px;">Expected percent of students
523
+                                                    achieving
524
+                                                    the
525
+                                                    target by learning outcome: </h5>
526
+                                                <p style="display: inline;"> <i>
527
+                                                        <?php
528
+                                                        $expected = DB::table('target_outcomes_program')
529
+                                                            ->where('program_id', $course->program_id)
530
+                                                            ->where('semester_id', $course->semester_id)
531
+                                                            ->first(); //->expected_target;
532
+                                                        if (!$expected) {
533
+                                                            $expected = 'It has not been defined in the annual plan';
534
+                                                        } else {
535
+                                                            $expected = $expected->expected_target;
536
+                                                        }
537
+                                                        ?>
538
+                                                        {{ $expected }}
477 539
                                                     </i>
478 540
                                                 </p>
479 541
                                                 <br>
480
-                                                <h5 style="display: inline; margin:30px;">Formative Action's Associated
481
-                                                    Criteria: </h5>
482
-                                                <ul style="margin:30px;">
483
-                                                    @foreach ($formative_actions as $criteria)
484
-                                                        <li> <i>{{ $criteria->name }} <i></li>
485
-                                                    @endforeach
486
-                                                </ul>
487
-                                            @endif
488
-                                            <br>
489
-                                            <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
490
-                                            @if ($activity->assessment_comments != null)
491
-                                                <p style="display: inline;">{{ $activity->assessment_comments }}</p>
492
-                                            @endif
493
-                                            <br>
494
-                                            <hr>
495
-                                            <br>
496
-
497
-                                            <h4>Performance of Students by Learning Outcome</h4>
498
-                                            <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
499
-                                            <p style="display: inline;">{{ $activity->name }}
500
-                                                <strong>({{ $activity->date }})</strong>
501
-                                            </p>
502
-                                            <br>
503
-                                            <br>
504
-
505
-                                            <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
506
-                                            <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
507
-                                            </p>
508
-                                            <br>
509
-                                            <h5 style="display: inline; margin:30px;">Expected percent of students
510
-                                                achieving
511
-                                                the
512
-                                                target by learning outcome: </h5>
513
-                                            <p style="display: inline;"> <i>
514
-                                                    <?php
515
-                                                    $expected = DB::table('target_outcomes_program')
516
-                                                        ->where('program_id', $course->program_id)
517
-                                                        ->where('semester_id', $course->semester_id)
518
-                                                        ->first(); //->expected_target;
519
-                                                    if (!$expected) {
520
-                                                        $expected = 'It has not been defined in the annual plan';
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)
542
+                                                <table class='table table-striped table-condensed datatable'>
543
+                                                    <thead>
549 544
                                                         <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">
561
-                                                                    {{ $outcome->percentage }}%
562
-                                                                </td>
545
+                                                            <th>
546
+                                                                Learning Outcome
547
+                                                            </th>
548
+                                                            <th>
549
+                                                                Number of Students Assessed
550
+                                                            </th>
551
+                                                            <th>
552
+                                                                Number of students that achieved the target
553
+                                                            </th>
554
+                                                            <th>
555
+                                                                %
556
+                                                            </th>
563 557
 
564
-                                                            @else
565
-                                                                <td class="col-md-1 danger">
566
-                                                                    {{ $outcome->percentage }}%
558
+                                                        </tr>
559
+                                                    </thead>
560
+                                                    <tbody>
561
+                                                        @foreach ($activity->getOutcomeReport() as $outcome)
562
+                                                            <tr>
563
+                                                                <td>
564
+                                                                    {{ $outcome->name }}
565
+                                                                </td>
566
+                                                                <td>
567
+                                                                    {{ $outcome->attempted }}
568
+                                                                </td>
569
+                                                                <td>
570
+                                                                    {{ $outcome->achieved }}
567 571
                                                                 </td>
568
-                                                            @endif
572
+                                                                @if ($outcome->percentage >= $expected)
573
+                                                                    <td class="col-md-1 success">
574
+                                                                        {{ $outcome->percentage }}%
575
+                                                                    </td>
576
+                                                                @else
577
+                                                                    <td class="col-md-1 danger">
578
+                                                                        {{ $outcome->percentage }}%
579
+                                                                    </td>
580
+                                                                @endif
569 581
 
570 582
 
571 583
 
572 584
 
573 585
 
574
-                                                        </tr>
575
-                                                    @endforeach
576
-                                                </tbody>
577
-                                            </table>
586
+                                                            </tr>
587
+                                                        @endforeach
588
+                                                    </tbody>
589
+                                                </table>
578 590
 
579
-                                            <br>
580
-                                            <hr>
591
+                                                <br>
592
+                                                <hr>
593
+                                            @endforeach
581 594
                                         @endforeach
582
-                                    @endforeach
595
+                                    </div>
583 596
                                 @endforeach
584 597
                             </div>
585 598
                         </div>
586 599
                     @endforeach
587
-
588
-
589
-
590 600
                 @else
591 601
                     <h4>This program has not assessed any activity</h4>
592 602
                 @endif

+ 208
- 264
app/views/local/managers/pCoords/new_assessment_report.blade.php Zobrazit soubor

@@ -23,12 +23,11 @@
23 23
 
24 24
             @if ($program)
25 25
 
26
-            <?php set_time_limit(0);?>
26
+                <?php set_time_limit(0); ?>
27 27
 
28 28
                 <ul id='levelTabs' class="nav nav-tabs" role="tablist">
29 29
                     <!-- For each grouped course -->
30 30
                     @foreach ($program->courses as $index2 => $course)
31
-
32 31
                         <li role="presentation">
33 32
                             <a data-toggle="tab" href="#{{ $course->code }}-{{ $course->number }}"
34 33
                                 role="tab">{{ $course->code }}-{{ $course->number }}</a>
@@ -40,18 +39,17 @@
40 39
 
41 40
                     <!-- If grouped course has activities that evaluate the outcome -->
42 41
                     @foreach ($program->courses as $index2 => $course)
43
-
44 42
                         <?php
45 43
                         
46 44
                         /*$sections_evaluating = Course::has('activities')
47
-                                                                                                                                                                                                                                                                                        ->whereNotNull('outcomes_attempted')
48
-                                                                                                                                                                                                                                                                                        ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
49
-                                                                                                                                                                                                                                                                                        ->with(array('activities'=>function($query) use(&$outcome){
50
-                                                                                                                                                                                                                                                                                            $query->whereNotNull('outcomes_attempted');
51
-                                                                                                                                                                                                                                                                                            $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
52
-                                                                                                                                                                                                                                                                                        ->where('code', $course->code)->where('number',$course->number)
53
-                                                                                                                                                                                                                                                                                        ->whereIn('semester_id', Session::get('semesters_ids'))
54
-                                                                                                                                                                                                                                                                                        ->get();*/
45
+                                                                                                                                                                                                                                                                                                                                                                ->whereNotNull('outcomes_attempted')
46
+                                                                                                                                                                                                                                                                                                                                                                ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
47
+                                                                                                                                                                                                                                                                                                                                                                ->with(array('activities'=>function($query) use(&$outcome){
48
+                                                                                                                                                                                                                                                                                                                                                                    $query->whereNotNull('outcomes_attempted');
49
+                                                                                                                                                                                                                                                                                                                                                                    $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
50
+                                                                                                                                                                                                                                                                                                                                                                ->where('code', $course->code)->where('number',$course->number)
51
+                                                                                                                                                                                                                                                                                                                                                                ->whereIn('semester_id', Session::get('semesters_ids'))
52
+                                                                                                                                                                                                                                                                                                                                                                ->get();*/
55 53
                         
56 54
                         $sections_evaluating = Course::has('activities')
57 55
                         
@@ -91,9 +89,8 @@
91 89
                             @foreach ($sections_evaluating as $index3 => $section)
92 90
                                 <h3 style="text-align: center"> Course: {{ $course->code }}
93 91
                                     {{ $course->number }}-{{ $section->section }} </h3>
94
-                                    
95
-                                @foreach ($section->publishedActivities as $index4 => $activity)
96 92
 
93
+                                @foreach ($section->publishedActivities as $index4 => $activity)
97 94
                                     <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
98 95
                                     <p style="display: inline;">{{ $activity->name }}
99 96
                                         <strong>({{ $activity->date }})</strong>
@@ -115,7 +112,6 @@
115 112
                                                     @else
116 113
                                                         and {{ $rubric_title->text }}
117 114
                                                     @endif
118
-
119 115
                                                 @endforeach
120 116
                                                 )
121 117
                                             @else
@@ -129,7 +125,6 @@
129 125
                                     @else
130 126
                                         <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point scale
131 127
                                         </p>
132
-
133 128
                                     @endif
134 129
                                     <br>
135 130
                                     <br>
@@ -187,27 +182,20 @@
187 182
                                                     ?>
188 183
                                                     @if ($out_att == 0)
189 184
                                                         <td class="col-md-1 danger">{{ $percentage }}</td>
190
-
191 185
                                                     @else
192 186
                                                         <?php
193 187
                                                         $percentage = round(($out_ach / $out_att) * 100, 2);
194 188
                                                         ?>
195 189
                                                         @if ($percentage >= $activity->rubric[0]->expected_percentage)
196 190
                                                             <td class="col-md-1 success">{{ $percentage }}%</td>
197
-
198 191
                                                         @else
199 192
                                                             <td class="col-md-1 danger">{{ $percentage }}%</td>
200
-
201 193
                                                         @endif
202 194
                                                     @endif
203 195
                                                     <td>
204 196
 
205 197
                                                         @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
206
-
207 198
                                                             <?php echo $outcome->name . "\n\n\n <br>"; ?>
208
-
209
-
210
-
211 199
                                                         @endforeach
212 200
 
213 201
 
@@ -233,18 +221,13 @@
233 221
                                             Criteria: </h5>
234 222
                                         <ul style="margin:30px;">
235 223
                                             @foreach ($formative_actions as $criteria)
236
-                                                <li> <i>{{ $criteria->name }} <i></li>
237
-
224
+                                                <li> <i>{{ $criteria->name }} </i></li>
238 225
                                             @endforeach
239 226
                                         </ul>
240
-
241
-
242 227
                                     @endif
243
-                                    <br>
228
+
244 229
                                     <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
245 230
                                     @if ($activity->assessment_comments != null)
246
-
247
-
248 231
                                         <p style="display: inline;">{{ $activity->assessment_comments }}</p>
249 232
                                     @endif
250 233
                                     <br>
@@ -272,10 +255,9 @@
272 255
                                                 ->first();
273 256
                                             if (!$expected) {
274 257
                                                 $expected = 'It has not been defined in the annual plan';
258
+                                            } else {
259
+                                                $expected = $expected->expected_target;
275 260
                                             }
276
-                                            else{
277
-                                            $expected = $expected->expected_target;
278
-                                        }
279 261
                                             ?>
280 262
                                             {{ $expected }}
281 263
                                         </i>
@@ -313,10 +295,8 @@
313 295
                                                     </td>
314 296
                                                     @if ($outcome->percentage >= $expected)
315 297
                                                         <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
316
-
317 298
                                                     @else
318 299
                                                         <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
319
-
320 300
                                                     @endif
321 301
 
322 302
 
@@ -324,274 +304,238 @@
324 304
 
325 305
 
326 306
                                                 </tr>
327
-
328 307
                                             @endforeach
329 308
                                         </tbody>
330 309
                                     </table>
331 310
 
332 311
                                     <br>
333 312
                                     <hr>
334
-
335
-
336
-
337
-
338
-
339
-
340 313
                                 @endforeach
341 314
                                 <h4>Diagnostic Activities</h4>
342 315
                                 @foreach ($section->diagnosticActivities as $index4 => $activity)
343
-
344
-                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
345
-                                <p style="display: inline;">{{ $activity->name }}
346
-                                    <strong>({{ $activity->date }})</strong>
347
-                                </p>
348
-                                <br>
349
-                                <br>
350
-                                <h5 style="display: inline;">Performance Indicators: </h5>
351
-                                <?php
352
-                                Log::info($activity->rubric[0]);
353
-                                ?>
354
-                                <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
355
-                                        <?php
356
-                                        $titles = $activity->rubric[0]->getTitles();
357
-                                        ?>
358
-                                        @if (sizeof($titles) != 1)
359
-                                            @foreach ($titles as $index5 => $rubric_title)
360
-                                                @if ($index5 != $activity->rubric[0]->num_scales - 1)
361
-                                                    {{ $rubric_title->text }},
362
-                                                @else
363
-                                                    and {{ $rubric_title->text }}
364
-                                                @endif
365
-
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 scale
316
+                                    <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
317
+                                    <p style="display: inline;">{{ $activity->name }}
318
+                                        <strong>({{ $activity->date }})</strong>
319
+                                    </p>
320
+                                    <br>
321
+                                    <br>
322
+                                    <h5 style="display: inline;">Performance Indicators: </h5>
323
+                                    <?php
324
+                                    Log::info($activity->rubric[0]);
325
+                                    ?>
326
+                                    <p style="display: inline;"><i>{{ $activity->rubric[0]->num_scales }} (
327
+                                            <?php
328
+                                            $titles = $activity->rubric[0]->getTitles();
329
+                                            ?>
330
+                                            @if (sizeof($titles) != 1)
331
+                                                @foreach ($titles as $index5 => $rubric_title)
332
+                                                    @if ($index5 != $activity->rubric[0]->num_scales - 1)
333
+                                                        {{ $rubric_title->text }},
334
+                                                    @else
335
+                                                        and {{ $rubric_title->text }}
336
+                                                    @endif
337
+                                                @endforeach
338
+                                                )
339
+                                            @else
340
+                                                {{ $titles[0]->text }} )
341
+                                            @endif
342
+                                        </i></p>
343
+                                    <br>
344
+                                    <h5 style="display: inline;">Scale: </h5>
345
+                                    @if ($activity->rubric[0]->max_score == 1)
346
+                                        <p style="display: inline;">1 point scale</p>
347
+                                    @else
348
+                                        <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point scale
349
+                                        </p>
350
+                                    @endif
351
+                                    <br>
352
+                                    <br>
353
+                                    <h4>Performance of Students by Learning Outcome Criteria</h4>
354
+                                    <h5 style="display: inline; margin:30px;">Target by criterion: </h5>
355
+                                    <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_points }} or
356
+                                            more</i>
357
+                                    </p>
358
+                                    <br>
359
+                                    <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
360
+                                        target by criterion: </h5>
361
+                                    <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_percentage }} %</i>
378 362
                                     </p>
379 363
 
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 }} or
386
-                                        more</i>
387
-                                </p>
388
-                                <br>
389
-                                <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
390
-                                    target by criterion: </h5>
391
-                                <p style="display: inline;"> <i>{{ $activity->rubric[0]->expected_percentage }} %</i>
392
-                                </p>
393
-
394
-                                <br>
395
-
396
-                                <table class='table table-striped table-condensed datatable'>
397
-                                    <thead>
398
-                                        <tr>
399
-                                            <th>
400
-                                                Criterion
401
-                                            </th>
402
-                                            <th>
403
-                                                Number of Students Assessed
404
-                                            </th>
405
-                                            <th>
406
-                                                Number of students that achieved the target
407
-                                            </th>
408
-                                            <th>
409
-                                                %
410
-                                            </th>
411
-                                            <th>
412
-                                                Learning Outcomes
413
-                                            </th>
414
-                                        </tr>
415
-                                    </thead>
416
-                                    <tbody>
417
-                                        @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
364
+                                    <br>
365
+
366
+                                    <table class='table table-striped table-condensed datatable'>
367
+                                        <thead>
418 368
                                             <tr>
419
-                                                <td> {{ $ac_criterion->name }}</td>
420
-                                                <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
421
-                                                </td>
422
-                                                <td>
423
-                                                    {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
424
-
425
-                                                </td>
426
-                                                <?php
427
-                                                
428
-                                                $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
429
-                                                $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
430
-                                                
431
-                                                $percentage = 'N/A';
432
-                                                $activity->getOutcomeReport();
433
-                                                
434
-                                                ?>
435
-                                                @if ($out_att == 0)
436
-                                                    <td class="col-md-1 danger">{{ $percentage }}</td>
437
-
438
-                                                @else
369
+                                                <th>
370
+                                                    Criterion
371
+                                                </th>
372
+                                                <th>
373
+                                                    Number of Students Assessed
374
+                                                </th>
375
+                                                <th>
376
+                                                    Number of students that achieved the target
377
+                                                </th>
378
+                                                <th>
379
+                                                    %
380
+                                                </th>
381
+                                                <th>
382
+                                                    Learning Outcomes
383
+                                                </th>
384
+                                            </tr>
385
+                                        </thead>
386
+                                        <tbody>
387
+                                            @foreach ($activity->allActivityCriterionInfo() as $index5 => $ac_criterion)
388
+                                                <tr>
389
+                                                    <td> {{ $ac_criterion->name }}</td>
390
+                                                    <td>{{ Criterion::students_attempted($ac_criterion->criterion_id, $activity->id) }}
391
+                                                    </td>
392
+                                                    <td>
393
+                                                        {{ Criterion::students_achieved($ac_criterion->criterion_id, $activity->id) }}
394
+
395
+                                                    </td>
439 396
                                                     <?php
440
-                                                    $percentage = round(($out_ach / $out_att) * 100, 2);
397
+                                                    
398
+                                                    $out_att = Criterion::students_attempted($ac_criterion->criterion_id, $activity->id);
399
+                                                    $out_ach = Criterion::students_achieved($ac_criterion->criterion_id, $activity->id);
400
+                                                    
401
+                                                    $percentage = 'N/A';
402
+                                                    $activity->getOutcomeReport();
403
+                                                    
441 404
                                                     ?>
442
-                                                    @if ($percentage >= $activity->rubric[0]->expected_percentage)
443
-                                                        <td class="col-md-1 success">{{ $percentage }}%</td>
444
-
405
+                                                    @if ($out_att == 0)
406
+                                                        <td class="col-md-1 danger">{{ $percentage }}</td>
445 407
                                                     @else
446
-                                                        <td class="col-md-1 danger">{{ $percentage }}%</td>
447
-
408
+                                                        <?php
409
+                                                        $percentage = round(($out_ach / $out_att) * 100, 2);
410
+                                                        ?>
411
+                                                        @if ($percentage >= $activity->rubric[0]->expected_percentage)
412
+                                                            <td class="col-md-1 success">{{ $percentage }}%</td>
413
+                                                        @else
414
+                                                            <td class="col-md-1 danger">{{ $percentage }}%</td>
415
+                                                        @endif
448 416
                                                     @endif
449
-                                                @endif
450
-                                                <td>
417
+                                                    <td>
451 418
 
452
-                                                    @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
419
+                                                        @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
420
+                                                            <?php echo $outcome->name . "\n\n\n <br>"; ?>
421
+                                                        @endforeach
453 422
 
454
-                                                        <?php echo $outcome->name . "\n\n\n <br>"; ?>
455 423
 
424
+                                                    </td>
425
+                                                </tr>
426
+                                            @endforeach
427
+                                        </tbody>
456 428
 
429
+                                    </table>
430
+                                    <br>
431
+                                    <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
432
+                                    <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
433
+                                    @if ($formative_actions)
434
+                                        <p style="display: inline;">
435
+                                            <u>{{ $formative_actions[0]->at_text }}:
436
+                                            </u>
457 437
 
458
-                                                    @endforeach
438
+                                            <i>{{ $formative_actions[0]->description }}
439
+                                            </i>
440
+                                        </p>
441
+                                        <br>
442
+                                        <h5 style="display: inline; margin:30px;">Formative Action's Associated
443
+                                            Criteria: </h5>
444
+                                        <ul style="margin:30px;">
445
+                                            @foreach ($formative_actions as $criteria)
446
+                                                <li> <i>{{ $criteria->name }} </i></li>
447
+                                            @endforeach
448
+                                        </ul>
449
+                                    @endif
459 450
 
451
+                                    <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
452
+                                    @if ($activity->assessment_comments != null)
453
+                                        <p style="display: inline;">{{ $activity->assessment_comments }}</p>
454
+                                    @endif
455
+                                    <br>
456
+                                    <hr>
457
+                                    <br>
460 458
 
461
-                                                </td>
462
-                                            </tr>
463
-                                        @endforeach
464
-                                    </tbody>
465
-
466
-                                </table>
467
-                                <br>
468
-                                <h5 style="display: inline; margin:30px;">Formative Actions: </h5>
469
-                                <?php $formative_actions = $activity->formativeActionsWithCriteria(); ?>
470
-                                @if ($formative_actions)
471
-                                    <p style="display: inline;">
472
-                                        <u>{{ $formative_actions[0]->at_text }}:
473
-                                        </u>
474
-
475
-                                        <i>{{ $formative_actions[0]->description }}
459
+                                    <h4>Performance of Students by Learning Outcome</h4>
460
+                                    <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
461
+                                    <p style="display: inline;">{{ $activity->name }}
462
+                                        <strong>({{ $activity->date }})</strong>
463
+                                    </p>
464
+                                    <br>
465
+                                    <br>
466
+                                    <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
467
+                                    <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
468
+                                    </p>
469
+                                    <br>
470
+                                    <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
471
+                                        target by learning outcome: </h5>
472
+                                    <p style="display: inline;"> <i>
473
+                                            <?php
474
+                                            $expected = DB::table('target_outcomes_program')
475
+                                                ->where('program_id', $course->program_id)
476
+                                                ->where('semester_id', $course->semester_id)
477
+                                                ->first();
478
+                                            if (!$expected) {
479
+                                                $expected = 'It has not been defined in the annual plan';
480
+                                            } else {
481
+                                                $expected = $expected->expected_target;
482
+                                            }
483
+                                            ?>
484
+                                            {{ $expected }}
476 485
                                         </i>
477 486
                                     </p>
478 487
                                     <br>
479
-                                    <h5 style="display: inline; margin:30px;">Formative Action's Associated
480
-                                        Criteria: </h5>
481
-                                    <ul style="margin:30px;">
482
-                                        @foreach ($formative_actions as $criteria)
483
-                                            <li> <i>{{ $criteria->name }} <i></li>
484
-
485
-                                        @endforeach
486
-                                    </ul>
487
-
488
-
489
-                                @endif
490
-                                <br>
491
-                                <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
492
-                                @if ($activity->assessment_comments != null)
493
-
494
-
495
-                                    <p style="display: inline;">{{ $activity->assessment_comments }}</p>
496
-                                @endif
497
-                                <br>
498
-                                <hr>
499
-                                <br>
500
-
501
-                                <h4>Performance of Students by Learning Outcome</h4>
502
-                                <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
503
-                                <p style="display: inline;">{{ $activity->name }}
504
-                                    <strong>({{ $activity->date }})</strong>
505
-                                </p>
506
-                                <br>
507
-                                <br>
508
-                                <h5 style="display: inline; margin:30px;">Target by learning outcome: </h5>
509
-                                <p style="display: inline;"> <i>>= 66.67% of the attempts</i>
510
-                                </p>
511
-                                <br>
512
-                                <h5 style="display: inline; margin:30px;">Expected percent of students achieving the
513
-                                    target by learning outcome: </h5>
514
-                                <p style="display: inline;"> <i>
515
-                                        <?php
516
-                                        $expected = DB::table('target_outcomes_program')
517
-                                            ->where('program_id', $course->program_id)
518
-                                            ->where('semester_id', $course->semester_id)
519
-                                            ->first();
520
-                                        if (!$expected) {
521
-                                            $expected = 'It has not been defined in the annual plan';
522
-                                        }
523
-                                        else{
524
-                                        $expected = $expected->expected_target;
525
-                                    }
526
-                                        ?>
527
-                                        {{ $expected }}
528
-                                    </i>
529
-                                </p>
530
-                                <br>
531
-                                <table class='table table-striped table-condensed datatable'>
532
-                                    <thead>
533
-                                        <tr>
534
-                                            <th>
535
-                                                Learning Outcome
536
-                                            </th>
537
-                                            <th>
538
-                                                Number of Students Assessed
539
-                                            </th>
540
-                                            <th>
541
-                                                Number of students that achieved the target
542
-                                            </th>
543
-                                            <th>
544
-                                                %
545
-                                            </th>
546
-
547
-                                        </tr>
548
-                                    </thead>
549
-                                    <tbody>
550
-                                        @foreach ($activity->getOutcomeReport() as $outcome)
488
+                                    <table class='table table-striped table-condensed datatable'>
489
+                                        <thead>
551 490
                                             <tr>
552
-                                                <td>
553
-                                                    {{ $outcome->name }}
554
-                                                </td>
555
-                                                <td>
556
-                                                    {{ $outcome->attempted }}
557
-                                                </td>
558
-                                                <td>
559
-                                                    {{ $outcome->achieved }}
560
-                                                </td>
561
-                                                @if ($outcome->percentage >= $expected)
562
-                                                    <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
563
-
564
-                                                @else
565
-                                                    <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
566
-
567
-                                                @endif
568
-
569
-
570
-
571
-
491
+                                                <th>
492
+                                                    Learning Outcome
493
+                                                </th>
494
+                                                <th>
495
+                                                    Number of Students Assessed
496
+                                                </th>
497
+                                                <th>
498
+                                                    Number of students that achieved the target
499
+                                                </th>
500
+                                                <th>
501
+                                                    %
502
+                                                </th>
572 503
 
573 504
                                             </tr>
574
-
575
-                                        @endforeach
576
-                                    </tbody>
577
-                                </table>
578
-
579
-                                <br>
580
-                                <hr>
505
+                                        </thead>
506
+                                        <tbody>
507
+                                            @foreach ($activity->getOutcomeReport() as $outcome)
508
+                                                <tr>
509
+                                                    <td>
510
+                                                        {{ $outcome->name }}
511
+                                                    </td>
512
+                                                    <td>
513
+                                                        {{ $outcome->attempted }}
514
+                                                    </td>
515
+                                                    <td>
516
+                                                        {{ $outcome->achieved }}
517
+                                                    </td>
518
+                                                    @if ($outcome->percentage >= $expected)
519
+                                                        <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
520
+                                                    @else
521
+                                                        <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
522
+                                                    @endif
581 523
 
582 524
 
583 525
 
584 526
 
585 527
 
528
+                                                </tr>
529
+                                            @endforeach
530
+                                        </tbody>
531
+                                    </table>
586 532
 
587
-                            @endforeach
533
+                                    <br>
534
+                                    <hr>
535
+                                @endforeach
588 536
                             @endforeach
589 537
                         </div>
590
-
591 538
                     @endforeach
592
-
593
-
594
-
595 539
                 @else
596 540
                     <h4>This program has not assessed any activity</h4>
597 541
             @endif

+ 529
- 547
app/views/local/managers/sCoords/new_assessment_report.blade.php
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 8
- 44
app/views/local/professors/compare_activities.blade.php Zobrazit soubor

@@ -142,7 +142,6 @@
142 142
                                 @else
143 143
                                     and {{ $rubric_title->text }}
144 144
                                 @endif
145
-
146 145
                             @endforeach
147 146
                             )
148 147
                         @else
@@ -155,7 +154,6 @@
155 154
                     <p style="display: inline;">1 point scale</p>
156 155
                 @else
157 156
                     <p style="display: inline;">1-{{ $activity_1->rubric[0]->max_score }} point scale</p>
158
-
159 157
                 @endif
160 158
                 <br>
161 159
                 <br>
@@ -210,27 +208,20 @@
210 208
                                 ?>
211 209
                                 @if ($out_att == 0)
212 210
                                     <td class="col-md-1 danger">{{ $percentage }}</td>
213
-
214 211
                                 @else
215 212
                                     <?php
216 213
                                     $percentage = round(($out_ach / $out_att) * 100, 2);
217 214
                                     ?>
218 215
                                     @if ($percentage >= $activity_1->rubric[0]->expected_percentage)
219 216
                                         <td class="col-md-1 success">{{ $percentage }}%</td>
220
-
221 217
                                     @else
222 218
                                         <td class="col-md-1 danger">{{ $percentage }}%</td>
223
-
224 219
                                     @endif
225 220
                                 @endif
226 221
                                 <td>
227 222
 
228 223
                                     @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
229
-
230 224
                                         {{ $index6 + 1 }}. <?php echo $outcome->name . "\n\n\n <br>"; ?>
231
-
232
-
233
-
234 225
                                     @endforeach
235 226
 
236 227
 
@@ -255,17 +246,14 @@
255 246
                         Criteria: </h5>
256 247
                     <ul style=" margin:30px;">
257 248
                         @foreach ($formative_actions as $criteria)
258
-                            <li> <i>{{ $criteria->name }} <i></li>
259
-
249
+                            <li> <i>{{ $criteria->name }} </i></li>
260 250
                         @endforeach
261 251
                     </ul>
262 252
                 @endif
263
-                <br>
253
+
264 254
 
265 255
                 <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
266 256
                 @if ($activity_1->assessment_comments != null)
267
-
268
-
269 257
                     <p style="display: inline;">{{ $activity_1->assessment_comments }}</p>
270 258
                 @endif
271 259
                 <hr>
@@ -288,10 +276,9 @@
288 276
                             ->first();
289 277
                         if (!$expected) {
290 278
                             $expected = 'It has not been defined in the annual plan';
279
+                        } else {
280
+                            $expected = $expected->expected_target;
291 281
                         }
292
-                        else{
293
-                                            $expected = $expected->expected_target;
294
-                                        }
295 282
                         
296 283
                         ?>
297 284
                         {{ $expected }}
@@ -331,10 +318,8 @@
331 318
                                 </td>
332 319
                                 @if ($outcome->percentage >= $expected)
333 320
                                     <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
334
-
335 321
                                 @else
336 322
                                     <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
337
-
338 323
                                 @endif
339 324
 
340 325
 
@@ -342,7 +327,6 @@
342 327
 
343 328
 
344 329
                             </tr>
345
-
346 330
                         @endforeach
347 331
                     </tbody>
348 332
                 </table>
@@ -385,7 +369,6 @@
385 369
                                 @else
386 370
                                     and {{ $rubric_title->text }}
387 371
                                 @endif
388
-
389 372
                             @endforeach
390 373
                             )
391 374
                         @else
@@ -398,7 +381,6 @@
398 381
                     <p style="display: inline;">1 point scale</p>
399 382
                 @else
400 383
                     <p style="display: inline;">1-{{ $activity_2->rubric[0]->max_score }} point scale</p>
401
-
402 384
                 @endif
403 385
                 <br>
404 386
                 <br>
@@ -454,27 +436,20 @@
454 436
                                 ?>
455 437
                                 @if ($out_att == 0)
456 438
                                     <td class="col-md-1 danger">{{ $percentage }}</td>
457
-
458 439
                                 @else
459 440
                                     <?php
460 441
                                     $percentage = round(($out_ach / $out_att) * 100, 2);
461 442
                                     ?>
462 443
                                     @if ($percentage >= $activity_2->rubric[0]->expected_percentage)
463 444
                                         <td class="col-md-1 success">{{ $percentage }}%</td>
464
-
465 445
                                     @else
466 446
                                         <td class="col-md-1 danger">{{ $percentage }}%</td>
467
-
468 447
                                     @endif
469 448
                                 @endif
470 449
                                 <td>
471 450
 
472 451
                                     @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
473
-
474 452
                                         <?php echo $outcome->name . "\n\n\n <br>"; ?>
475
-
476
-
477
-
478 453
                                     @endforeach
479 454
 
480 455
 
@@ -499,16 +474,13 @@
499 474
                         Criteria: </h5>
500 475
                     <ul style=" margin:30px;">
501 476
                         @foreach ($formative_actions as $criteria)
502
-                            <li> <i>{{ $criteria->name }} <i></li>
503
-
477
+                            <li> <i>{{ $criteria->name }} </i></li>
504 478
                         @endforeach
505 479
                     </ul>
506 480
                 @endif
507
-                <br>
481
+
508 482
                 <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
509 483
                 @if ($activity_2->assessment_comments != null)
510
-
511
-
512 484
                     <p style="display: inline;">{{ $activity_2->assessment_comments }}</p>
513 485
                 @endif
514 486
                 <hr>
@@ -529,10 +501,9 @@
529 501
                             ->first(); //->expected_target;
530 502
                         if (!$expected) {
531 503
                             $expected = 'It has not been defined in the annual plan';
504
+                        } else {
505
+                            $expected = $expected->expected_target;
532 506
                         }
533
-                        else{
534
-                                            $expected = $expected->expected_target;
535
-                                        }
536 507
                         ?>
537 508
                         {{ $expected }}
538 509
                     </i>
@@ -570,10 +541,8 @@
570 541
                                 </td>
571 542
                                 @if ($outcome->percentage >= $expected)
572 543
                                     <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
573
-
574 544
                                 @else
575 545
                                     <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
576
-
577 546
                                 @endif
578 547
 
579 548
 
@@ -581,7 +550,6 @@
581 550
 
582 551
 
583 552
                             </tr>
584
-
585 553
                         @endforeach
586 554
                     </tbody>
587 555
                 </table>
@@ -622,7 +590,6 @@
622 590
     type: 'bar',
623 591
     height:
624 592
     @if ($activity_1->is_assessed())
625
-
626 593
         {{ count($activity_1->criteria_achieved()) * 22 + 225 }}
627 594
     @else
628 595
         {{ 22 + 225 }}
@@ -715,7 +682,6 @@
715 682
     data: [
716 683
     @if ($activity_1->is_assessed())
717 684
         @foreach ($activity_1->cap_array as $id => $crit)
718
-
719 685
             //This conditional is to ignore criteria that weren't assessed. These would have a value of null.
720 686
             @if ($crit->score_percentage)
721 687
                 {{ $crit->score_percentage }},
@@ -734,7 +700,6 @@
734 700
     type: 'bar',
735 701
     height:
736 702
     @if ($activity_2->is_assessed())
737
-
738 703
         {{ count($activity_2->criteria_achieved()) * 22 + 225 }}
739 704
     @else
740 705
         {{ 22 + 225 }}
@@ -827,7 +792,6 @@
827 792
     data: [
828 793
     @if ($activity_2->is_assessed())
829 794
         @foreach ($activity_2->cap_array as $id => $crit)
830
-
831 795
             //This conditional is to ignore criteria that weren't assessed. These would have a value of null.
832 796
             @if ($crit->score_percentage)
833 797
                 {{ $crit->score_percentage }},

+ 19
- 88
app/views/local/professors/new_assessment_report.blade.php Zobrazit soubor

@@ -9,7 +9,6 @@
9 9
         @include('local.managers.pCoords._new_navigation')
10 10
     @else
11 11
         @include('local.professors._navigation')
12
-
13 12
     @endif
14 13
 @stop
15 14
 
@@ -28,11 +27,8 @@
28 27
             <!-- For each grouped course -->
29 28
             <ul id="levelTabs" class="nav nav-tabs" role="tablist">
30 29
 
31
-                <?php set_time_limit(0);?>
30
+                <?php set_time_limit(0); ?>
32 31
                 @foreach ($courses as $index2 => $course)
33
-
34
-
35
-
36 32
                     <li role="presentation">
37 33
                         <a data-toggle="tab" href="#{{ $course->code }}-{{ $course->number }}"
38 34
                             role="tab">{{ $course->code }}-{{ $course->number }}</a>
@@ -45,18 +41,17 @@
45 41
 
46 42
 
47 43
                 @foreach ($courses as $index2 => $course)
48
-
49 44
                     <?php
50 45
                     
51 46
                     /*$sections_evaluating = Course::has('activities')
52
-                                                                                                                                                                                                                                                                                                                                       ->whereNotNull('outcomes_attempted')
53
-                                                                                                                                                                                                                                                                                                                                       ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
54
-                                                                                                                                                                                                                                                                                                                                       ->with(array('activities'=>function($query) use(&$outcome){
55
-                                                                                                                                                                                                                                                                                                                                           $query->whereNotNull('outcomes_attempted');
56
-                                                                                                                                                                                                                                                                                                                                           $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
57
-                                                                                                                                                                                                                                                                                                                                       ->where('code', $course->code)->where('number',$course->number)
58
-                                                                                                                                                                                                                                                                                                                                       ->whereIn('semester_id', Session::get('semesters_ids'))
59
-                                                                                                                                                                                                                                                                                                                                       ->get();*/
47
+                                                                                                                                                                                                                                                                                                                                                                                                                       ->whereNotNull('outcomes_attempted')
48
+                                                                                                                                                                                                                                                                                                                                                                                                                       ->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'')
49
+                                                                                                                                                                                                                                                                                                                                                                                                                       ->with(array('activities'=>function($query) use(&$outcome){
50
+                                                                                                                                                                                                                                                                                                                                                                                                                           $query->whereNotNull('outcomes_attempted');
51
+                                                                                                                                                                                                                                                                                                                                                                                                                           $query->whereRaw('outcomes_attempted not like \'%"'.$outcome->id.'":0%\'');} ))
52
+                                                                                                                                                                                                                                                                                                                                                                                                                       ->where('code', $course->code)->where('number',$course->number)
53
+                                                                                                                                                                                                                                                                                                                                                                                                                       ->whereIn('semester_id', Session::get('semesters_ids'))
54
+                                                                                                                                                                                                                                                                                                                                                                                                                       ->get();*/
60 55
                     
61 56
                     $sections_evaluating = Course::has('activities')
62 57
                     
@@ -97,9 +92,8 @@
97 92
                         @foreach ($sections_evaluating as $index3 => $section)
98 93
                             <h3 style="text-align: center"> Course: {{ $course->code }}
99 94
                                 {{ $course->number }}-{{ $section->section }}</h3>
100
-                           
101
-                            @foreach ($section->publishedActivities as $index4 => $activity)
102 95
 
96
+                            @foreach ($section->publishedActivities as $index4 => $activity)
103 97
                                 <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
104 98
                                 <p style="display: inline;">{{ $activity->name }}
105 99
                                     <strong>({{ $activity->date }})</strong>
@@ -121,7 +115,6 @@
121 115
                                                 @else
122 116
                                                     and {{ $rubric_title->text }}
123 117
                                                 @endif
124
-
125 118
                                             @endforeach
126 119
                                             )
127 120
                                         @else
@@ -131,11 +124,9 @@
131 124
                                 <br>
132 125
                                 <h5 style="display: inline;">Scale: </h5>
133 126
                                 @if ($activity->rubric[0]->max_score == 1)
134
-
135 127
                                     <p style="display: inline;">1 point scale</p>
136 128
                                 @else
137 129
                                     <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point scale</p>
138
-
139 130
                                 @endif
140 131
                                 <br>
141 132
                                 <br>
@@ -194,21 +185,15 @@
194 185
 
195 186
                                                 @if ($out_att == 0)
196 187
                                                     <td class="col-md-1 danger">{{ $percentage }}</td>
197
-
198 188
                                                 @else
199 189
                                                     <?php
200 190
                                                     $percentage = round(($out_ach / $out_att) * 100, 2);
201 191
                                                     ?>
202 192
                                                     @if ($percentage >= $activity->rubric[0]->expected_percentage)
203 193
                                                         <td class="col-md-1 success">{{ $percentage }}%</td>
204
-
205 194
                                                     @else
206 195
                                                         <td class="col-md-1 danger">{{ $percentage }}%</td>
207
-
208 196
                                                     @endif
209
-
210
-
211
-
212 197
                                                 @endif
213 198
 
214 199
 
@@ -217,11 +202,7 @@
217 202
 
218 203
 
219 204
                                                     @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
220
-
221 205
                                                         <?php echo $outcome->name . "\n\n\n <br>"; ?>
222
-
223
-
224
-
225 206
                                                     @endforeach
226 207
 
227 208
 
@@ -241,22 +222,19 @@
241 222
                                         <i>{{ $formative_actions[0]->description }}
242 223
                                         </i>
243 224
                                     </p>
244
-                                    <br>
225
+
245 226
                                     <h5 style="display: inline; margin:30px;">Formative Action's Associated
246 227
                                         Criteria: </h5>
247 228
                                     <ul style="margin:30px;">
248 229
                                         @foreach ($formative_actions as $criteria)
249
-                                            <li> <i>{{ $criteria->name }} <i></li>
250
-
230
+                                            <li> <i>{{ $criteria->name }} </i></li>
251 231
                                         @endforeach
252 232
                                     </ul>
253 233
                                 @endif
254
-                                <br>
234
+
255 235
 
256 236
                                 <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
257 237
                                 @if ($activity->assessment_comments != null)
258
-
259
-
260 238
                                     <p style="display: inline;">{{ $activity->assessment_comments }}</p>
261 239
                                 @endif
262 240
                                 <br>
@@ -284,10 +262,8 @@
284 262
                                             ->where('semester_id', $course->semester_id)
285 263
                                             ->first(); //->expected_target;
286 264
                                         if (!$expected) {
287
-                                            
288
-                                             $expected = 'It has not been defined in the annual plan';
289
-                                        }
290
-                                        else{
265
+                                            $expected = 'It has not been defined in the annual plan';
266
+                                        } else {
291 267
                                             $expected = $expected->expected_target;
292 268
                                         }
293 269
                                         
@@ -328,10 +304,8 @@
328 304
                                                 </td>
329 305
                                                 @if ($outcome->percentage >= $expected)
330 306
                                                     <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
331
-
332 307
                                                 @else
333 308
                                                     <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
334
-
335 309
                                                 @endif
336 310
 
337 311
 
@@ -339,25 +313,15 @@
339 313
 
340 314
 
341 315
                                             </tr>
342
-
343 316
                                         @endforeach
344 317
                                     </tbody>
345 318
                                 </table>
346 319
 
347 320
                                 <br>
348 321
                                 <hr>
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357 322
                             @endforeach
358 323
                             <h4>Diagnostic Activities</h4>
359 324
                             @foreach ($section->diagnosticActivities as $index4 => $activity)
360
-
361 325
                                 <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
362 326
                                 <p style="display: inline;">{{ $activity->name }}
363 327
                                     <strong>({{ $activity->date }})</strong>
@@ -379,7 +343,6 @@
379 343
                                                 @else
380 344
                                                     and {{ $rubric_title->text }}
381 345
                                                 @endif
382
-
383 346
                                             @endforeach
384 347
                                             )
385 348
                                         @else
@@ -389,11 +352,9 @@
389 352
                                 <br>
390 353
                                 <h5 style="display: inline;">Scale: </h5>
391 354
                                 @if ($activity->rubric[0]->max_score == 1)
392
-
393 355
                                     <p style="display: inline;">1 point scale</p>
394 356
                                 @else
395 357
                                     <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point scale</p>
396
-
397 358
                                 @endif
398 359
                                 <br>
399 360
                                 <br>
@@ -452,21 +413,15 @@
452 413
 
453 414
                                                 @if ($out_att == 0)
454 415
                                                     <td class="col-md-1 danger">{{ $percentage }}</td>
455
-
456 416
                                                 @else
457 417
                                                     <?php
458 418
                                                     $percentage = round(($out_ach / $out_att) * 100, 2);
459 419
                                                     ?>
460 420
                                                     @if ($percentage >= $activity->rubric[0]->expected_percentage)
461 421
                                                         <td class="col-md-1 success">{{ $percentage }}%</td>
462
-
463 422
                                                     @else
464 423
                                                         <td class="col-md-1 danger">{{ $percentage }}%</td>
465
-
466 424
                                                     @endif
467
-
468
-
469
-
470 425
                                                 @endif
471 426
 
472 427
 
@@ -475,11 +430,7 @@
475 430
 
476 431
 
477 432
                                                     @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
478
-
479 433
                                                         <?php echo $outcome->name . "\n\n\n <br>"; ?>
480
-
481
-
482
-
483 434
                                                     @endforeach
484 435
 
485 436
 
@@ -504,17 +455,14 @@
504 455
                                         Criteria: </h5>
505 456
                                     <ul style="margin:30px;">
506 457
                                         @foreach ($formative_actions as $criteria)
507
-                                            <li> <i>{{ $criteria->name }} <i></li>
508
-
458
+                                            <li> <i>{{ $criteria->name }} </i></li>
509 459
                                         @endforeach
510 460
                                     </ul>
511 461
                                 @endif
512
-                                <br>
462
+
513 463
 
514 464
                                 <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
515 465
                                 @if ($activity->assessment_comments != null)
516
-
517
-
518 466
                                     <p style="display: inline;">{{ $activity->assessment_comments }}</p>
519 467
                                 @endif
520 468
                                 <br>
@@ -541,10 +489,8 @@
541 489
                                             ->where('semester_id', $course->semester_id)
542 490
                                             ->first(); //->expected_target;
543 491
                                         if (!$expected) {
544
-                                            
545
-                                             $expected = 'It has not been defined in the annual plan';
546
-                                        }
547
-                                        else{
492
+                                            $expected = 'It has not been defined in the annual plan';
493
+                                        } else {
548 494
                                             $expected = $expected->expected_target;
549 495
                                         }
550 496
                                         
@@ -585,10 +531,8 @@
585 531
                                                 </td>
586 532
                                                 @if ($outcome->percentage >= $expected)
587 533
                                                     <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
588
-
589 534
                                                 @else
590 535
                                                     <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
591
-
592 536
                                                 @endif
593 537
 
594 538
 
@@ -596,28 +540,15 @@
596 540
 
597 541
 
598 542
                                             </tr>
599
-
600 543
                                         @endforeach
601 544
                                     </tbody>
602 545
                                 </table>
603 546
 
604 547
                                 <br>
605 548
                                 <hr>
606
-
607
-
608
-
609
-
610
-
611
-
612
-
613
-
614 549
                             @endforeach
615
-                            
616 550
                         @endforeach
617 551
                     </div>
618
-
619
-
620
-
621 552
                 @endforeach
622 553
 
623 554