forked from TFMM/silent-auction
fix: resolve cat_name exception and correct model relationships
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<tbody>
|
||||
@foreach($categories as $category)
|
||||
<tr>
|
||||
<td>{{ $category->cat_name }}</td>
|
||||
<td>{{ $category->category_name }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user