diff --git a/app/Http/Controllers/MailController.php b/app/Http/Controllers/MailController.php index 86afc3ceb49cb6df4e9d3a8f1267bcf2fa17dae0..2d049524c0afa281d549bee3d08280ee84c02a08 100644 --- a/app/Http/Controllers/MailController.php +++ b/app/Http/Controllers/MailController.php @@ -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 { diff --git a/resources/lang/de/spende.php b/resources/lang/de/spende.php index 82794c008cd6a34a8ab2774c956fb5f7c21226c0..4b7195945ab16b244e7db75fe37d7ab4c09ea8fb 100644 --- a/resources/lang/de/spende.php +++ b/resources/lang/de/spende.php @@ -11,6 +11,8 @@ return [ 'wunschbetrag' => 'Wunschbetrag', + 'frequency' => 'Häufigkeit', + 'frequency.1' => 'Einmalig', 'frequency.2' => 'Monatlich', 'frequency.3' => 'Vierteljährlich', diff --git a/resources/lang/en/spende.php b/resources/lang/en/spende.php index c990921ab117797db1c6c1c83ee4e3eb17ddb2d9..366bc9c9db373121975a01bf2b3ee0ff377e5204 100644 --- a/resources/lang/en/spende.php +++ b/resources/lang/en/spende.php @@ -13,6 +13,9 @@ return [ 'wunschbetrag' => 'Custom amount', + + 'frequency' => 'Frequency', + 'frequency.1' => 'Once', 'frequency.2' => 'Monthly', 'frequency.3' => 'Quarterly', diff --git a/resources/views/spende/danke.blade.php b/resources/views/spende/danke.blade.php index 436dd1bc6bd7a06eb8aa9f405cb6145f9d95f998..961a1d3965119136a43fad952918b74c5b7be056 100644 --- a/resources/views/spende/danke.blade.php +++ b/resources/views/spende/danke.blade.php @@ -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>