@section('title', '- Payment completed ') @extends('layouts.app') @section('section')
@foreach($purchases as $purchase)

Order Details


Created on {{$purchase->created_at}} | Order #{{$purchase->id}}

Purchased products

@foreach($purchase->detail as $detail)

Congratulations, the product {{$detail->product->name}} you bought correctly

{{$detail->product->name}}

Product Price: {{$detail->product->price}} eBits

Product Quantity: {{$detail->qty}}

Total: {{$detail->ebits}} eBits

Seller: {{$purchase->seller->first_name}} {{$purchase->seller->last_name}}

@endforeach

Shipping Address

{{$purchase->buyer_location->address ?? 'No address'}}

{{$purchase->buyer_location->city ?? 'No city'}} {{$purchase->buyer_location->state ?? 'No state'}}

{{$purchase->buyer_location->zip_code ?? 'No zip-code'}}

@endforeach
@endsection