From b7b19d55a846635199b30c8ad810f91b818e819c Mon Sep 17 00:00:00 2001 From: Russ Long Date: Sat, 29 Dec 2018 14:00:37 -0500 Subject: [PATCH] convert receiptpdf --- app/Models/WinningBids.php | 2 +- resources/views/receiptpdf.blade.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/WinningBids.php b/app/Models/WinningBids.php index 9bc7869..6cf890a 100644 --- a/app/Models/WinningBids.php +++ b/app/Models/WinningBids.php @@ -22,7 +22,7 @@ class WinningBids extends Model public function items() { - return $this->hasMany('App\Models\Items', 'winning_item_num', 'iditems'); + return $this->hasMany('App\Models\Items', 'iditems', 'winning_item_num'); } public function bidders() diff --git a/resources/views/receiptpdf.blade.php b/resources/views/receiptpdf.blade.php index 90ea52c..10a22c1 100644 --- a/resources/views/receiptpdf.blade.php +++ b/resources/views/receiptpdf.blade.php @@ -84,13 +84,13 @@ @foreach($checkout_list_results as $checkout_list_result) - {{ $checkout_list_result->items->item_assigned_num }} + {{ $checkout_list_result->items('item_assigned_num') }} - {{ $checkout_list_result->items->item_desc }} + {{ $checkout_list_result->items('item_desc') }} - ${{ $checkout_list_result->items->winning_cost }} + ${{ $checkout_list_result->winning_cost }} @endforeach