convert receiptpdf

This commit is contained in:
Russ Long 2018-12-29 14:04:08 -05:00
parent b3e6457458
commit 64da341fce
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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');
}

View File

@ -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 }}