convert receiptpdf

This commit is contained in:
Russ Long 2018-12-29 14:00:37 -05:00
parent c2b481aa17
commit b7b19d55a8
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -84,13 +84,13 @@
@foreach($checkout_list_results as $checkout_list_result)
<tr>
<td>
{{ $checkout_list_result->items->item_assigned_num }}
{{ $checkout_list_result->items('item_assigned_num') }}
</td>
<td>
{{ $checkout_list_result->items->item_desc }}
{{ $checkout_list_result->items('item_desc') }}
</td>
<td>
${{ $checkout_list_result->items->winning_cost }}
${{ $checkout_list_result->winning_cost }}
</td>
</tr>
@endforeach