@php use App\Models\Setting; $site_name = Setting::first()->site_name; @endphp

{{ $site_name }}

{!! clean(nl2br($order->courier_tracking_id)) !!}

Contact Info

Name : {{ $order->orderAddress->shipping_name }}
Address : {{ $order->orderAddress->shipping_address }}
Phone : {{ $order->orderAddress->shipping_phone }}
OrderId: #{{ $order->order_id }}

@php $total_discount = 0; $total_price = 0; @endphp @foreach ($order->orderProducts as $index => $orderProduct) @php $total = ($orderProduct->product->price * $orderProduct->qty); $total_discount += $orderProduct->total_discount; $total_price = $total_price + $total; @endphp @endforeach @if($order->is_free) @endif

Item

Qty

V

Total

{{ $orderProduct->product_name }}

{{ $orderProduct->qty }}

{{ $orderProduct->variation_color_id != 'default' ? $orderProduct->variation_color_id : '' }}-{{ $orderProduct->variation }}

{{ $total }}

Sub Total

{{ $total_price }}

Discount(-)

{{ $total_discount }}

Advance(-)

{{ $order->advance_amount != '' ? $order->advance_amount : '0' }}

Shipping(+)

{{ $order->shipping_cost }}

{{ $shipping->free_condition_text }}

Total

{{ $order->total_amount }}