@foreach($invoice->items as $item) @php($related = $item->relatedType()) @endforeach