@if (!$isAdmin) Order Confirmation
{{--
--}} {{--
--}}
Soap Opera Logo

🎉 Order Placed!

Thank you for choosing Soap Opera, {{ $order->address->receiver_name ?? 'Valued Customer' }}!

Payment Status
@php $paymentStatus = $order->payment_status ?? 'pending'; $statusColors = [ 'paid' => ['bg' => '#d4edda', 'text' => '#155724', 'icon' => '✅'], 'pending' => ['bg' => '#fff3cd', 'text' => '#856404', 'icon' => '⏳'], 'failed' => ['bg' => '#f8d7da', 'text' => '#721c24', 'icon' => '❌'], 'Refunded' => ['bg' => '#d1ecf1', 'text' => '#0c5460', 'icon' => '🔄'] ]; $statusConfig = $statusColors[$paymentStatus] ?? $statusColors['pending']; @endphp {{ $statusConfig['icon'] }} {{ ucfirst($paymentStatus) }}
Payment Method
{{ $order->payment_method ?? 'Credit Card' }}

Hello {{ $order->address->receiver_name ?? 'Valued Customer' }}! 👋

Great news! We've received your order and it's being processed. You'll receive tracking information once your items ship.

Order #ORD-2025-{{ $order->cart_id ?? 'N/A' }}
{{ $order->order_date ?? now()->format('F j, Y \a\t g:i A') }}
Processing
@php $subtotal = 0; @endphp @if (isset($order->orderItems) && $order->orderItems->isNotEmpty()) @foreach ($order->orderItems as $item) @php $mrp = $item->variation->mrp ?? 0; $price = $item->variation->price ?? 0; $quantity = $item->quantity ?? 1; $itemTotal = $price * $quantity; $subtotal += $itemTotal; $percentOff = $mrp > 0 && $price > 0 ? round((($mrp - $price) / $mrp) * 100) : 0; @endphp
Product @if($percentOff > 0)
-{{ $percentOff }}%
@endif
{{ $item->product_name ?? 'Product Name' }}
@if (isset($item->variation->variation_attributes) && $item->variation->variation_attributes->isNotEmpty()) @php $attributes = $item->variation->variation_attributes ->map(function ($attribute) { return ($attribute->attribute->attribute->name ?? 'Attribute') . ': ' . ($attribute->attribute->name ?? 'Value'); }) ->implode(', '); @endphp
{{ $attributes }}
@endif
Qty: {{ $quantity }} ₹{{ number_format($itemTotal, 2) }} @if($mrp > $price)
₹{{ number_format($mrp * $quantity, 2) }}
@endif
@endforeach @else
📦
No items found
Please contact our support team
@endif

💰 Order Summary

@if(isset($order->coupon_discount) && $order->coupon_discount > 0) @endif
Subtotal: ₹{{ number_format($subtotal, 2) }}
Shipping: @if(($order->shipping_cost ?? 0) == 0) FREE @else ₹{{ number_format($order->shipping_cost ?? 0, 2) }} @endif
Coupon Discount: @if (isset($order->coupon) && isset($order->coupon->coupon_name))
({{ $order->coupon?->coupon_name }}) @endif
-₹{{ number_format($order->coupon_discount, 2) }}
Total: ₹{{ number_format($order->total_price ?? 0, 2) }}
@if(isset($order->address))

📦 Shipping Address

{{ $order->address->receiver_name ?? '' }}
@if(isset($order->address->receiver_email) && $order->address->receiver_email)
📧 {{ $order->address->receiver_email }}
@endif
📞 {{ $order->address->receiver_phone ?? '' }} @if(isset($order->address->alternate_phone) && $order->address->alternate_phone) , {{ $order->address->alternate_phone }} @endif
🏠 @if(isset($order->address->house_no) && $order->address->house_no) {{ $order->address->house_no }}, @endif @if(isset($order->address->society) && $order->address->society) {{ $order->address->society }}, @endif @if(isset($order->address->landmark) && $order->address->landmark) {{ $order->address->landmark }}, @endif
📍 {{ $order->address->city ?? '' }}, {{ $order->address->state ?? '' }} - {{ $order->address->pincode ?? '' }}
@endif

💬 Need Help?

Our support team is here to help! Contact us at support@soapopera.in or call 9820166550 / 9321319542.

{{--
--}}

✨ Soap Opera

Thank you for choosing us!

©2025 Soap Opera. All rights reserved.

@else New Order Notification - #ORD-2025-{{ $order->cart_id ?? 'N/A' }}
Soap Opera Logo

🔔 New Order Alert!

