convert checkout

This commit is contained in:
Russ Long 2018-12-24 12:57:07 -05:00
parent 6360e1ad10
commit 6310dbcb23
2 changed files with 8 additions and 7 deletions

View File

@ -79,6 +79,7 @@ class PagesController extends Controller
->where('winning_bidder_num', $checkout_bidder) ->where('winning_bidder_num', $checkout_bidder)
->get(); ->get();
$checkout_info_results = WinningBids::with('bidders') $checkout_info_results = WinningBids::with('bidders')
->with('items')
->where('winning_bidder_num', $checkout_bidder) ->where('winning_bidder_num', $checkout_bidder)
->get(); ->get();
$checkout_cost_result = WinningBids::where('winning_bidder_num', $checkout_bidder) $checkout_cost_result = WinningBids::where('winning_bidder_num', $checkout_bidder)

View File

@ -47,7 +47,7 @@
</tr> </tr>
@endforeach @endforeach
</table> </table>
@if($checkout_list_results) @if($checkout_info_results)
<table align='center' class='table table-striped table-condensed table-hover table-bordered'> <table align='center' class='table table-striped table-condensed table-hover table-bordered'>
<tr> <tr>
<th> <th>
@ -57,13 +57,13 @@
Winning Bid: Winning Bid:
</th> </th>
</tr> </tr>
@foreach($checkout_list_results as $checkout_list_result) @foreach($checkout_info_results as $checkout_info_result)
<tr> <tr>
<td> <td>
{{ $checkout_list_result->items->item_assigned_num }} {{ $checkout_info_result->items->item_assigned_num }}
</td> </td>
<td> <td>
${{ $checkout_list_result->winning_cost }} ${{ $checkout_info_result->winning_cost }}
</td> </td>
</tr> </tr>
@endforeach @endforeach
@ -79,7 +79,7 @@
</label> </label>
<div class=col-sm-4> <div class=col-sm-4>
<select name="checkout_payment_method" id="checkout_payment_method" required class=form-control> <select name="checkout_payment_method" id="checkout_payment_method" required class=form-control>
<?php echo App\PaymentMethodSelectList::PaymentShowMethods(); ?> <?php echo App\PaymentMethodSelectinfo::PaymentShowMethods(); ?>
</select> </select>
</div> </div>
</div> </div>