{{ \Carbon\Carbon::parse($order->created_at)->format('F j, Y') }}

Zenorex Marketing Corporation

{{--

Purchase #{{ $order->reference }}

--}} {{--

Thank you for your purchase!

--}} {{--

We're getting your receipt ready. We will notify you when it has been sent.

--}} {{--

Purchase Summary

--}}

Quotation #{{ $order->reference }}

Thank you for your inquiry!

We're getting your final quotation ready. We will notify you when it has been sent.

Quotation Summary

@php use App\Models\Products; $products = Products::all(); $items = json_decode($order->items); $quantities = json_decode($order->quantity); $price = 0; @endphp @if ($items && $quantities) @foreach ($items as $index => $item) @php $matchedProduct = $products->firstWhere('model', $item); @endphp @if ($matchedProduct)

{{ $item }} x {{ $quantities[$index] }}

{{$matchedProduct->brandname}} - {{$matchedProduct->productDesc}}

@if ($matchedProduct->sellPrice) @php $price += $matchedProduct->sellPrice; @endphp ₱{{ number_format($matchedProduct->price, 2) }} ₱{{ number_format($matchedProduct->sellPrice, 2) }} @else ₱{{ number_format($matchedProduct->price, 2) }} @php $price += $matchedProduct->price; @endphp @endif

@endif @endforeach @endif

Subtotal

₱{{ number_format($price, 2) }}

@if (!empty($order->forqoute))

Shipping and Handling

₱{{ $order->forqoute }}

@endif

Shipping and Handling

TBA

@if (!empty($order->discounted))

Discount

₱{{ $order->discounted }}

@endif @if (!empty($order->payment_method))

Payment Method

{{ $order->payment_method }}

@endif

Total

₱{{ number_format($order->total_amount, 2) }}

Customer Information

Personal Information

{{ $order->personalFirstname }} {{ $order->personalLastname }}

{{ $order->personalCompanyname }}

{{ $order->personalEmail }}

{{ $order->personalNumber }}

Shipping Information

{{ $order->shipFirstname }} {{ $order->shipLastname }}

{{ $order->shipAddress }}

{{ $order->shipNumber }}

Billing Information

{{ $order->billFirstname }} {{ $order->billLastname }}

{{ $order->billAddress }}

{{ $order->billNumber }}

If you have any questions, reply to this email or contact us at zmc@zenorexmarketing.com