danke.blade.php 3.21 KB
Newer Older
1
2
3
4
5
6
7
@extends('layouts.subPages')

@section('title', $title )

@section('navbarFocus.donate', 'class="dropdown active"')

@section('content')
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<div id="donation-data" class="card">
	<h2>{{ trans('spende.danke.title') }}</h2>
	<p style="width:100%;" class="text-muted">{{ trans('spende.danke.nachricht') }}</p>
	<h3>{{ trans('spende.danke.kontrolle') }}</h3>
	<div>
		@if($data["person"] === "private")
		<div class="data-element">
			<label for="firstname" style="margin-right: 16px;">{{ trans('spende.lastschrift.3f.placeholder')}}</label>
			<input type="text" name="firstname" id="firstname" value="{{ $data['firstname'] }}" readonly>
		</div>
		<div class="data-element">
			<label for="lastname" style="margin-right: 16px;">{{ trans('spende.lastschrift.3l.placeholder')}}</label>
			<input type="text" name="lastname" id="lastname" value="{{ $data['lastname'] }}" readonly>
		</div>
		@else
		<div class="data-element">
			<label for="company" style="margin-right: 16px;">{{ trans('spende.lastschrift.3c.placeholder')}}</label>
			<input type="text" name="company" id="company" value="{{ $data['company'] }}" readonly>
		</div>
		@endif
		@if(!empty($data['email']))
		<div class="data-element">
			<label for="email" style="margin-right: 16px;">Email</label>
			<input type="text" name="email" id="email" value="{{ $data['email'] }}" readonly>
		</div>
		@endif
34
		@if(!empty($data['iban']))
35
36
37
38
		<div class="data-element">
			<label for="iban" style="margin-right: 16px;">{{ trans('spende.iban') }}</label>
			<input type="text" name="iban" id="iban" value="{{ $data['iban'] }}" readonly>
		</div>
39
		@endif
40
41
42
43
44
45
46
47
48
49
		@if(!empty($data["bic"]))
		<div class="data-element">
			<label for="bic" style="margin-right: 16px;">{{ trans('spende.bic') }}</label>
			<input type="text" name="bic" id="bic" value="{{ $data['bic'] }}" readonly>
		</div>
		@endif
		<div class="data-element">
			<label for="betrag" style="margin-right: 16px;">{{ trans('spende.betrag') }}</label>
			<input type="text" name="betrag" id="betrag" value="{{ $data['betrag'] }} €" readonly>
		</div>
50
		@if(!empty($data['frequency']))
51
52
53
54
		<div class="data-element">
			<label for="frequency" style="margin-right: 16px;">{{ trans('spende.frequency') }}</label>
			<input type="text" name="frequency" id="frequency" value="{{ trans('spende.frequency.' . $data['frequency']) }}" readonly>
		</div>
55
		@endif
56
57
58
59
		<div class="data-element">
			<label for="nachricht" style="margin-right: 16px;">{{ trans('spende.danke.message') }}</label>
			<textarea name="nachricht" id="nachricht" readonly>{{ $data['nachricht'] }}</textarea>
		</div>
60
	</div>
61
62
63
64
65
66
67
68
69
70
71
72
	<button type="button" style="margin-top: 16px; margin-bottom: 16px;" class="btn btn-primary noprint js-only" onclick="window.print();">{{ trans('spende.drucken') }}</button>
	@if($data['key'] !== false)
	<div class="card">
		<p style="text-align: center; width:100%;">{!! trans('spende.danke.schluessel') !!}</p>
		<div class="copyLink">
			<input id="key" class="loadSettings" type="text" style="text-align: center;" value="{{ $data['key'] }}">
			<button class="btn btn-default js-only" onclick="var copyText = document.getElementById('key');copyText.select();copyText.setSelectionRange(0, 99999);document.execCommand('copy');">Kopieren</button>
		</div>
	</div>
	@endif
</div>
@endsection