@php $logo = get_setting('header_logo'); @endphp
@if ($logo != null) @else @endif
{{ get_setting('site_name') }}
{{ get_setting('contact_address') }}
{{ translate('Email') }}: {{ get_setting('contact_email') }}
{{ translate('Phone') }}: {{ get_setting('contact_phone') }}

{{ translate('Welcome to') }} {{ get_setting('site_name') }}!

{{ translate('Dear') }} {{ $customer->name }},

{{ translate('Your account has been successfully created and your order has been placed.') }}

{{ translate('Your Account Credentials') }}

{{ translate('Email') }}: {{ $customer->email }}

{{ translate('Temporary Password') }}: {{ $tempPassword }}

{{ translate('Important') }}: {{ translate('Please change your password after logging in for security purposes.') }}

{{ translate('Login to Your Account') }}

{{ translate('Your Order Details') }}

{{ translate('Order ID') }}: {{ $order->code }}
{{ translate('Order Date') }}: {{ date('d-m-Y', $order->date) }}
{{ translate('Payment Method') }}: {{ ucfirst(str_replace('_', ' ', $order->payment_type)) }}
{{ translate('Payment Status') }}: {{ ucfirst($order->payment_status) }}
@php $shipping_address = json_decode($order->shipping_address); @endphp
{{ translate('Shipping Address') }}:
{{ $shipping_address->name ?? $customer->name }}
{{ $shipping_address->address ?? '' }}@if (isset($shipping_address->city)) , {{ $shipping_address->city }} @endif@if (isset($shipping_address->country)) , {{ $shipping_address->country }} @endif
{{ translate('Email') }}: {{ $shipping_address->email ?? $customer->email }}
{{ translate('Phone') }}: {{ $shipping_address->phone ?? $customer->phone }}
@foreach ($order->orderDetails as $key => $orderDetail) @if ($orderDetail->product != null) @php $selectedLenses = null; if (!empty($orderDetail->selected_lenses)) { $selectedLenses = is_string($orderDetail->selected_lenses) ? json_decode($orderDetail->selected_lenses, true) : $orderDetail->selected_lenses; } @endphp @if ($selectedLenses && is_array($selectedLenses)) @foreach ($selectedLenses as $lens) @if (isset($lens['name']) && !empty($lens['name'])) @endif @endforeach @endif @endif @endforeach
{{ translate('Product Name') }} {{ translate('Qty') }} {{ translate('Unit Price') }} {{ translate('Total') }}
{{ $orderDetail->product->getTranslation('name') }} @if ($orderDetail->variation != null)
({{ $orderDetail->variation }}) @endif
{{ $orderDetail->quantity }} {{ single_price($orderDetail->price / $orderDetail->quantity) }} {{ single_price($orderDetail->price + $orderDetail->tax) }}
{{ translate('Lens') }}: {{ $lens['name'] }} @if (isset($lens['color']) && !empty($lens['color']))
{{ translate('Color') }}: @endif
{{ $orderDetail->quantity }} {{ single_price($lens['price'] ?? 0) }} {{ single_price(($lens['price'] ?? 0) * $orderDetail->quantity) }}
@if ($order->coupon_discount > 0) @endif
{{ translate('Sub Total') }} {{ single_price($order->orderDetails->sum('price')) }}
{{ translate('Tax') }} {{ single_price($order->orderDetails->sum('tax')) }}
{{ translate('Shipping') }} {{ single_price($order->orderDetails->sum('shipping_cost')) }}
{{ translate('Discount') }} -{{ single_price($order->coupon_discount) }}
{{ translate('Grand Total') }} {{ single_price($order->grand_total) }}

{{ translate('You can view your order details and track your shipment by logging into your account.') }}

{{ translate('If you have any questions, please contact us at') }} {{ get_setting('contact_email') }}

{{ translate('Thank you for shopping with us!') }}