convert receiptpdf
This commit is contained in:
parent
3abadcd3bc
commit
ea9b5bda07
@ -213,19 +213,12 @@ class PagesController extends Controller
|
|||||||
public function receiptpdf(Request $receiptpdf_request)
|
public function receiptpdf(Request $receiptpdf_request)
|
||||||
{
|
{
|
||||||
$checkoutid = $receiptpdf_request->checkout_id;
|
$checkoutid = $receiptpdf_request->checkout_id;
|
||||||
$checkout_final_results = DB::select("SELECT
|
$checkout_final_results = Checkout::where('checkout_id', '=', $checkoutid)
|
||||||
*
|
->first();
|
||||||
FROM checkout
|
$bidder_num = $checkout_final_results->bidder_num;
|
||||||
WHERE checkout_id = $checkoutid
|
$checkout_list_results = WinningBids::with('items')
|
||||||
");
|
->where('winning_bidder_num', '=', '$bidder_num')
|
||||||
$bidder_num = $checkout_final_results['0']->bidder_num;
|
->get();
|
||||||
$checkout_list_results = DB::select("SELECT
|
|
||||||
*, items.item_assigned_num, items.item_desc
|
|
||||||
FROM winning_bids
|
|
||||||
INNER JOIN items AS items
|
|
||||||
ON winning_bids.winning_item_num=items.iditems
|
|
||||||
WHERE winning_bidder_num = $bidder_num
|
|
||||||
");
|
|
||||||
$checkout_info_results = DB::select("SELECT
|
$checkout_info_results = DB::select("SELECT
|
||||||
winning_bids.*,
|
winning_bids.*,
|
||||||
bidders.*,
|
bidders.*,
|
||||||
|
@ -84,13 +84,13 @@
|
|||||||
@foreach($checkout_list_results as $checkout_list_result)
|
@foreach($checkout_list_results as $checkout_list_result)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ $checkout_list_result->item_assigned_num }}
|
{{ $checkout_list_result->items->item_assigned_num }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ $checkout_list_result->item_desc }}
|
{{ $checkout_list_result->items->item_desc }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
${{ $checkout_list_result->winning_cost }}
|
${{ $checkout_list_result->items->winning_cost }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
@ -181,13 +181,13 @@
|
|||||||
@foreach($checkout_list_results as $checkout_list_result)
|
@foreach($checkout_list_results as $checkout_list_result)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ $checkout_list_result->item_assigned_num }}
|
{{ $checkout_list_result->items->item_assigned_num }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ $checkout_list_result->item_desc }}
|
{{ $checkout_list_result->items->item_desc }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
${{ $checkout_list_result->winning_cost }}
|
${{ $checkout_list_result->items->winning_cost }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user