|
3 | 3 |
|
4 | 4 | ## {{ __('Thank you for your order!') }} |
5 | 5 |
|
6 | | -Your order has been received and now being processed. Your orders are shown below for your reference: |
7 | | -**Order #{{ $order->getKey() }}** |
| 6 | +{{ __('Your order has been received and now being processed.') }} |
| 7 | +{{ __('Your orders are shown below for your reference: #:order', ['order' => $order->getKey()]) }} |
8 | 8 |
|
9 | | -# Order details |
| 9 | +# {{ __('Order details') }} |
10 | 10 |
|
11 | 11 | <x-mail::table> |
12 | | -| Product | Quantity | Tax | Price | |
13 | | -|:--------|:--------:|:---:|:-----:| |
| 12 | +| {{ __('Product') }} | {{ __('Quantity') }} | {{ __('Price') }} | |
| 13 | +|:--------|:--------:|:-----:| |
14 | 14 | @foreach ($order->items as $item) |
15 | | -| {{ $item->name }} | {{ $item->quantity }} | {{ $item->formattedTax }} | {{ $item->formattedPrice }} | |
| 15 | +| {{ $item->getName() }} | {{ $item->getQuantity() }} | {{ $item->getFormattedPrice() }} | |
16 | 16 | @endforeach |
17 | | -| **Subtotal** ||| {{ $order->formattedSubtotal }} | |
| 17 | +| **{{ __('Subtotal') }}** || {{ $order->getFormattedSubtotal() }} | |
18 | 18 | </x-mail::table> |
19 | 19 |
|
20 | | -**Discount**: {{ $order->formattedDiscount }} |
| 20 | +**{{ __('Discount') }}**: {{ $order->getFormattedTotalDiscount() }} |
21 | 21 |
|
22 | | -**Shipping** ({{ $order->shipping->driverName }}): {{ $order->shipping->formattedTotal }} |
| 22 | +@if($order->needsShipping()) |
| 23 | +**{{ __('Shipping') }}** ({{ $order->shipping->driverName }}): {{ $order->shipping->formattedTotal }} |
| 24 | +@endif |
23 | 25 |
|
24 | | -**Tax**: {{ $order->formattedTax }} |
| 26 | +**{{ __('Tax') }}**: {{ $order->getFormattedTax() }} |
25 | 27 |
|
26 | | -**Subtotal**: {{ $order->formattedSubtotal }} |
| 28 | +**{{ __('Subtotal') }}**: {{ $order->getFormattedSubtotal() }} |
27 | 29 |
|
28 | | -**Gross Total**: {{ $order->formattedTotal }} |
| 30 | +**{{ __('Gross Total') }}**: {{ $order->getFormattedTotal() }} |
29 | 31 |
|
30 | | -# Billing details |
| 32 | +# {{ __('Billing details') }} |
31 | 33 |
|
32 | 34 | {{ $order->address->name }}<br> |
33 | 35 | {{ $order->address->phone }}<br> |
|
0 commit comments