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)
|
||||
->first();
|
||||
$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)
|
||||
->get();
|
||||
$checkout_info_results = DB::select("SELECT
|
||||
|
@ -20,7 +20,7 @@ class WinningBids extends Model
|
||||
'updated_at'
|
||||
];
|
||||
|
||||
public function items()
|
||||
public function items_rel()
|
||||
{
|
||||
return $this->hasMany('App\Models\Items', 'iditems', 'winning_item_num');
|
||||
}
|
||||
|
@ -84,10 +84,10 @@
|
||||
@foreach($checkout_list_results as $checkout_list_result)
|
||||
<tr>
|
||||
<td>
|
||||
{{ $checkout_list_result->items->first()->item_assigned_num }}
|
||||
{{ $checkout_list_result->items_rel->item_assigned_num }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $checkout_list_result->items->first()->item_desc }}
|
||||
{{ $checkout_list_result->items_rel->item_desc }}
|
||||
</td>
|
||||
<td>
|
||||
${{ $checkout_list_result->winning_cost }}
|
||||
|
Loading…
Reference in New Issue
Block a user