|
- <?php
-
- namespace App\Email\Guests;
-
- use App\Models\ReceiptIssuingOrder;
- use Illuminate\Support\Carbon;
-
- class ReceiptA4 extends Guest
- {
-
- /**
- * Create a new message instance.
- *
- * @return void
- */
- public function __construct(private ReceiptIssuingOrder $order)
- {
- }
-
- public function getTemplateName(): string
- {
- return 'emails.guests.receipt_a4';
- }
-
- public function getSubject(): string
- {
- return sprintf('領収証の送付 %s', $this->order->receipt_no);
- }
-
- public function getGuestParams(): array
- {
- return [
- 'shopName' => $this->order->receipt_shop_name,
- 'useDate' => $this->order->receipt_use_date->format('Y/m/d'),
- 'amount' => number_format($this->order->receipt_amount),
- ];
- }
- }
|