@if($language === "bd") @endif {{--$order collection is available here--}} @component('mail::message') # {{ __('sms.order.orderCreated.customer.subject') }} {{ __('sms.order.orderCreated.customer.message',['ORDER_TRACKING_NUMBER'=>$order->tracking_number]) }} @component('mail::button', ['url' => $url ]) {{__('common.view-order')}} @endcomponent {{__('common.thanks')}},
{{ config('app.name') }} @endcomponent
@php $contactDetails = $settings->options['contactDetails']; $customer = $order->customer; $shippingAddress = $order->shipping_address; $products = $order->products; $settings = $settings->options; $authorDetails = $settings['contactDetails']; $authorLocation = $authorDetails['location']; $currency = isset($settings['currency']) ? $settings['currency']: 'USD'; if($order->parent_id) { $parentOrder = $order->parent; }else{ $parentOrder = $order; } $cancelled_products = []; foreach ($parentOrder->children as $childOrder) { if($childOrder->order_status == 'order-cancelled') { foreach ($childOrder->products as $product) { $cancelled_products[] = $product->id; } } } @endphp
@if(isset($translated_text['invoice_no']) || isset($order->tracking_number) )

{{ $translated_text['invoice_no'] }}: {{ $order->tracking_number }}

@endif @if(isset($translated_text['delivery_time']) || isset($order->delivery_time) )

{{ isset($translated_text['payment_method']) ? $translated_text['payment_method'] : 'Payment Method' }}: {{ $order->payment_gateway }}

@endif
@if(isset($translated_text['date'])) {{ $translated_text['date'] }}: {{date("jS F, Y")}} @endif
@if(isset($translated_text['products']) || isset($translated_text['quantity']) || isset($translated_text['total']) ) @endif @if (!empty($products)) @foreach ($products as $product) @endforeach @endif
@if(isset($order->amount))
{{ $translated_text['subtotal'] }} :
@money($order->amount, $currency)
@endif @if(isset($order->discount))
{{ $translated_text['discount'] }} :
@money($order->discount, $currency)
@endif @if(isset($order->sales_tax))
{{ $translated_text['tax'] }} :
@money($order->sales_tax+$order->cancelled_tax, $currency)
@endif @if(isset($order->delivery_fee))
{{ $translated_text['delivery_fee'] }} :
@money($order->delivery_fee+$order->cancelled_delivery_fee, $currency)
@endif @if(isset($order->cancelled_amount) && $order->cancelled_amount > 0 && $order->cancelled_tax > 0)
{{(isset($translated_text['cancelled_tax'])) ? $translated_text['cancelled_tax'] : "Tax reduced"}} :
- @money($order->cancelled_tax, $currency)
@endif @if(isset($order->cancelled_amount) && $order->cancelled_amount > 0 && $order->cancelled_delivery_fee > 0)
{{(isset($translated_text['cancelled_delivery_fee'])) ? $translated_text['cancelled_delivery_fee'] : "Delivery fee reduced"}} :
- @money($order->cancelled_delivery_fee, $currency)
@endif @if(isset($order->cancelled_amount) && $order->cancelled_amount > 0)
{{(isset($translated_text['cancelled_subtotal'])) ? $translated_text['cancelled_subtotal'] : " Cancelled subtotal "}}:
- @money(($order->cancelled_amount-$order->cancelled_tax-$order->cancelled_delivery_fee), $currency)
@endif @if(isset($order->total))
{{ $translated_text['total'] }} :
@money($order->total, $currency)
@endif