convert checkout
This commit is contained in:
parent
6360e1ad10
commit
6310dbcb23
@ -79,8 +79,9 @@ 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')
|
||||||
->where('winning_bidder_num', $checkout_bidder)
|
->with('items')
|
||||||
->get();
|
->where('winning_bidder_num', $checkout_bidder)
|
||||||
|
->get();
|
||||||
$checkout_cost_result = WinningBids::where('winning_bidder_num', $checkout_bidder)
|
$checkout_cost_result = WinningBids::where('winning_bidder_num', $checkout_bidder)
|
||||||
->sum('winning_cost');
|
->sum('winning_cost');
|
||||||
return view('checkout', [
|
return view('checkout', [
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user