Convert editwinners and itemlist
This commit is contained in:
parent
a6900c10d8
commit
4510f9ab8b
@ -158,8 +158,7 @@ class PagesController extends Controller
|
|||||||
$winning_bid_id = $edit_win_req->winid;
|
$winning_bid_id = $edit_win_req->winid;
|
||||||
$winner_bidder = $edit_win_req->winnerbiddernum;
|
$winner_bidder = $edit_win_req->winnerbiddernum;
|
||||||
$winner_cost = $edit_win_req->winnerbid;
|
$winner_cost = $edit_win_req->winnerbid;
|
||||||
$winner_insert = DB::table('winning_bids')
|
$winner_insert = WinningBids::where('idwinning_bids', $winning_bid_id)
|
||||||
->where('idwinning_bids', $winning_bid_id)
|
|
||||||
->update(
|
->update(
|
||||||
[
|
[
|
||||||
'winning_bidder_num' => $winner_bidder,
|
'winning_bidder_num' => $winner_bidder,
|
||||||
@ -186,11 +185,8 @@ class PagesController extends Controller
|
|||||||
|
|
||||||
public function itemlist()
|
public function itemlist()
|
||||||
{
|
{
|
||||||
$itemlist_results = DB::select("SELECT
|
$itemlist_results = Items::orderBy('item_assigned_num', 'asc')
|
||||||
*
|
->get();
|
||||||
FROM items
|
|
||||||
ORDER BY item_assigned_num ASC
|
|
||||||
");
|
|
||||||
return view('itemlist', ['itemlist_results' => $itemlist_results]);
|
return view('itemlist', ['itemlist_results' => $itemlist_results]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user