fix: resolve cat_name exception and correct model relationships

This commit is contained in:
2026-05-01 15:51:23 -04:00
parent e79d6174f8
commit 4fdd41e9b8
6 changed files with 10 additions and 11 deletions
+3 -5
View File
@@ -21,16 +21,14 @@
<thead>
<tr>
<th>Vehicle Name</th>
<th>Judge</th>
<th>Score</th>
<th>Total Score</th>
</tr>
</thead>
<tbody>
@foreach($scores_results as $score)
<tr>
<td>{{ $score->vehicles->make }} {{ $score->vehicles->model }}</td>
<td>{{ $score->judges->judge_name }}</td>
<td>{{ $score->score }}</td>
<td>{{ $score->scoredVehicle->make }} {{ $score->scoredVehicle->model }}</td>
<td>{{ $score->totalscore }}</td>
</tr>
@endforeach
</tbody>