@extends('layouts.email_layout')
@section('content')
Hi {{$order->address_first_name}}
We have successfully delivered your order on {{date('d.m.Y', strtotime($order->delivery_date))}}
|
|
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 * $order_item_row->purchased_quantity;
$gst_value = ($product_price - ($product_price * (100 / (100 + $order_item_row->product_variant_gst_percent))));
$product_price_without_gst = $product_price - $gst_value;
$gst_value_array[] = $gst_value;
$product_value_array[] = $product_price_without_gst;
@endphp
{{$order_item_row->product_name}} ₹{{$order_item_row->purchased_rate}}
{!!nl2br($order_item_row->attribute_data)!!}
Qty: {{$order_item_row->purchased_quantity}}
|
|
@endforeach
|
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)}}
|
@if($order->discount_amount != "0.00")
Discount
|
- ₹{{$order->discount_amount}}
|
@endif
Total
|
₹{{$order->grand_total}}
|
|
Payment Method
|
{{$order->payment_method_title}}
|
|
@if(!empty($order->post_card_image))
|
{{$order->post_card_message}}
|
|
@endif
@endsection