Pick one property

@foreach ($transactions as $t) @if ($t->dealerPackage && $t->dealerPackage->payment_status == \App\DealerPackage::completed) @if (old('dealerpackage_id') == $t->dealer_package_id) @else @endif @endif @endforeach
Package Net Amount Rebate Received Amount Paid Rebate
{{ $t->dealerPackage->package->name }} {{ number_format($t->dealerPackage->package->total_price) }} {{ number_format($t->amount) }} {{ number_format($received_amount[$t->id]) }} {{ number_format($paid_rebate[$t->id]) }}