screen where users pick an eligible end‑customer purchase and confirm. Eligibility is enforced server‑side
(endcustomer_event, within 14 days, no event package created after purchase), refund is issued via Paddle, the
purchase is marked refunded, the tenant package is deactivated, and a new confirmation email is sent using resources/
views/emails/partials/layout.blade.php.
Details
- New controller + form request for the confirm flow: app/Http/Controllers/WithdrawalController.php, app/Http/
Requests/Marketing/WithdrawalConfirmRequest.php
- New confirmation page + CTA: resources/js/pages/marketing/WithdrawalConfirm.tsx, resources/js/pages/legal/Show.tsx
- Routes + locale rewrites: routes/web.php, resources/js/lib/localizedPath.ts
- New email notification + template: app/Notifications/Customer/WithdrawalConfirmed.php, resources/views/emails/
withdrawal-confirmation.blade.php
- Translations added for marketing UI + backend flash + email copy: public/lang/de/marketing.json, public/lang/en/
marketing.json, resources/lang/de/marketing.php, resources/lang/en/marketing.php, resources/lang/de/emails.php,
resources/lang/en/emails.php
- Tests: tests/Feature/Marketing/WithdrawalConfirmationTest.php
40 lines
2.0 KiB
PHP
40 lines
2.0 KiB
PHP
@extends('emails.partials.layout')
|
|
|
|
@section('title', $subject)
|
|
@section('preheader', __('emails.withdrawal_confirmation.preheader', ['package' => $packageName]))
|
|
@section('hero_title', $greeting)
|
|
@section('hero_subtitle', __('emails.withdrawal_confirmation.subtitle', ['package' => $packageName]))
|
|
|
|
@section('content')
|
|
<p style="margin:0 0 16px; font-size:15px; color:#0f172a;">
|
|
{{ __('emails.withdrawal_confirmation.body', ['package' => $packageName]) }}
|
|
</p>
|
|
|
|
<table role="presentation" width="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin:0 0 16px;">
|
|
<tr>
|
|
<td style="padding:10px 0; font-size:14px; color:#6b7280;">{{ __('emails.withdrawal_confirmation.package_label') }}</td>
|
|
<td style="padding:10px 0; font-size:14px; color:#0f172a; text-align:right;">{{ $packageName }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:10px 0; font-size:14px; color:#6b7280;">{{ __('emails.withdrawal_confirmation.amount_label') }}</td>
|
|
<td style="padding:10px 0; font-size:14px; color:#0f172a; text-align:right;">{{ $amount }} {{ $currency }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:10px 0; font-size:14px; color:#6b7280;">{{ __('emails.withdrawal_confirmation.transaction_label') }}</td>
|
|
<td style="padding:10px 0; font-size:14px; color:#0f172a; text-align:right;">{{ $providerId }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="padding:10px 0; font-size:14px; color:#6b7280;">{{ __('emails.withdrawal_confirmation.confirmed_label') }}</td>
|
|
<td style="padding:10px 0; font-size:14px; color:#0f172a; text-align:right;">{{ $confirmedAt->locale(app()->getLocale())->isoFormat('LLL') }}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p style="margin:0; font-size:14px; color:#6b7280;">
|
|
{{ __('emails.withdrawal_confirmation.processing_hint') }}
|
|
</p>
|
|
@endsection
|
|
|
|
@section('footer')
|
|
{!! __('emails.withdrawal_confirmation.footer') !!}
|
|
@endsection
|