Convert checkout view

This commit is contained in:
Russ Long 2018-12-24 12:54:05 -05:00
parent 610b3ca4ad
commit 6360e1ad10

View File

@ -78,14 +78,14 @@ class PagesController extends Controller
$checkout_list_results = WinningBids::with('items')
->where('winning_bidder_num', $checkout_bidder)
->get();
$checkout_info_results = WinningBids::with('bidders')
->where('winning_bidder_num', $checkout_bidder)
->get();
$checkout_cost_result = WinningBids::where('winning_bidder_num', $checkout_bidder)
->sum('winning_cost');
$checkout_info_results = WinningBids::with('bidders')
->where('winning_bidder_num', $checkout_bidder)
->get();
$checkout_cost_result = WinningBids::where('winning_bidder_num', $checkout_bidder)
->sum('winning_cost');
return view('checkout', [
'checkout_list_results' => $checkout_list_results,
'$checkout_cost_result' => $checkout_cost_result,
'checkout_cost_result' => $checkout_cost_result,
'checkout_info_results' => $checkout_info_results
]);
} else {