Cleanup
This commit is contained in:
parent
bf1906e215
commit
cd8c610d4a
@ -5,7 +5,7 @@ namespace App\Http\Controllers;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use View;
|
use View;
|
||||||
Use App\helpers;
|
use App\helpers;
|
||||||
use PDF;
|
use PDF;
|
||||||
use App\Models\Bidders;
|
use App\Models\Bidders;
|
||||||
use App\Models\Items;
|
use App\Models\Items;
|
||||||
@ -59,7 +59,8 @@ class PagesController extends Controller
|
|||||||
'bidder_zip' => $bidder_zip ,
|
'bidder_zip' => $bidder_zip ,
|
||||||
'bidder_phone' => $bidder_phone ,
|
'bidder_phone' => $bidder_phone ,
|
||||||
'bidder_email' => $bidder_email
|
'bidder_email' => $bidder_email
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
|
|
||||||
return redirect('bidders');
|
return redirect('bidders');
|
||||||
}
|
}
|
||||||
@ -77,6 +78,9 @@ class PagesController extends Controller
|
|||||||
ON winning_bids.winning_item_num=items.iditems
|
ON winning_bids.winning_item_num=items.iditems
|
||||||
WHERE winning_bidder_num = $checkout_bidder
|
WHERE winning_bidder_num = $checkout_bidder
|
||||||
");
|
");
|
||||||
|
WinningBids::with('items')
|
||||||
|
->where('winning_bidder_num', $checkout_bidder)
|
||||||
|
->get();
|
||||||
$checkout_info_results = DB::select("SELECT
|
$checkout_info_results = DB::select("SELECT
|
||||||
winning_bids.*,
|
winning_bids.*,
|
||||||
bidders.*,
|
bidders.*,
|
||||||
@ -199,7 +203,8 @@ class PagesController extends Controller
|
|||||||
'item_desc' => $item_desc,
|
'item_desc' => $item_desc,
|
||||||
'item_min_bid' => $item_min_bid,
|
'item_min_bid' => $item_min_bid,
|
||||||
'item_est_value' => $items_est_value
|
'item_est_value' => $items_est_value
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
return redirect('items');
|
return redirect('items');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,5 +22,4 @@ class PaymentMethods extends Model
|
|||||||
{
|
{
|
||||||
return $this->belongsTo('App\Models\Checkout', 'payment_method', 'pm_id');
|
return $this->belongsTo('App\Models\Checkout', 'payment_method', 'pm_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -98,4 +98,3 @@ class WinningBidderSelectList
|
|||||||
return $winning_bidder_num;
|
return $winning_bidder_num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user