@extends('layouts.frontend') @section('content')

Ваш заказ принят!

Скоро мы начнем его обработку и он будет отправлен в кратчайшие сроки, после проверки оплаты.

@php $products = json_decode($order->products, true); if (!is_array($products)) { $products = []; } @endphp
Order ID Number #052{{ $order->id }}

Status: {{ ucfirst($order->payment_status) }}

Customer Info

First Name: {{ $order->first_name }}

Last Name: {{ $order->last_name }}

Email: {{ $order->email }}

Phone: {{ $order->phone }}

Shipping Address
@if($order->company)

Company: {{ $order->company }}

@endif

City: {{ $order->city }}

Postcode: {{ $order->postcode }}

Country: {{ $order->country }}

Address: {{ $order->address }}


Products
@php $products = json_decode($order->products, true) ?? []; @endphp @if(count($products) > 0) @foreach($products as $productId => $qty) @php $prod = \App\Models\Product::find($productId); $name = $prod->name ?? '-'; $price = $prod->price ?? 0; $images = $prod && $prod->images ? json_decode($prod->images, true) : []; $image = $images[0] ?? null; @endphp
@if($image) {{ $name }} @else
@endif
{{ $name }} @if($qty > 1) × {{ $qty }} @endif
${{ $price }} each @if($qty > 1) (Subtotal: ${{ $price * $qty }}) @endif
@endforeach @else

No products in this order.

@endif
Total amount in crypto: {{ $order->total }} {{ $order->payment_currency ?? '-' }} Payment Method: {{ ucfirst($order->payment_method) }} / {{ $order->payment_currency ?? '-' }}
@if($order->wallet_address)

Wallet: {{ $order->wallet_address }}

@endif

Purchase Date: {{ $order->created_at }}


@endsection