Order #ORD-2025-{{ $order->cart_id ?? 'N/A' }} received from {{ $order->address->receiver_name ?? 'Customer' }}

Payment Status
@php $paymentStatus = $order->payment_status ?? 'pending'; $statusColors = [ 'completed' => ['bg' => '#d4edda', 'text' => '#155724', 'icon' => '✅'], 'pending' => ['bg' => '#fff3cd', 'text' => '#856404', 'icon' => '⏳'], 'failed' => ['bg' => '#f8d7da', 'text' => '#721c24', 'icon' => '❌'], 'refunded' => ['bg' => '#d1ecf1', 'text' => '#0c5460', 'icon' => '🔄'] ]; $statusConfig = $statusColors[$paymentStatus] ?? $statusColors['pending']; @endphp {{ $statusConfig['icon'] }} {{ ucfirst($paymentStatus) }}
Payment Method
{{ $order->payment_method ?? 'Credit Card' }}

📋 Order Summary

A new order has been placed and requires your attention. Please process this order promptly.

👤 Customer Details

{{ $order->address->receiver_name ?? '' }}
@if(isset($order->address->receiver_email) && $order->address->receiver_email)
📧 {{ $order->address->receiver_email }}
@endif
📞 {{ $order->address->receiver_phone ?? '' }} @if(isset($order->address->alternate_phone) && $order->address->alternate_phone) , {{ $order->address->alternate_phone }} @endif
Order #ORD-2025-{{ $order->cart_id ?? 'N/A' }}
{{ $order->order_date ?? now()->format('F j, Y \a\t g:i A') }}
ACTION REQUIRED
@php $subtotal = 0; @endphp @if (isset($order->orderItems) && $order->orderItems->isNotEmpty()) @foreach ($order->orderItems as $item) @php $mrp = $item->variation->mrp ?? 0; $price = $item->variation->price ?? 0; $quantity = $item->quantity ?? 1; $itemTotal = $price * $quantity; $subtotal += $itemTotal; $percentOff = $mrp > 0 && $price > 0 ? round((($mrp - $price) / $mrp) * 100) : 0; @endphp
Product @if($percentOff > 0)
-{{ $percentOff }}%
@endif
{{ $item->product_name ?? 'Product Name' }}
@if (isset($item->variation->variation_attributes) && $item->variation->variation_attributes->isNotEmpty()) @php $attributes = $item->variation->variation_attributes ->map(function ($attribute) { return ($attribute->attribute->attribute->name ?? 'Attribute') . ': ' . ($attribute->attribute->name ?? 'Value'); }) ->implode(', '); @endphp
{{ $attributes }}
@endif
Qty: {{ $quantity }} ₹{{ number_format($itemTotal, 2) }} @if($mrp > $price)
₹{{ number_format($mrp * $quantity, 2) }}
@endif
@endforeach @else
📦
No items found
Please check order details
@endif

💰 Financial Summary

@if(isset($order->coupon_discount) && $order->coupon_discount > 0) @endif
Subtotal: ₹{{ number_format($subtotal, 2) }}
Shipping: @if(($order->shipping_cost ?? 0) == 0) FREE @else ₹{{ number_format($order->shipping_cost ?? 0, 2) }} @endif
Coupon Discount: @if (isset($order->coupon) && isset($order->coupon->coupon_name))
({{ $order->coupon?->coupon_name }}) @endif
-₹{{ number_format($order->coupon_discount, 2) }}
Total Amount: ₹{{ number_format($order->total_price ?? 0, 2) }}
@if(isset($order->address))

📦 Delivery Address

{{ $order->address->receiver_name ?? '' }}
@if(isset($order->address->receiver_email) && $order->address->receiver_email)
📧 {{ $order->address->receiver_email }}
@endif
📞 {{ $order->address->receiver_phone ?? '' }} @if(isset($order->address->alternate_phone) && $order->address->alternate_phone) , {{ $order->address->alternate_phone }} @endif
🏠 @if(isset($order->address->house_no) && $order->address->house_no) {{ $order->address->house_no }}, @endif @if(isset($order->address->society) && $order->address->society) {{ $order->address->society }}, @endif @if(isset($order->address->landmark) && $order->address->landmark) {{ $order->address->landmark }}, @endif
📍 {{ $order->address->city ?? '' }}, {{ $order->address->state ?? '' }} - {{ $order->address->pincode ?? '' }}
@endif {{--

⚡ Action Required

Next Steps:
• Verify payment status and process the order
• Check inventory for all items
• Prepare items for packaging and shipping
• Update order status once processed

--}}

✨ Soap Opera Admin

Admin Dashboard - New Order Notification

©2025 Soap Opera. All rights reserved.

@endif