@if(isset($logoBase64) && $logoBase64) Soap Opera Logo @else SOAP OPERA @endif



INVOICE

Order Confirmation & Receipt

Bill To:

{{ $order->address->receiver_name ?? 'Customer' }}
@if(isset($order->address->receiver_email) && $order->address->receiver_email) {{ $order->address->receiver_email }}
@endif {{ $order->address->receiver_phone ?? '' }}
Invoice #: ORD-2025-{{ $order->cart_id ?? 'N/A' }}
Date: {{ $order->order_date ?? now()->format('F j, Y') }}
Status: {{ ucfirst($order->order_status ?? 'Processing') }}
Payment Method: {{ $order->payment_method ?? 'Credit Card' }}
{{-- Payment Status: @php $paymentStatus = $order->payment_status ?? 'pending'; $statusColor = $paymentStatus === 'completed' ? '#27ae60' : ($paymentStatus === 'failed' ? '#e74c3c' : '#f39c12'); @endphp {{ ucfirst($paymentStatus) }} --}}

Order Items

@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
@if(isset($item->varient_image_base64) && $item->varient_image_base64) Product image @else 📦 @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 }} @if($mrp > $price) Unit Price: Rs.{{ number_format($mrp, 2) }} @endif @if($percentOff > 0) {{ $percentOff }}% off @endif Rs.{{ number_format($itemTotal, 2) }}
@endforeach @else

No items found in this order.

@endif

Order Summary

@if(isset($order->coupon_discount) && $order->coupon_discount > 0) @endif
Subtotal: Rs.{{ number_format($subtotal, 2) }}
Shipping: Rs.{{ number_format($order->shipping_cost ?? 0, 2) }}
Coupon Discount @if(isset($order->coupon) && isset($order->coupon->coupon_name))
({{ $order->coupon?->coupon_name }}) @endif
-Rs.{{ number_format($order->coupon_discount, 2) }}
Total Amount: Rs.{{ 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) Email: {{ $order->address->receiver_email }}
@endif Phone: {{ $order->address->receiver_phone ?? '' }} @if(isset($order->address->alternate_phone) && $order->address->alternate_phone) , {{ $order->address->alternate_phone }} @endif

Delivery Address:
@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) Near {{ $order->address->landmark }},
@endif {{ $order->address->city ?? '' }}, {{ $order->address->state ?? '' }} - {{ $order->address->pincode ?? '' }}
@endif

Customer Support

Email: support@soapopera.in
Phone: 9820166550, 9321319542

{{--
Terms & Conditions:
• This invoice is generated electronically and is valid without signature.
• Please retain this invoice for your records.
• For returns and exchanges, please contact customer support within 7 days.
• Thank you for shopping with Soap Opera!
--}}

Soap Opera

© 2025 Soap Opera. All rights reserved.