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
2 changed files with 12 additions and 4 deletions
Showing only changes of commit a2ce8a51fe - Show all commits
+2 -2
View File
@@ -529,7 +529,7 @@ class PagesController extends Controller
}
public function showscores()
{
$carshowscore_results = VehicleScores::with(['scoredVehicle'])
$carshowscore_results = VehicleScores::with(['scoredVehicle', 'scoredVehicle.vehicleOwner'])
->groupBy('vehicle')
->selectRaw('*, sum(vehicle_scores.overall_score) as totalscore')
->orderBy('totalscore', 'desc')
@@ -538,7 +538,7 @@ class PagesController extends Controller
}
public function showscoresbycar()
{
$carshowscore2_results = VehicleScores::with(['scoredVehicle'])
$carshowscore2_results = VehicleScores::with(['scoredVehicle', 'scoredVehicle.vehicleOwner'])
->groupBy('vehicle')
->selectRaw('*, sum(vehicle_scores.overall_score) as totalscore')
//->orderBy('scoredVehicle.vehicleOwner.bidder_assigned_number')
+10 -2
View File
@@ -20,14 +20,22 @@
<table class="table table-vcenter card-table">
<thead>
<tr>
<th>Vehicle Name</th>
<th>#</th>
<th>Owner</th>
<th>Year</th>
<th>Make</th>
<th>Model</th>
<th>Total Score</th>
</tr>
</thead>
<tbody>
@foreach($scores_results as $score)
<tr>
<td>{{ $score->scoredVehicle->make }} {{ $score->scoredVehicle->model }}</td>
<td>{{ $score->scoredVehicle->owner }}</td>
<td>{{ $score->scoredVehicle->vehicleOwner->bidder_fname ?? '' }} {{ $score->scoredVehicle->vehicleOwner->bidder_lname ?? '' }}</td>
<td>{{ $score->scoredVehicle->year }}</td>
<td>{{ $score->scoredVehicle->make }}</td>
<td>{{ $score->scoredVehicle->model }}</td>
<td>{{ $score->totalscore }}</td>
</tr>
@endforeach