feat: expand checkout_complete_list columns and include item numbers
This commit is contained in:
@@ -16,28 +16,47 @@
|
||||
<div class="col-12">
|
||||
<div class="card">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter card-table">
|
||||
<table class="table table-vcenter card-table text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Bidder #</th>
|
||||
<th>Name</th>
|
||||
<th>Items Won</th>
|
||||
<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>
|
||||
<th>Payment</th>
|
||||
<th>Payment Method</th>
|
||||
<th>Items Won</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($checkout_complete_results as $c)
|
||||
<tr>
|
||||
<td>{{ $c->bidder_assigned_number }}</td>
|
||||
<td>{{ $c->bidder_fname }} {{ $c->bidder_lname }}</td>
|
||||
<td>{{ $c->bidder_lname }}</td>
|
||||
<td>{{ $c->bidder_fname }}</td>
|
||||
<td>{{ $c->bidder_addr }}</td>
|
||||
<td>{{ $c->bidder_city }}</td>
|
||||
<td>{{ $c->bidder_state }}</td>
|
||||
<td>{{ $c->bidder_zip }}</td>
|
||||
<td>{{ \App\Helpers\PhoneHelper::format($c->bidder_phone) }}</td>
|
||||
<td>{{ $c->bidder_email }}</td>
|
||||
<td>${{ number_format($c->winnertotal, 2) }}</td>
|
||||
<td>
|
||||
@if($c->payment_method == 1) Cash
|
||||
@elseif($c->payment_method == 2) Check ({{ $c->check_number }})
|
||||
@else Credit ({{ $c->cc_transaction }})
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@foreach(\App\Models\WinningBids::with('items')->where('winning_bidder_num', $c->bidder_num)->get() as $bid)
|
||||
{{ $bid->items->item_desc ?? 'N/A' }}<br>
|
||||
<strong>#{{ $bid->items->item_assigned_num ?? '?' }}</strong> - {{ $bid->items->item_desc ?? 'N/A' }}<br>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>${{ number_format($c->winnertotal, 2) }}</td>
|
||||
<td>{{ $c->payment_method == 1 ? 'Cash' : ($c->payment_method == 2 ? 'Check' : 'Credit') }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user