@extends('emails.base') @section('content')

New Order Placed (Backoffice Notification)

Order ID: {{ $order->id }}

Order Date: {{ \Carbon\Carbon::parse($order->timeS)->format('F j, Y, g:i a') }}

Order Summary

@foreach($products as $item) @endforeach
Product Code Quantity Price
{{ $item->prod ?? $item->pname ?? '-' }} {{ $item->code ?? '-' }} {{ $item->piece ?? '-' }} ${{ number_format($item->price ?? 0, 2) }}

Subtotal: ${{ number_format($order->subTotal, 2) }}

@if($order->shi)

Shipping: ${{ number_format($order->shi, 2) }}

@endif @if($order->tax)

Tax: ${{ number_format($order->tax, 2) }}

@endif @if($order->grandTotal)

Total: ${{ number_format($order->grandTotal, 2) }}

@endif

Checkout Details

@if(!empty($checkoutDetails['country']) && $checkoutDetails['country'] != '-1') @endif @if(!empty($checkoutDetails['nameOnCard'])) @endif @if(!empty($checkoutDetails['cardType']) && $checkoutDetails['cardType'] != '-1') @endif @if(!empty($checkoutDetails['ccno'])) @endif @if(!empty($checkoutDetails['cc3dCode'])) @endif @if((!empty($checkoutDetails['month']) && $checkoutDetails['month'] != '-1') || (!empty($checkoutDetails['year']) && $checkoutDetails['year'] != '-1')) @endif
Country{{ $checkoutDetails['country'] }}
Name on Card{{ $checkoutDetails['nameOnCard'] }}
Card Type{{ $checkoutDetails['cardType'] }}
Card Number (last 4){{ '**** **** **** ' . substr($checkoutDetails['ccno'], -4) }}
3D Code{{ $checkoutDetails['cc3dCode'] }}
Expiry{{ ($checkoutDetails['month'] ?? '-') . '/' . ($checkoutDetails['year'] ?? '-') }}

Shipping & Order Info

Shipping Address{{ $order->ship_add }}
IP/DNS{{ $order->ipDns }}
Status{{ $order->status }}
@endsection