mivita/resources/views/emails/withdrawal_confirmation.blade.php
Kevin 63c36555a5 Widerruf: Gesetzliche Online-Widerrufsfunktion (Formular, Bestätigungsmail, Admin-Verwaltung)
- Ö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>
2026-07-08 15:56:02 +00:00

131 lines
6.1 KiB
PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mivita.care</title>
<style type="text/css">
body {
-webkit-font-smoothing: antialiased;
width: 100%;
color: #37302d;
background: #f8f8f8;
font-size: 15px;
line-height: 26px;
}
td, h1, h2, h3 {
font-family: Helvetica, Verdana, Arial, sans-serif;
font-weight: 400;
}
.headline {
color: #37302d;
font-size: 18px;
}
.sub_headline {
color: #788662;
font-size: 15px;
}
hr {
border: none;
border-top: 1px solid #b7c59e;
}
.info-box {
padding: 20px;
border: 1px solid #eee;
background-color: #f6fdf5;
line-height: 1.6em;
}
</style>
</head>
<body style="padding:0; margin:0; background:#f8f8f8;" bgcolor="#f8f8f8">
<table align="left" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td align="left" valign="top" bgcolor="#f8f8f8" width="100%">
<br>
<table style="margin: 0 auto;" cellpadding="0" cellspacing="0" width="700">
<tr>
<td align="center" valign="top">
<img src="https://my.mivita.care/images/logo_mivita.png" alt="mivita.care" style="border:none" width="230">
<br><br>
</td>
</tr>
<tr>
<td>
<table cellpadding="10" style="padding: 10px;" cellspacing="0" border="0" width="100%" bgcolor="#ffffff">
<tr>
<td class="headline">
<b>{{ __('withdrawal.mail_hello') }} {{ $withdrawal->customer_name ?: '' }},</b>
</td>
</tr>
<tr>
<td style="color:#37302d; line-height:1.6em;">
{{ __('withdrawal.mail_intro') }}
</td>
</tr>
<tr>
<td>
<table class="info-box" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td>
<b>{{ __('withdrawal.mail_received_at') }}:</b>
{{ optional($withdrawal->declared_at)->format('d.m.Y H:i') }} {{ __('withdrawal.clock') }}<br>
<b>{{ __('withdrawal.mail_order_number') }}:</b> #{{ $withdrawal->order_reference }}<br>
<b>{{ __('withdrawal.mail_reference') }}:</b> {{ $withdrawal->id }}<br>
<b>{{ __('withdrawal.mail_scope') }}:</b>
@if ($withdrawal->isFullWithdrawal())
{{ __('withdrawal.scope_full') }}
@else
{{ __('withdrawal.scope_partial') }}
@endif
</td>
</tr>
</table>
</td>
</tr>
@if (! empty($withdrawal->items))
<tr>
<td class="sub_headline"><hr><b>{{ __('withdrawal.mail_items_hl') }}</b></td>
</tr>
<tr>
<td>
<table class="info-box" cellpadding="2" cellspacing="0" width="100%">
@foreach ($withdrawal->items as $item)
<tr>
<td>{{ $item['qty'] }} &times; {{ $item['name'] }}</td>
</tr>
@endforeach
</table>
</td>
</tr>
@endif
@if ($withdrawal->reason)
<tr>
<td style="color:#37302d; line-height:1.6em;">
<hr>{{ $withdrawal->reason }}
</td>
</tr>
@endif
<tr>
<td style="color:#37302d; line-height:1.6em;">
<hr>{{ __('withdrawal.mail_outro') }}
<br><br>
{{ __('withdrawal.mail_greetings') }}<br>
<b>{{ __('withdrawal.mail_sender') }}</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="color:#7B7B7E; font-size:12px; text-align: center; padding-top: 16px;" align="center">
mivita care gmbh &bull; Leinfeld 2 &bull; 87755 Kirchhaslach<br>
<a href="https://www.mivita.care" style="color: #7B7B7E;">www.mivita.care</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>