Commit db560ae6 authored by Phil Höfer's avatar Phil Höfer
Browse files

Integrate New Donation Page Into MailController

parent c3b3b5eb
......@@ -83,13 +83,15 @@ class MailController extends Controller
'iban' => $request->input('iban', ''),
'bic' => $request->input('bic', ''),
'email' => $request->input('email', ''),
'betrag' => $request->input('Betrag', ''),
'betrag' => $request->input('amount', ''),
'betrag' => $request->input('frequency', ''),
'nachricht' => $request->input('Nachricht', ''),
];
$name = $request->input('Name', '');
$iban = $request->input('iban', '');
$bic = $request->input('bic', '');
$email = $request->input('email', '');
$frequency = $request->input('frequency', '');
$betrag = $request->input('Betrag', '');
$nachricht = $request->input('Nachricht', '');
......@@ -140,6 +142,7 @@ class MailController extends Controller
}
$message .= "\r\nBetrag: " . $betrag;
$message .= "\r\nHäufigkeit: " . $frequency;
$message .= "\r\nNachricht: " . $nachricht;
try {
......
......@@ -11,6 +11,8 @@ return [
'wunschbetrag' => 'Wunschbetrag',
'frequency' => 'Häufigkeit',
'frequency.1' => 'Einmalig',
'frequency.2' => 'Monatlich',
'frequency.3' => 'Vierteljährlich',
......
......@@ -13,6 +13,9 @@ return [
'wunschbetrag' => 'Custom amount',
'frequency' => 'Frequency',
'frequency.1' => 'Once',
'frequency.2' => 'Monthly',
'frequency.3' => 'Quarterly',
......
......@@ -32,6 +32,10 @@
<td>{{ trans('spende.betrag') }}</td>
<td>{{ $data['betrag'] }} </td>
</tr>
<tr>
<td>{{ trans('spende.frequency') }}</td>
<td>{{ $data['frequency'] }} </td>
</tr>
<tr>
<td>{{ trans('spende.danke.message') }}</td>
<td>{{ $data['nachricht'] }}</td>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment