@php $info = $result->payer->payer_info; $address = $result->payer->payer_info->shipping_address; $transactions = $result->transactions[0]; $bill_name = $info->first_name.' '.$info->last_name; $bill_email = $info->email; $bill_address = $address->line1.' '.$address->city.' '.$address->state.' '.$address->postal_code.' '.$address->country_code; $total_amount = $transactions->amount->total; $items = $transactions->item_list->items; @endphp

Invoice Information:
Invoice Name: {{ $bill_name }}
Invoice Email: {{ $bill_email }}
Invoice Address: {{ $bill_address }}
Payment Method: {{ $payment_method }}


@foreach ($items as $item) @endforeach
PRODUCT NAME PRICE QTY PAYMENT METHOD SUB TOTAL
{{ $item->name }} ${{ $item->price}} {{ $item->quantity }} {{ $payment_method}} ${{ number_format(intval($item->quantity) * floatval($item->price),2) }}

ORDER TOTAL: {{ $total_amount }}