Convert checkout view
This commit is contained in:
parent
610b3ca4ad
commit
6360e1ad10
@ -78,14 +78,14 @@ class PagesController extends Controller
|
|||||||
$checkout_list_results = WinningBids::with('items')
|
$checkout_list_results = WinningBids::with('items')
|
||||||
->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)
|
->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)
|
||||||
->sum('winning_cost');
|
->sum('winning_cost');
|
||||||
return view('checkout', [
|
return view('checkout', [
|
||||||
'checkout_list_results' => $checkout_list_results,
|
'checkout_list_results' => $checkout_list_results,
|
||||||
'$checkout_cost_result' => $checkout_cost_result,
|
'checkout_cost_result' => $checkout_cost_result,
|
||||||
'checkout_info_results' => $checkout_info_results
|
'checkout_info_results' => $checkout_info_results
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user