feat: migrate vehicletypes and winnertotal views to tablar

This commit is contained in:
2026-05-01 11:59:42 -04:00
parent 78c2fbb41a
commit 846db1accf
2 changed files with 69 additions and 102 deletions
+29 -28
View File
@@ -1,37 +1,38 @@
@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">Vehicle Type Entry</div>
<div class="panel-body">
<form id="winner_form" required method="post" action="/vehicletypes" enctype="multipart/form-data" class=form-horizontal>
{{ csrf_field() }}
<div class=form-group>
<label for=vehtype class="col-sm-3 col-sm-offset-1 control-label">
Vehicle Type:
</label>
<div class=col-sm-4>
<input type="text" name="vehtype" id="vehtype" class=form-control />
<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">Vehicle Types</h2>
</div>
</div>
<div class=form-group>
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</div>
</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>ID</th>
<th>Type Name</th>
</tr>
</thead>
<tbody>
@foreach($vehicletypes as $type)
<tr>
<td>{{ $type->id }}</td>
<td>{{ $type->type_name }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class=form-group>
<label for=vehdonotjudge class="col-sm-3 col-sm-offset-1 control-label">
Vehicle Type?:
</label>
<div class=col-sm-1>
<input class="form-check-input" type="checkbox" value="" id="vehtype">
</div>
</div>
</form>
</div>
</div>
</div>
+26 -60
View File
@@ -1,72 +1,38 @@
@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">
<h3>
Baskets Won
</h3>
<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">Winner Totals</h2>
</div>
<div class="panel-body">
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
@foreach($winnertotal_info_results as $winnertotal_info_result)
</div>
</div>
</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 Number: {{ $winnertotal_info_result->bidder_assigned_number }}
<th>
Name: {{ $winnertotal_info_result->bidder_fname }} {{ $winnertotal_info_result->bidder_lname }}
</th>
<th>
Phone Number: {{ \App\Helpers\PhoneHelper::format($winnertotal_info_result->bidder_phone) }} </th>
<th>
Total: ${{ $winnertotal_info_result->total_cost }}
</th>
<th>Bidder</th>
<th>Total Won</th>
</tr>
</thead>
<tbody>
@foreach($winner_totals as $total)
<tr>
<th>
Address: {{ $winnertotal_info_result->bidder_addr }}
</th>
<th>
City: {{ $winnertotal_info_result->bidder_city }}
</th>
<th>
State: {{ $winnertotal_info_result->bidder_state }}
</th>
<th>
Zip: {{ $winnertotal_info_result->bidder_zip }}
</th>
<td>{{ $total->bidder_fname }} {{ $total->bidder_lname }}</td>
<td>${{ number_format($total->total_won, 2) }}</td>
</tr>
@endforeach
</tbody>
</table>
@if($winnertotal_list_results)
<table align='center' class='table table-striped table-condensed table-hover table-bordered'>
<tr>
<th>
Item Number:
</th>
<th>
Winning Bid:
</th>
</tr>
@foreach($winnertotal_list_results as $winnertotal_result)
<tr>
<td>
{{ $winnertotal_result->item_assigned_num }}
</td>
<td>
${{ $winnertotal_result->winning_cost }}
</td>
</tr>
@endforeach
</table>
@else
<h3>
No Winning Bids
</h3>
@endif
</div>
</div>
</div>
</div>