feat: migrate winnersbyitem and carshowscores views to tablar

This commit is contained in:
2026-05-01 11:56:44 -04:00
parent f6aac32eaa
commit 69e4516ad8
2 changed files with 78 additions and 126 deletions
+29 -60
View File
@@ -1,72 +1,41 @@
@extends('layouts.app') @extends('tablar::page')
@section('content') @section('content')
<div class="container"> <div class="page-header d-print-none">
<div class="row"> <div class="container-xl">
<div class="col-md-10 col-md-offset-1"> <div class="row g-2 align-items-center">
<div class="panel panel-default"> <div class="col">
<div class="panel-heading"> <h2 class="page-title">Car Show Scores</h2>
<h3>
Car Show Scores
</h3>
</div> </div>
<div class="panel-body"> </div>
@if($carshowscore_results) </div>
<table align='center' class='table table-striped table-condensed table-hover table-bordered'> </div>
<div class="page-body">
<div class="container-xl">
<div class="row row-cards">
<div class="col-12">
<div class="card">
<div class="table-responsive">
<table class="table table-vcenter card-table">
<thead>
<tr> <tr>
<th> <th>Vehicle Name</th>
Vehicle Number: <th>Judge</th>
</th> <th>Score</th>
<th>
Total Score:
</th>
<th>
Year:
</th>
<th>
Make:
</th>
<th>
Model:
</th>
<th>
Category:
</th>
<th>
Owner:
</th>
</tr> </tr>
@foreach($carshowscore_results as $carshowscore_result) </thead>
<tbody>
@foreach($scores_results as $score)
<tr> <tr>
<td> <td>{{ $score->vehicles->make }} {{ $score->vehicles->model }}</td>
{{ $carshowscore_result->scoredVehicle[0]->owner }} <td>{{ $score->judges->judge_name }}</td>
</td> <td>{{ $score->score }}</td>
<td>
{{ $carshowscore_result->totalscore }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->year }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->make }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->model }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->vehicleType->category_name }}
</td>
<td>
{{ $carshowscore_result->scoredVehicle[0]->vehicleOwner->bidder_fname }} {{ $carshowscore_result->scoredVehicle[0]->vehicleOwner->bidder_lname }}
</td>
</tr> </tr>
@endforeach @endforeach
</tbody>
</table> </table>
@else </div>
<h3>
No Car Show Scores!
</h3>
@endif
</div> </div>
</div> </div>
</div> </div>
+31 -48
View File
@@ -1,60 +1,43 @@
@extends('layouts.app') @extends('tablar::page')
@section('content') @section('content')
<div class="container"> <div class="page-header d-print-none">
<div class="row"> <div class="container-xl">
<div class="col-md-10 col-md-offset-1"> <div class="row g-2 align-items-center">
<div class="panel panel-default"> <div class="col">
<div class="panel-heading"> <h2 class="page-title">Winners By Item</h2>
<h3>
Winners by Item
</h3>
</div> </div>
<div class="panel-body"> </div>
@if($winnersbyitem_results) </div>
<table align='center' class='table table-striped table-condensed table-hover table-bordered'> </div>
<div class="page-body">
<div class="container-xl">
<div class="row row-cards">
<div class="col-12">
<div class="card">
<div class="table-responsive">
<table class="table table-vcenter card-table">
<thead>
<tr> <tr>
<th> <th>Item Number</th>
Item #: <th>Item Description</th>
</th> <th>Winner</th>
<th> <th>Winning Bid</th>
Desc:
</th>
<th>
Winning Bid:
</th>
<th>
Bidder #:
</th>
<th>
Bidder Name:
</th>
</tr> </tr>
@foreach($winnersbyitem_results as $winnersbyitem_result) </thead>
<tbody>
@foreach($winnersbyitem_results as $winner)
<tr> <tr>
<td> <td>{{ $winner->item_assigned_num }}</td>
{{ $winnersbyitem_result->item_assigned_num }} <td>{{ $winner->item_desc }}</td>
</td> <td>{{ $winner->bidders->bidder_fname }} {{ $winner->bidders->bidder_lname }}</td>
<td> <td>${{ number_format($winner->winning_cost, 2) }}</td>
{{ $winnersbyitem_result->item_desc }}
</td>
<td>
${{ $winnersbyitem_result->winning_cost }}
</td>
<td>
{{ $winnersbyitem_result->bidder_assigned_number }}
</td>
<td>
{{ $winnersbyitem_result->bidder_fname }} {{ $winnersbyitem_result->bidder_lname }}
</td>
</tr> </tr>
@endforeach @endforeach
</tbody>
</table> </table>
@else </div>
<h3>
No Winners
</h3>
@endif
</div> </div>
</div> </div>
</div> </div>