feat: install and scaffold Tablar theme #6

Merged
rlong merged 139 commits from feature/tablar-theme into master 2026-05-02 16:01:21 -04:00
6 changed files with 10 additions and 11 deletions
Showing only changes of commit 4fdd41e9b8 - Show all commits
+2 -1
View File
@@ -502,7 +502,8 @@ class PagesController extends Controller
public function awardcategories(Request $category_req)
{
if (!$category_req->category) {
return view('awardcategories');
$categories = CarShowCategory::all();
return view('awardcategories', ['categories' => $categories]);
}
$category = $category_req->category;
if ($category_req->has('vehtype')) {
+2 -2
View File
@@ -24,11 +24,11 @@ class CarShowWinner extends Model
public function awardVehicle()
{
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
return $this->belongsTo('App\Models\Vehicles', 'vehicle', 'id');
}
public function awardCategory()
{
return $this->hasMany('App\Models\CarShowCategory', 'id', 'category');
return $this->belongsTo('App\Models\CarShowCategory', 'category', 'id');
}
}
+1 -1
View File
@@ -30,6 +30,6 @@ class VehicleScores extends Model
public function scoredVehicle()
{
return $this->hasMany('App\Models\Vehicles', 'id', 'vehicle');
return $this->belongsTo('App\Models\Vehicles', 'vehicle', 'id');
}
}
+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