feat: migrate winners and final tally views to tablar

This commit is contained in:
2026-05-01 11:56:29 -04:00
parent a60a89d77d
commit f6aac32eaa
2 changed files with 87 additions and 131 deletions
+38 -86
View File
@@ -1,90 +1,42 @@
@extends('layouts.app')
@extends('tablar::page')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">
Total for All Bidders
<div class="page-header d-print-none">
<div class="container-xl">
<div class="row g-2 align-items-center">
<div class="col">
<h2 class="page-title">Final Tally</h2>
</div>
</div>
<div class="panel-body">
@if($finaltally_results)
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
<tr>
<th>
#:
</th>
<th>
Last Name:
</th>
<th>
First Name:
</th>
<th>
Address:
</th>
<th>
City:
</th>
<th>
State:
</th>
<th>
Zip:
</th>
<th>
Phone:
</th>
<th>
Email:
</th>
<th>
Total:
</th>
</tr>
@foreach($finaltally_results as $finaltally_result)
<tr>
<td>
{{ $finaltally_result->bidder_assigned_number }}
<td>
{{ $finaltally_result->bidder_lname }}
</td>
<td>
{{ $finaltally_result->bidder_fname }}
</td>
<td>
{{ $finaltally_result->bidder_addr }}
</td>
<td>
{{ $finaltally_result->bidder_city }}
</td>
<td>
{{ $finaltally_result->bidder_state }}
</td>
<td>
{{ $finaltally_result->bidder_zip }}
</td>
<td>
{{ \App\Helpers\PhoneHelper::format($finaltally_result->bidder_phone) }} </td>
<td>
{{ $finaltally_result->bidder_email }}
</td>
<td>
${{ $finaltally_result->total_due }}
</td>
</tr>
@endforeach
</table>
@else
<h3>
No Bidders
</h3>
@endif
</div>
</div>
</div>
</div>
</div>
@endsection
</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>
<th>Bidder</th>
<th>Total Winning Bids</th>
</tr>
</thead>
<tbody>
@foreach($final_tally_results as $tally)
<tr>
<td>{{ $tally->bidder_fname }} {{ $tally->bidder_lname }}</td>
<td>${{ number_format($tally->total_cost, 2) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection