@extends('layouts.email_layout')
@section('content')
Hello Admin,
We have received the product and hence, the system has automatically created a replacement order.
|
|
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)}}
|
Total
|
₹{{$order->grand_total}}
|
|
@endsection