{{-- header start --}}

INVOICE


Invoice No : {{ getSetting('order_code_prefix') }} {{ $order->orderGroup->order_code }}
Order Date : {{ date('d M, Y', strtotime($order->created_at)) }}

@if ($order->location_id != null)

{{ optional($order->location)->name }}

@endif
logo

{{ setting('app_name') }}

Phone: {{ setting('helpline_number') }}

{{-- header end --}} {{-- billing and shipping start --}} @if (!$order->orderGroup->is_pos_order) @endif

SHIPPING INFORMATION

@php $shippingAddress = $order->orderGroup->shippingAddress; @endphp

@if ($order->orderGroup->is_pos_order) {{ $order->orderGroup->pos_order_address }} @else {{ optional($shippingAddress)->address }}, {{ optional(optional($shippingAddress)->city)->name }}, {{ optional(optional($shippingAddress)->state)->name }},
{{ optional(optional($shippingAddress)->country)->name }}
@endif @if ($order->orderGroup->alternative_phone_no)
{{ localize('Alternative Phone') }}: {{ $order->orderGroup->alternative_phone_no }} @endif
Logistic: {{ $order->logistic_name }}
@php $deliveryInfo = json_decode($order->scheduled_delivery_info); @endphp

Delivery Type: {{ Str::title(Str::replace('_', ' ', $order->shipping_delivery_type)) }}

@if ($order->shipping_delivery_type == getScheduledDeliveryType())

Delivery Time: {{ date('d F', $deliveryInfo->scheduled_date) }}, {{ $deliveryInfo->timeline }}

@endif

BILLING INFORMATION

@php $billingAddress = $order->orderGroup->billingAddress; @endphp

{{ optional($billingAddress)->address }}, {{ optional(optional($billingAddress)->city)->name }}, {{ optional(optional($billingAddress)->state)->name }},
{{ optional(optional($billingAddress)->country)->name }}

{{-- billing and shipping end --}} {{-- item details start --}}
@foreach ($order->orderItems as $key => $item) @php $product = $item->product_variation->product; @endphp @endforeach
Item Price Qty Subtotal
{{ $product->collectLocalization('name') }}
@foreach (generateVariationOptions($item->product_variation->combinations) as $variation) {{ $variation['name'] }}: @foreach ($variation['values'] as $value) {{ $value['name'] }} @endforeach @if (!$loop->last) , @endif @endforeach
{{ formatPrice($item->unit_price) }} {{ $item->qty }} @if ($item->refundRequest && $item->refundRequest->refund_status == 'refunded') ({{ $item->refundRequest->refund_status }}) @endif {{ \Currency::format($item->total_price) }}
{{-- item details end --}} {{-- item total start --}}
@if ($order->orderGroup->total_coupon_discount_amount > 0) @endif @if ($order->orderGroup->is_pos_order) @endif
Subtotal {{ \Currency::format($order->orderGroup->sub_total_amount) }}
Tips {{ \Currency::format($order->orderGroup->total_tips_amount) }}
Shipping Cost {{ \Currency::format($order->orderGroup->total_shipping_cost) }}
Coupon Discount {{ \Currency::format($order->orderGroup->total_coupon_discount_amount) }}
Tax {{ \Currency::format($order->orderGroup->total_tax_amount) }}
Discount {{ \Currency::format($order->orderGroup->total_discount_amount) }}
Grand Total {{ \Currency::format($order->orderGroup->grand_total_amount) }}
{{-- item total end --}} {{-- footer start --}}

Hello {{ optional($order->user)->name }},
{{ setting('spacial_note') }}



Best Regards,
{{ setting('app_name') }}
Email: {{ setting('inquriy_email') }}
Website: {{ env('APP_URL') }}

{{-- footer end --}}