Browse Source

Arreglar unos bugs en los results,

parent
commit
ba166bcb71

+ 23
- 11
app/controllers/CriteriaController.php View File

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

+ 24
- 14
app/controllers/Objective2Controller.php View File

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

+ 12
- 8
app/routes.php View File

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

+ 458
- 448
app/views/local/managers/admins/new_assessment_report.blade.php View File

20
                     <li>{{ $semester_info }}</li>
20
                     <li>{{ $semester_info }}</li>
21
                 @endforeach
21
                 @endforeach
22
             </ul>
22
             </ul>
23
-            <?php set_time_limit(0);?>
23
+            <?php set_time_limit(0); ?>
24
             @foreach ($schools as $school)
24
             @foreach ($schools as $school)
25
                 <h3>{{ $school->name }}</h3>
25
                 <h3>{{ $school->name }}</h3>
26
                 <hr>
26
                 <hr>
47
                                 <h3 class="panel-title">{{ $program->name }}</h3>
47
                                 <h3 class="panel-title">{{ $program->name }}</h3>
48
                             </div>
48
                             </div>
49
                             <div class="panel-body">
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
                                     <?php
63
                                     <?php
57
                                     
64
                                     
58
                                     /*$sections_evaluating = Course::has('activities')
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
                                     $sections_evaluating = Course::has('activities')
75
                                     $sections_evaluating = Course::has('activities')
69
                                     
76
                                     
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
                                                 </p>
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
                                                         <tr>
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
                                                                 <?php
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
                                                                 @else
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
                                                                 @endif
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
                                                     </i>
300
                                                     </i>
241
                                                 </p>
301
                                                 </p>
242
                                                 <br>
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
                                                         <tr>
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
                                                                 </td>
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
                                                         @endforeach
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
                                                 </p>
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
                                                         <tr>
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
                                                                 <?php
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
                                                                 @else
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
                                                                 @endif
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
                                                     </i>
539
                                                     </i>
478
                                                 </p>
540
                                                 </p>
479
                                                 <br>
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
                                                         <tr>
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
                                                                 </td>
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
                                         @endforeach
594
                                         @endforeach
582
-                                    @endforeach
595
+                                    </div>
583
                                 @endforeach
596
                                 @endforeach
584
                             </div>
597
                             </div>
585
                         </div>
598
                         </div>
586
                     @endforeach
599
                     @endforeach
587
-
588
-
589
-
590
                 @else
600
                 @else
591
                     <h4>This program has not assessed any activity</h4>
601
                     <h4>This program has not assessed any activity</h4>
592
                 @endif
602
                 @endif

+ 208
- 264
app/views/local/managers/pCoords/new_assessment_report.blade.php View File

23
 
23
 
24
             @if ($program)
24
             @if ($program)
25
 
25
 
26
-            <?php set_time_limit(0);?>
26
+                <?php set_time_limit(0); ?>
27
 
27
 
28
                 <ul id='levelTabs' class="nav nav-tabs" role="tablist">
28
                 <ul id='levelTabs' class="nav nav-tabs" role="tablist">
29
                     <!-- For each grouped course -->
29
                     <!-- For each grouped course -->
30
                     @foreach ($program->courses as $index2 => $course)
30
                     @foreach ($program->courses as $index2 => $course)
31
-
32
                         <li role="presentation">
31
                         <li role="presentation">
33
                             <a data-toggle="tab" href="#{{ $course->code }}-{{ $course->number }}"
32
                             <a data-toggle="tab" href="#{{ $course->code }}-{{ $course->number }}"
34
                                 role="tab">{{ $course->code }}-{{ $course->number }}</a>
33
                                 role="tab">{{ $course->code }}-{{ $course->number }}</a>
40
 
39
 
41
                     <!-- If grouped course has activities that evaluate the outcome -->
40
                     <!-- If grouped course has activities that evaluate the outcome -->
42
                     @foreach ($program->courses as $index2 => $course)
41
                     @foreach ($program->courses as $index2 => $course)
43
-
44
                         <?php
42
                         <?php
45
                         
43
                         
46
                         /*$sections_evaluating = Course::has('activities')
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
                         $sections_evaluating = Course::has('activities')
54
                         $sections_evaluating = Course::has('activities')
57
                         
55
                         
91
                             @foreach ($sections_evaluating as $index3 => $section)
89
                             @foreach ($sections_evaluating as $index3 => $section)
92
                                 <h3 style="text-align: center"> Course: {{ $course->code }}
90
                                 <h3 style="text-align: center"> Course: {{ $course->code }}
93
                                     {{ $course->number }}-{{ $section->section }} </h3>
91
                                     {{ $course->number }}-{{ $section->section }} </h3>
94
-                                    
95
-                                @foreach ($section->publishedActivities as $index4 => $activity)
96
 
92
 
93
+                                @foreach ($section->publishedActivities as $index4 => $activity)
97
                                     <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
94
                                     <h5 style="display: inline;">Activity {{ $index4 + 1 }}: </h5>
98
                                     <p style="display: inline;">{{ $activity->name }}
95
                                     <p style="display: inline;">{{ $activity->name }}
99
                                         <strong>({{ $activity->date }})</strong>
96
                                         <strong>({{ $activity->date }})</strong>
115
                                                     @else
112
                                                     @else
116
                                                         and {{ $rubric_title->text }}
113
                                                         and {{ $rubric_title->text }}
117
                                                     @endif
114
                                                     @endif
118
-
119
                                                 @endforeach
115
                                                 @endforeach
120
                                                 )
116
                                                 )
121
                                             @else
117
                                             @else
129
                                     @else
125
                                     @else
130
                                         <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point scale
126
                                         <p style="display: inline;">1-{{ $activity->rubric[0]->max_score }} point scale
131
                                         </p>
127
                                         </p>
132
-
133
                                     @endif
128
                                     @endif
134
                                     <br>
129
                                     <br>
135
                                     <br>
130
                                     <br>
187
                                                     ?>
182
                                                     ?>
188
                                                     @if ($out_att == 0)
183
                                                     @if ($out_att == 0)
189
                                                         <td class="col-md-1 danger">{{ $percentage }}</td>
184
                                                         <td class="col-md-1 danger">{{ $percentage }}</td>
190
-
191
                                                     @else
185
                                                     @else
192
                                                         <?php
186
                                                         <?php
193
                                                         $percentage = round(($out_ach / $out_att) * 100, 2);
187
                                                         $percentage = round(($out_ach / $out_att) * 100, 2);
194
                                                         ?>
188
                                                         ?>
195
                                                         @if ($percentage >= $activity->rubric[0]->expected_percentage)
189
                                                         @if ($percentage >= $activity->rubric[0]->expected_percentage)
196
                                                             <td class="col-md-1 success">{{ $percentage }}%</td>
190
                                                             <td class="col-md-1 success">{{ $percentage }}%</td>
197
-
198
                                                         @else
191
                                                         @else
199
                                                             <td class="col-md-1 danger">{{ $percentage }}%</td>
192
                                                             <td class="col-md-1 danger">{{ $percentage }}%</td>
200
-
201
                                                         @endif
193
                                                         @endif
202
                                                     @endif
194
                                                     @endif
203
                                                     <td>
195
                                                     <td>
204
 
196
 
205
                                                         @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
197
                                                         @foreach (Criterion::outcomes($ac_criterion->criterion_id) as $index6 => $outcome)
206
-
207
                                                             <?php echo $outcome->name . "\n\n\n <br>"; ?>
198
                                                             <?php echo $outcome->name . "\n\n\n <br>"; ?>
208
-
209
-
210
-
211
                                                         @endforeach
199
                                                         @endforeach
212
 
200
 
213
 
201
 
233
                                             Criteria: </h5>
221
                                             Criteria: </h5>
234
                                         <ul style="margin:30px;">
222
                                         <ul style="margin:30px;">
235
                                             @foreach ($formative_actions as $criteria)
223
                                             @foreach ($formative_actions as $criteria)
236
-                                                <li> <i>{{ $criteria->name }} <i></li>
237
-
224
+                                                <li> <i>{{ $criteria->name }} </i></li>
238
                                             @endforeach
225
                                             @endforeach
239
                                         </ul>
226
                                         </ul>
240
-
241
-
242
                                     @endif
227
                                     @endif
243
-                                    <br>
228
+
244
                                     <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
229
                                     <h5 style="display: inline; margin:30px;">Assessment Comments: </h5>
245
                                     @if ($activity->assessment_comments != null)
230
                                     @if ($activity->assessment_comments != null)
246
-
247
-
248
                                         <p style="display: inline;">{{ $activity->assessment_comments }}</p>
231
                                         <p style="display: inline;">{{ $activity->assessment_comments }}</p>
249
                                     @endif
232
                                     @endif
250
                                     <br>
233
                                     <br>
272
                                                 ->first();
255
                                                 ->first();
273
                                             if (!$expected) {
256
                                             if (!$expected) {
274
                                                 $expected = 'It has not been defined in the annual plan';
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
                                             {{ $expected }}
262
                                             {{ $expected }}
281
                                         </i>
263
                                         </i>
313
                                                     </td>
295
                                                     </td>
314
                                                     @if ($outcome->percentage >= $expected)
296
                                                     @if ($outcome->percentage >= $expected)
315
                                                         <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
297
                                                         <td class="col-md-1 success">{{ $outcome->percentage }}%</td>
316
-
317
                                                     @else
298
                                                     @else
318
                                                         <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
299
                                                         <td class="col-md-1 danger">{{ $outcome->percentage }}%</td>
319
-
320
                                                     @endif
300
                                                     @endif
321
 
301
 
322
 
302
 
324
 
304
 
325
 
305
 
326
                                                 </tr>
306
                                                 </tr>
327
-
328
                                             @endforeach
307
                                             @endforeach
329
                                         </tbody>
308
                                         </tbody>
330
                                     </table>
309
                                     </table>
331
 
310
 
332
                                     <br>
311
                                     <br>
333
                                     <hr>
312
                                     <hr>
334
-
335
-
336
-
337
-
338
-
339
-
340
                                 @endforeach
313
                                 @endforeach
341
                                 <h4>Diagnostic Activities</h4>
314
                                 <h4>Diagnostic Activities</h4>
342
                                 @foreach ($section->diagnosticActivities as $index4 => $activity)
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
                                     </p>
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
                                             <tr>
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
                                                     <?php
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
                                                     @else
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
                                                     @endif
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
                                         </i>
485
                                         </i>
477
                                     </p>
486
                                     </p>
478
                                     <br>
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
                                             <tr>
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
                                             </tr>
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
                             @endforeach
536
                             @endforeach
589
                         </div>
537
                         </div>
590
-
591
                     @endforeach
538
                     @endforeach
592
-
593
-
594
-
595
                 @else
539
                 @else
596
                     <h4>This program has not assessed any activity</h4>
540
                     <h4>This program has not assessed any activity</h4>
597
             @endif
541
             @endif

+ 529
- 547
app/views/local/managers/sCoords/new_assessment_report.blade.php
File diff suppressed because it is too large
View File


+ 8
- 44
app/views/local/professors/compare_activities.blade.php View File

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

+ 19
- 88
app/views/local/professors/new_assessment_report.blade.php View File

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