feat: migrate checkout select and checkout list views to tablar

This commit is contained in:
2026-05-01 11:57:48 -04:00
parent 75aa121ac7
commit 1adb557265
2 changed files with 72 additions and 125 deletions
@@ -1,103 +1,45 @@
@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-12"> <div class="row g-2 align-items-center">
<div class="panel panel-default"> <div class="col">
<div class="panel-heading"> <h2 class="page-title">Checkout Complete List</h2>
Checkouts Complete
</div> </div>
<div class="panel-body"> </div>
@if($checkout_complete_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>Bidder #</th>
#: <th>Name</th>
</th> <th>Total</th>
<th> <th>Payment</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>
<th>
Payment Method:
</th>
</tr> </tr>
@foreach($checkout_complete_results as $checkout_complete_result) </thead>
<tbody>
@foreach($checkout_complete_results as $c)
<tr> <tr>
<td> <td>{{ $c->bidder_assigned_number }}</td>
{{ $checkout_complete_result->bidder_assigned_number }} <td>{{ $c->bidder_fname }} {{ $c->bidder_lname }}</td>
</td> <td>${{ number_format($c->winnertotal, 2) }}</td>
<td> <td>{{ $c->payment_method == 1 ? 'Cash' : ($c->payment_method == 2 ? 'Check' : 'Credit') }}</td>
{{ $checkout_complete_result->bidder_lname }}
</td>
<td>
{{ $checkout_complete_result->bidder_fname }}
</td>
<td>
{{ $checkout_complete_result->bidder_addr }}
</td>
<td>
{{ $checkout_complete_result->bidder_city }}
</td>
<td>
{{ $checkout_complete_result->bidder_state }}
</td>
<td>
{{ $checkout_complete_result->bidder_zip }}
</td>
<td>
{{ \App\Helpers\PhoneHelper::format($checkout_complete_result->bidder_phone) }}
</td>
<td>
{{ $checkout_complete_result->bidder_email }}
</td>
<td>
${{ $checkout_complete_result->winnertotal }}
</td>
<td>
@if($checkout_complete_result->payment_method==1)
CASH
@elseif($checkout_complete_result->payment_method==2)
CHECK #{{ $checkout_complete_result->check_number }}
@else
CREDIT {{ $checkout_complete_result->cc_transaction }}
@endif
</td>
</tr> </tr>
@endforeach @endforeach
</tbody>
</table> </table>
@else
<h3>
No Completed Checkouts
</h3>
@endif
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
@endsection @endsection
+26 -21
View File
@@ -1,34 +1,39 @@
@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">Checkout</div> <h2 class="page-title">Checkout Select</h2>
</div>
<div class="panel-body"> </div>
<form id="checkout_selet_form" required method="post" action="/checkout" enctype="multipart/form-data" class=form-horizontal> </div>
</div>
<div class="page-body">
<div class="container-xl">
<div class="row row-cards">
<div class="col-12">
<div class="card">
<div class="card-body">
<form method="POST" action="/checkout" class="row g-3">
{{ csrf_field() }} {{ csrf_field() }}
<div class=form-group> <div class="col-md-6">
<label for=checkoutbiddernum class="col-sm-3 col-sm-offset-1 control-label"> <label for="bidder_num" class="form-label">Bidder</label>
Select Bidder Number: <select name="bidder_num" id="bidder_num" class="form-select" required>
</label> @foreach($bidders as $bidder)
<div class=col-sm-4> <option value="{{ $bidder->idbidders }}">{{ $bidder->bidder_assigned_number }} - {{ $bidder->bidder_fname }} {{ $bidder->bidder_lname }}</option>
<select name="checkoutbiddernum" id="checkoutbiddernum" required class=form-control> @endforeach
<?php echo App\Helpers\WinningBidderSelectList::winningBidderShowNumbers(); ?>
</select> </select>
</div> </div>
</div> <div class="col-12">
<div class=form-group> <button type="submit" class="btn btn-primary">Process Checkout</button>
<div class="col-sm-offset-5 col-sm-10">
<button type="submit" value="Submit" class="btn btn-primary">Submit</button>
</div>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>
@endsection @endsection