convert receiptpdf
This commit is contained in:
parent
b3e6457458
commit
64da341fce
@ -216,7 +216,7 @@ class PagesController extends Controller
|
|||||||
$checkout_final_results = Checkout::where('checkout_id', '=', $checkoutid)
|
$checkout_final_results = Checkout::where('checkout_id', '=', $checkoutid)
|
||||||
->first();
|
->first();
|
||||||
$bidder_num = $checkout_final_results->bidder_num;
|
$bidder_num = $checkout_final_results->bidder_num;
|
||||||
$checkout_list_results = WinningBids::with('items')
|
$checkout_list_results = WinningBids::with('items_rel')
|
||||||
->where('winning_bidder_num', '=', $bidder_num)
|
->where('winning_bidder_num', '=', $bidder_num)
|
||||||
->get();
|
->get();
|
||||||
$checkout_info_results = DB::select("SELECT
|
$checkout_info_results = DB::select("SELECT
|
||||||
|
@ -20,7 +20,7 @@ class WinningBids extends Model
|
|||||||
'updated_at'
|
'updated_at'
|
||||||
];
|
];
|
||||||
|
|
||||||
public function items()
|
public function items_rel()
|
||||||
{
|
{
|
||||||
return $this->hasMany('App\Models\Items', 'iditems', 'winning_item_num');
|
return $this->hasMany('App\Models\Items', 'iditems', 'winning_item_num');
|
||||||
}
|
}
|
||||||
|
@ -84,10 +84,10 @@
|
|||||||
@foreach($checkout_list_results as $checkout_list_result)
|
@foreach($checkout_list_results as $checkout_list_result)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{ $checkout_list_result->items->first()->item_assigned_num }}
|
{{ $checkout_list_result->items_rel->item_assigned_num }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{ $checkout_list_result->items->first()->item_desc }}
|
{{ $checkout_list_result->items_rel->item_desc }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
${{ $checkout_list_result->winning_cost }}
|
${{ $checkout_list_result->winning_cost }}
|
||||||
|
Loading…
Reference in New Issue
Block a user