@extends('layouts.email_layout') @section('content') @php $product_value_array = $gst_value_array = []; @endphp

Order Placed:

{{date('d.m.Y', strtotime($order->order_confirmation))}}

Delivery to:

{!!nl2br($order->shipping_address)!!}

Delivery By:

{{date('d.m.Y', strtotime("+7 day", strtotime($order->order_confirmation)))}}
{{date('l', strtotime("+7 day", strtotime($order->order_confirmation)))}}

@foreach($order_items as $order_item_row) @php $product_price = $order_item_row->purchased_rate; $gst_percent = $order_item_row->product_variant_gst_percent; $gst_value = ($product_price - ($product_price * (100 / (100 + $gst_percent)))); $product_price_without_gst = ($product_price - $gst_value); $single_gst_value = $gst_value * $order_item_row->purchased_quantity; $gst_value_array[] = $single_gst_value; $single_product_value = $product_price_without_gst * $order_item_row->purchased_quantity; $product_value_array[] = $single_product_value; @endphp @endforeach @if($order->discount_amount != "0.00") @endif

{{$order_item_row->product_name}} ₹{{$order_item_row->purchased_rate}}

{!!nl2br($order_item_row->attribute_data)!!}

Qty: {{$order_item_row->purchased_quantity}}

{{$order_item_row->product_name}}

Sub Total

₹{{bcadd(array_sum($product_value_array), 0, 2)}}

CGST

₹{{bcadd((array_sum($gst_value_array)/2), 0, 2)}}

SGST

₹{{bcadd((array_sum($gst_value_array)/2), 0, 2)}}

Discount

- ₹{{bcadd($order->discount_amount, 0, 2)}}

Grand Total

₹{{bcadd($order->grand_total, 0, 2)}}
@if(!empty($order->post_card_image))

Postcard message:

{!!nl2br($order->post_card_message)!!}

post card
@endif

Member Since:

Previous orders:

Gift

{{date('d.m.Y', strtotime($order->registered_date))}}

@if(!empty($past_orders)) {{$past_orders}} @else - @endif

@if(!empty($order->post_card_image)) Yes @else No @endif

@foreach($order_items as $order_item_row) @endforeach

Inventory after this purchase:

{{$order_item_row->product_name}}
{!!nl2br($order_item_row->attribute_data)!!}
{{$order_item_row->product_variant_stock}}

@endsection