From 130ef1fd576df26577adb66b2d3a55f3cb84dcd6 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sat, 29 Dec 2018 14:06:26 -0500 Subject: [PATCH] convert receiptpdf --- app/Http/Controllers/PagesController.php | 2 +- resources/views/receiptpdf.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index ff20517..f018de8 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -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 diff --git a/resources/views/receiptpdf.blade.php b/resources/views/receiptpdf.blade.php index d29a293..b0e57e1 100644 --- a/resources/views/receiptpdf.blade.php +++ b/resources/views/receiptpdf.blade.php @@ -179,10 +179,10 @@ @foreach($checkout_list_results as $checkout_list_result) - {{ $checkout_list_result->items->item_assigned_num }} + {{ $checkout_list_result->items_rel->item_assigned_num }} - {{ $checkout_list_result->items->item_desc }} + {{ $checkout_list_result->items_rel->item_desc }} ${{ $checkout_list_result->items->winning_cost }}