@if ($language === 'bd') @endif
@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'; $currencyOptions = isset($settings['currencyOptions']) ? $settings['currencyOptions'] : ['formation' => 'en-US', 'fractions' => 2]; $locale = $currencyOptions['formation'] ?? 'en-US'; $amountDue = $order->payment_status !== 'payment-success' ? $order->paid_total - intval($order?->wallet_point?->amount) : 0; if ($order->order_status === 'order-completed') { $amountDue = 0; } if ($order->parent_id) { $parentOrder = $order->parent_order; } 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{{ $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{{ $translated_text['date'] }}: {{ date('jS F, Y') }}
@endif