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

Hi {{$order->address_first_name}}

Thank you for visiting our store. Your order is now confirmed and we will begin processing delivery.

Order Number: Order Placed:
{{strtotime($order->created_at)}}{{$order->id}} {{date('d.m.Y', strtotime($order->order_confirmation))}}
Billed to: Delivery to:
{!!nl2br($order->billing_address)!!} {!!nl2br($order->shipping_address)!!}
@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

{{$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}}
@if($order->discount_amount != "0.00") @endif
Subtotal ₹{{bcadd(array_sum($product_value_array), 0, 2)}}
C-GST ₹{{bcadd((array_sum($gst_value_array)/2), 0, 2)}}
S-GST ₹{{bcadd((array_sum($gst_value_array)/2), 0, 2)}}
Discount - ₹{{bcadd($order->discount_amount, 0, 2)}}
Total ₹{{bcadd($order->grand_total, 0, 2)}}
Payment Method {{$order->payment_method_title}}
For questions or last minute changes:concierge@cocojungle.co
@endsection