- Öffentliches Widerrufsformular /widerruf mit Bestell-Lookup (throttled) - Bestätigungsmail an Kunde + Weiterleitung an bestellungen@ (config app.withdrawal_mail) - Admin-Übersicht/-Detail unter /admin/withdrawals inkl. Sidenav-Eintrag - Widerruf-Button in Portal-Bestellansicht und Footer-Links - Model OrderWithdrawal + Migration + Factory + Tests Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
31 lines
751 B
PHP
31 lines
751 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\OrderWithdrawal;
|
|
use App\Models\ShoppingOrder;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MailWithdrawalConfirmation extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $subject;
|
|
|
|
public function __construct(
|
|
public OrderWithdrawal $withdrawal,
|
|
public ?ShoppingOrder $shopping_order = null
|
|
) {
|
|
$this->subject = __('withdrawal.mail_subject').' - mivita.care';
|
|
}
|
|
|
|
public function build(): self
|
|
{
|
|
return $this->view('emails.withdrawal_confirmation')->with([
|
|
'withdrawal' => $this->withdrawal,
|
|
'shopping_order' => $this->shopping_order,
|
|
]);
|
|
}
|
|
}
|