{{ __('product.billing_info') }}

{{ @$order->bill->first_name }} {{ @$order->bill->last_name }}

{{ @$order->bill->phone }}, {{ @$order->bill->address1 }}, {{ @$order->bill->address2 }}, {{ @$order->bill->countryDetails->name }}, {{ @$order->bill->cityDetails->name }}

{{ @$order->bill->email }}
{{ @$order->bill->phone }}

{{ __('product.shipping_info') }} @if($order->delivery_type == 'pickup_location') ({{ __('product.collect_from_pickup_location') }}) @endif

{{ @$order->bill->first_name }} {{ @$order->bill->last_name }}

{{ @$order->bill->phone }}, {{ @$order->bill->address1 }}, {{ @$order->bill->address2 }}, {{ @$order->bill->countryDetails->name }}, {{ @$order->bill->cityDetails->name }}

{{ @$order->bill->email }}
{{ @$order->bill->phone }}

{{__('product.paid_by')}} {{$order->payment_method}}
@if (isModuleActive('Tax')) @endif
{{__('product.txn_id')}} @if(@$order->order_payment->txn_id && @$order->order_payment->txn_id != 'none') {{ @$order->order_payment->txn_id }} @else - @endif
{{ __('product.subtotal') }} @php $p_total = 0; $p_qty = 0; $shipping_cost = 0; foreach ($order->packages as $key => $ordered_package) { $total = 0; $qty = 0; $all_product = Modules\Store\Entities\OrderPackageDetail::where(['order_id' => $ordered_package->order_id, 'seller_id' => $ordered_package->seller_id])->get(); foreach ($all_product as $key => $item) { $price = $item->course->discount_price != 0 ? $item->course->discount_price : $item->course->price; if ($item->is_store == 1) { $price1 = $item->course->discount_price != 0 ? $item->course->discount_price : $item->course->price; $price = $price1 * $item->number_of_product; } else { $price = $item->course->discount_price != 0 ? $item->course->discount_price : $item->course->price; $price1 = $price; } $total = $total + $price; $shipping_cost = $shipping_cost + $item->shipping_cost; $qty = $qty + $item->tax_amount; } $p_total = $p_total + $total; if (isModuleActive('Tax')) { $p_qty = $p_qty + $qty; } } @endphp {{ getPriceFormat($p_total) }}
{{ __('product.discount') }} @if($order->discount!=0) {{getPriceFormat($order->discount)}} @endif
{{ __('product.shipping_charge') }} {{ getPriceFormat($shipping_cost) }}
{{ __('product.Tax') }} {{getPriceFormat($p_qty)}}
{{ __('product.grand_total') }} {{ getPriceFormat($p_qty + $p_total + $order->shipping_cost) }}
@foreach ($order->packages as $key => $order_package)

{{ __('product.shop_name') }}: {{ @$order_package->seller->name }}

{{ __('product.package') }}: {{ $order_package->package_code }}

@php $subTotal = 0; @endphp @foreach ($order_package->products as $key => $package_product) @if (@$package_product->seller_product_sku->sku->product->product_type == 2) @else @endif @endforeach
{{ __('common.Sl') }} {{ __('product.name') }} {{ __('product.details') }} {{ __('product.price') }} {{ __('product.total') }}
{{$key+1}} {{ @$package_product->seller_product_sku->product->product_name??@$package_product->seller_product_sku->sku->product->product_name }} {{ __('product.qty') }}: {{ getNumberTranslate($package_product->qty) }} @php $countCombinatiion = count(@$package_product->seller_product_sku->product_variations); @endphp @foreach (@$package_product->seller_product_sku->product_variations as $key => $combination) @if ($combination->attribute->id == 1) {{ $combination->attribute->name }}: {{ $combination->attribute_value->color->name }} @else {{ $combination->attribute->name }}: {{ $combination->attribute_value->value }} @endif @if ($countCombinatiion > $key + 1) @endif @endforeach {{__('product.qty') }}: {{ $package_product->qty }}{{ single_price($package_product->price) }} {{ single_price($package_product->price * $package_product->qty) }} @php $subTotal += $package_product->price * $package_product->qty; @endphp
{{ __('product.subtotal') }}: {{single_price($subTotal)}}
@endforeach