{{ ucwords($subject) }}

@php $currency = \App\Models\Setting::get_value('currency') ?? '$'; @endphp @if(isset($assign) && $assign == true) @if(isset($seller) && !empty($seller))

Dear, {{ $seller->name }}

You order, #{{ $order->id }} is just assigned a delivery boy.

Delivery Boy details

Name {{$deliveryBoy->name}} Date of Birth {{$deliveryBoy->dob}}
Email {{$deliveryBoy->email}} Mobile {{$deliveryBoy->mobile}}

@else

Dear, {{ $deliveryBoy->name }}

You have just assigned new order, #{{ $order->id }}.

@endif

Estimated delivery time is {{ $order->delivery_time }}

Delivery address :-
{{ $order->address }}

 
Check it out
 
@else @if($user_type == 0) {{--here customer mail--}} @if($order->active_status == \App\Models\OrderStatusList::$received)

Dear, {{ $user->name }}

Your order has been received.

This notification is just a friendly reminder (not a bill or a second charge) that on {{ $order->created_at }} you placed an order from {{ $app_name }}. The charge will appear on your bill. This is just a reminder to help you recognise the charge.

Product Details:

@php $total_tax_amount = 0; $total_quantity = 0; $total_sub_total = 0; $order_items = $order->items; @endphp @foreach($order_items as $index => $item) @php $total_tax_amount = $total_tax_amount + $item->quantity; $total_quantity = $total_quantity + $item->quantity; $total_sub_total = $total_sub_total + $item->sub_total; @endphp @endforeach
Sr No. Name Unit Price Tax {{ $currency }} (%) Qty SubTotal ( {{ $currency }} )
{{ $index+1 }}
{{ $item->product_name }}
{{ $item->variant_name }}
{{ $item->discounted_price > 0 ? $item->discounted_price : $item->price }} {{ $item->tax_amount. " (" .$item->tax_percentage."%)" }}
{{ $item->quantity }}
{{ $item->sub_total }}
Total {{ $total_tax_amount }}
{{ $total_quantity }}
{{ $total_sub_total }}

Payment Method : {{ strtoupper($order->payment_method) }}

@php $discount_in_rupees = 0; if ( $order->discount > 0) { $discounted_amount = $order->total * $order->discount / 100; $final_total = $order->total - $discounted_amount; $discount_in_rupees = $order->total - $final_total; } @endphp
Total Order Price ({{ $currency }}) {{ $order->total }}
Delivery Charge ({{ $currency }}) {{ $order->delivery_charge }}
Discount {{ $currency }} (%){{ '- ' . $discount_in_rupees . ' (' . $order->discount . '%)'}}
Promo ({{ $order->promo_code }}) Discount ({{ $currency }}) {{ '- ' . $order->promo_discount }}
Wallet Used ({{ $currency }}) {{ '- ' . $order->wallet_balance }}
Final Total ({{ $currency }}) {{ '= ' . ceil($order->final_total)}}

We would like to take this opportunity to thank you for your business and look forward to serving you in the future.

@elseif(in_array($order->active_status, array( \App\Models\OrderStatusList::$processed, \App\Models\OrderStatusList::$shipped, \App\Models\OrderStatusList::$outForDelivery ) ) )

Dear, {{ $user->name }}

Your order has been {{ $status_name }}.

This notification is just a friendly reminder (not a bill or a second charge) that on {{ $order->created_at }} you placed an order from {{ $app_name }}. The charge will appear on your bill. This is just a reminder to help you recognise the charge.

Order summary #{{ $order->id }} Final Total - {{ $currency }} {{ $order->final_total }} We would like to take this opportunity to thank you for your business and look forward to serving you in the future.

@elseif($order->active_status == \App\Models\OrderStatusList::$delivered)

Dear, {{ $user->name }}

Your order has been {{ $status_name }}.

This notification is just a friendly reminder (not a bill or a second charge) that on {{ $order->created_at }} you placed an order from {{ $app_name }}. The charge will appear on your bill.

{{--@include('invoice')--}} @elseif(in_array($order->active_status, array( \App\Models\OrderStatusList::$cancelled, \App\Models\OrderStatusList::$returned, ) ) )

Dear, {{ $user->name }}

Sorry to see your order #{{ $order->id }} belonging to {{ $user->name }} has been {{ $status_name }} and if cash on delivery - message will be - that you haven't been charged for it if order prepaid - message will be - You will get refund within few business days.

Payment Method : {{ strtoupper($order->payment_method) }}

@php $discount_in_rupees = 0; if ( $order->discount > 0) { $discounted_amount = $order->total * $order->discount / 100; $final_total = $order->total - $discounted_amount; $discount_in_rupees = $order->total - $final_total; } @endphp
Total Order Price ({{ $currency }}) {{ $order->total }}
Delivery Charge ({{ $currency }}) {{ $order->delivery_charge }}
Discount {{ $currency }} (%){{ '- ' . $discount_in_rupees . ' (' . $order->discount . '%)'}}
Promo ({{ $order->promo_code }}) Discount ({{ $currency }}) {{ '- ' . $order->promo_discount }}
Wallet Used ({{ $currency }}) {{ '- ' . $order->wallet_balance }}
Final Total ({{ $currency }}) {{ '= ' . ceil($order->final_total)}}
{{--@elseif($order->active_status == \App\Models\OrderStatusList::$cancelled) @elseif($order->active_status == \App\Models\OrderStatusList::$returned)--}} @endif @else {{--here customer mail--}} @if($role == \App\Models\Role::$roleSeller)

Dear, {{ $seller->name }}

@if($order->active_status == \App\Models\OrderStatusList::$received)

You have just received new order, #{{ $order->id }}

@else

{{ $subject }}

@endif @php $redirect_url = (isset($order->id)) ? url('/seller/orders/view/'.$order->id): url('/seller/orders'); @endphp @elseif($role == \App\Models\Role::$roleDeliveryBoy)

Dear, {{ $deliveryBoy->name }}

You have just assigned new order, #{{ $order->id }}

Estimated delivery time is {{ $order->delivery_time }}

{{ $subject }}

@php $redirect_url = (isset($order->id)) ? url('/delivery_boy/orders/view/'.$order->id): url('/delivery_boy/orders'); @endphp @else

Dear, {{ $admin->name }}

@if($order->active_status == \App\Models\OrderStatusList::$received)

You have just received new order, #{{ $order->id }}

@else

{{ $subject }}

@endif @php $redirect_url = (isset($order->id)) ? url('/orders/view/'.$order->id): url('/orders'); @endphp @endif
 
Check it out
 
@endif @endif