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
+1 -1
View File
@@ -26,7 +26,7 @@
<tbody>
@foreach($categories as $category)
<tr>
<td>{{ $category->cat_name }}</td>
<td>{{ $category->category_name }}</td>
</tr>
@endforeach
</tbody>
+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>
+1 -1
View File
@@ -26,7 +26,7 @@
<tbody>
@foreach($winners as $winner)
<tr>
<td>{{ $winner->awardCategory->cat_name }}</td>
<td>{{ $winner->awardCategory->category_name }}</td>
<td>{{ $winner->awardVehicle->make }} {{ $winner->awardVehicle->model }}</td>
</tr>
@endforeach