Skip to content

Commit

Permalink
Fix crash on ots evals if the student ahs been deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonhasacat committed Mar 8, 2024
1 parent ee8493b commit 61d4b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/mgt/training/evals.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class="fa fa-list"></i> All Evaluations</a></li>
class="hidden">{{$eval->exam_date->timestamp}}</span>{{ $eval->exam_date }}
</td>
<td>{{ $eval->exam_position }}</td>
<td>{{ $eval->student->fullname() }}</td>
<td>{!! $eval->student ? $eval->student->fullname() : "<em> Account Erased</em>" !!}</td>
<td>{!! $eval->instructor ? $eval->instructor->fullname() : "<em> Account Erased</em>" !!}</td>
<td>@if($eval->result) <i class="fas fa-check"></i> Pass @else <i
class="fas fa-times"></i>
Expand Down Expand Up @@ -166,7 +166,7 @@ class="glyphicon glyphicon-eye-open"></span>
class="hidden">{{$eval->exam_date->timestamp}}</span>{{ $eval->exam_date }}
</td>
<td>{{ $eval->exam_position }}</td>
<td>{{ $eval->student->fullname() }}</td>
<td>{!! $eval->student ? $eval->student->fullname() : "<em> Account Erased</em>" !!}</td>
<td>{!! $eval->instructor ? $eval->instructor->fullname() : "<em> Account Erased</em>" !!}</td>
<td>@if($eval->result) <i class="fas fa-check"></i> Pass @else <i
class="fas fa-times"></i>
Expand Down

0 comments on commit 61d4b9f

Please sign in to comment.