|
|
| {{ translate('Billing address') }}: |
| @isset($order->address->address) {{ $order->address->address }}, @endisset |
| @isset($order->address->landmark) {{ $order->address->landmark }}, @endisset |
| @isset($order->address->level_id)
@php
$request = 'en';
$level = shipping_address_details($request, $order->address->level_id);
@endphp
@if (!empty($level['child']))
{{ $level['child'] }}, @endif @if (!empty($level['parent'])) {{ $level['parent'] }}, @endif @if (!empty($level['grand_parent'])) {{ $level['grand_parent'] }}, @endif @endisset |
| {{ translate('Phone') }}: @isset($order->user->phone) {{ $order->user->phone }} @endisset |
| {{ translate('Shipping address') }}: |
| @isset($order->address->address) {{ $order->address->address }}, @endisset |
| @isset($order->address->landmark) {{ $order->address->landmark }}, @endisset |
| @isset($order->address->level_id)
@php
$request = 'en';
$level = shipping_address_details($request, $order->address->level_id);
@endphp
@if (!empty($level['child']))
{{ $level['child'] }}, @endif @if (!empty($level['parent'])) {{ $level['parent'] }}, @endif @if (!empty($level['grand_parent'])) {{ $level['grand_parent'] }}, @endif @endisset |
| {{ translate('Phone') }}: @isset($order->user->phone) {{ $order->user->phone }} @endisset |
| {{ translate('S/L') }} | {{ translate('Product Name') }} | {{ translate('Qty') }} | {{ translate('Mrp') }} | {{ translate('Offer Price') }} | {{ translate('Total') }} |
| {{ $key + 1 }} | {{ $orderDetail->product->name }} @if ($orderDetail->variation && $orderDetail->variation->combinations->count() > 0) @foreach ($orderDetail->variation->combinations as $combination) {{ $combination->attribute->name }}: {{ $combination->attributeValue->attribute_value }} @endforeach @endif | {{ $orderDetail->quantity }} | {{ decimal_price($orderDetail->mrp) }} {{ get_currency_symbol() }} | {{ decimal_price($orderDetail->offer_price) }} {{ get_currency_symbol() }} | @php $priceToUse = $orderDetail->offer_price == 0 || $orderDetail->offer_price === null ? $orderDetail->mrp : $orderDetail->offer_price; @endphp{{ decimal_price($orderDetail->quantity * $priceToUse) }} {{ get_currency_symbol() }} |
| {{ translate('Total Amount') }} | {{ decimal_price($order->total_amount + ($order->discount_rate ?? $order->discount_rate)) }} {{ get_currency_symbol() }} |
| {{ translate('Taxable Value') }} | {{ decimal_price($order->sub_total_amount - (float) $order->tax) }} {{ get_currency_symbol() }} |
| {{ translate('Total Tax') }} | {{ decimal_price($order->tax) }} {{ get_currency_symbol() }} |
| {{ $tax['key'] }} ({{ $tax['percentage'] }}) | {{ decimal_price($tax['value']) }} {{ get_currency_symbol() }} |
| {{ translate('Shipping Cost') }} | {{ decimal_price($order->delivery_charge) }} {{ get_currency_symbol() }} |
| {{ translate('Coupon Discount') }}({{ $order->discount_percentage }}%) | {{ decimal_price($order->discount_rate) }} {{ get_currency_symbol() }} |
| {{ translate('Grand Total') }} | {{ decimal_price($order->total_amount) }} {{ get_currency_symbol() }} |