Skip to content

Commit 4f49c30

Browse files
committed
update mail
1 parent 52f9581 commit 4f49c30

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

resources/views/mail/order-details.blade.php

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,33 @@
33

44
## {{ __('Thank you for your order!') }}
55

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()]) }}
88

9-
# Order details
9+
# {{ __('Order details') }}
1010

1111
<x-mail::table>
12-
| Product | Quantity | Tax | Price |
13-
|:--------|:--------:|:---:|:-----:|
12+
| {{ __('Product') }} | {{ __('Quantity') }} | {{ __('Price') }} |
13+
|:--------|:--------:|:-----:|
1414
@foreach ($order->items as $item)
15-
| {{ $item->name }} | {{ $item->quantity }} | {{ $item->formattedTax }} | {{ $item->formattedPrice }} |
15+
| {{ $item->getName() }} | {{ $item->getQuantity() }} | {{ $item->getFormattedPrice() }} |
1616
@endforeach
17-
| **Subtotal** ||| {{ $order->formattedSubtotal }} |
17+
| **{{ __('Subtotal') }}** || {{ $order->getFormattedSubtotal() }} |
1818
</x-mail::table>
1919

20-
**Discount**: {{ $order->formattedDiscount }}
20+
**{{ __('Discount') }}**: {{ $order->getFormattedTotalDiscount() }}
2121

22-
**Shipping** ({{ $order->shipping->driverName }}): {{ $order->shipping->formattedTotal }}
22+
@if($order->needsShipping())
23+
**{{ __('Shipping') }}** ({{ $order->shipping->driverName }}): {{ $order->shipping->formattedTotal }}
24+
@endif
2325

24-
**Tax**: {{ $order->formattedTax }}
26+
**{{ __('Tax') }}**: {{ $order->getFormattedTax() }}
2527

26-
**Subtotal**: {{ $order->formattedSubtotal }}
28+
**{{ __('Subtotal') }}**: {{ $order->getFormattedSubtotal() }}
2729

28-
**Gross Total**: {{ $order->formattedTotal }}
30+
**{{ __('Gross Total') }}**: {{ $order->getFormattedTotal() }}
2931

30-
# Billing details
32+
# {{ __('Billing details') }}
3133

3234
{{ $order->address->name }}<br>
3335
{{ $order->address->phone }}<br>

0 commit comments

Comments
 (0)