spende.blade.php 10.9 KB
Newer Older
1
2
3
4
@extends('layouts.subPages')

@section('title', $title )

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

7
@section('content')
8
9
	<div id="donation">
		<div class="section">
10
11
12
13
14
			<h1>@lang('spende.headline.1')</h1>
			<p>@lang('spende.headline.2', [
				'aboutlink' => LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), '/about'),
				'beitrittlink' => LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), '/beitritt')
				])</p>
15
		</div>
16
		<div class="two-col">
Kim Höfer's avatar
Kim Höfer committed
17
18

			@if (app('request')->input('method') == "paypal")
Kim Höfer's avatar
Kim Höfer committed
19
			<form class="col-left" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
Kim Höfer's avatar
Kim Höfer committed
20
21
22
			<div class="section">
				<h3>{!! trans('spende.headline.5') !!}</h3>
				
23
24
25
26
27
				<div id="payment-methods">
					<a class="payment-label" href="?method=debit">{!! trans('spende.head.lastschrift') !!}</a>
					<a class="payment-label" href="?method=bank-transfer">{!! trans('spende.ueberweisung') !!}</a>
					<a class="payment-label payment-label-selected" href="?method=paypal">{!! trans('spende.paypal') !!}</a>
				</div>
Kim Höfer's avatar
Kim Höfer committed
28
29
				
				<p><br>{!! trans('spende.paypal.1') !!}</p>
Kim Höfer's avatar
Kim Höfer committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
					<div class="center-wrapper">
						@if (LaravelLocalization::getCurrentLocale() == "de")
							<input type="hidden" name="lc" value="{{ Request::getPreferredLanguage([]) }}">
							<input type="hidden" name="cmd" value="_s-xclick" />
							<input type="hidden" name="hosted_button_id" value="5JPHYQT88JSRQ" />
							<input type="image" src="{{ action('Pictureproxy@get', ['url' => 'https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donateCC_LG.gif']) }}" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
							<img alt="" border="0" src="{{ action('Pictureproxy@get', ['url' => 'https://www.paypal.com/de_DE/i/scr/pixel.gif']) }}" width="1" height="1" />
						@else
							<input type="hidden" name="lc" value="{{ Request::getPreferredLanguage([]) }}">
							<input type="hidden" name="cmd" value="_s-xclick" />
							<input type="hidden" name="hosted_button_id" value="LXWAVD6P3ZSWG" />
							<input type="image" src="{{ action('Pictureproxy@get', ['url' => 'https://www.paypalobjects.com/en_US/DK/i/btn/btn_donateCC_LG.gif']) }}" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
							<img alt="" border="0" src="{{ action('Pictureproxy@get', ['url' => 'https://www.paypal.com/en_DE/i/scr/pixel.gif']) }}" width="1" height="1" />
						@endif
					</div>

				</div>
				
			@elseif ((app('request')->input('method') == "bank-transfer"))
Kim Höfer's avatar
Kim Höfer committed
49
			<form class="col-left" method="post">
50
				<div class="section">
Kim Höfer's avatar
Kim Höfer committed
51
				<h3>{!! trans('spende.headline.5') !!}</h3>
52
53
54
55
56
				<div id="payment-methods">
					<a class="payment-label" href="?method=debit">{!! trans('spende.head.lastschrift') !!}</a>
					<a class="payment-label payment-label-selected" href="?method=bank-transfer">{!! trans('spende.ueberweisung') !!}</a>
					<a class="payment-label" href="?method=paypal">{!! trans('spende.paypal') !!}</a>
				</div>
Kim Höfer's avatar
Kim Höfer committed
57
58
59
60
61
62
63
64
65
66
				<p>
				<br>{!! trans('spende.bankinfo.1') !!} <br>
				<br>{!! trans('spende.bankinfo.2') !!}
				<br>{!! trans('spende.bankinfo.2.1') !!}
				<br>{!! trans('spende.bankinfo.2.2') !!}
				<br>{!! trans('spende.bankinfo.2.3') !!}
				<br>{!! trans('spende.bankinfo.2.4') !!}<br>
				<br>{!! trans('spende.bankinfo.3') !!}
				</p>
					</div>
Kim Höfer's avatar
Kim Höfer committed
67
			@else
Kim Höfer's avatar
Kim Höfer committed
68
			<form class="col-left" method="post">
Kim Höfer's avatar
Kim Höfer committed
69
70
71
				<div class="section">
				<h3>{!! trans('spende.headline.5') !!}</h3>

72
73
74
75
76
				<div id="payment-methods">
					<a class="payment-label payment-label-selected" href="?method=debit"><nobr>{!! trans('spende.head.lastschrift') !!}</nobr></a>
					<a class="payment-label" href="?method=bank-transfer"><nobr>{!! trans('spende.ueberweisung') !!}</nobr></a>
					<a class="payment-label" href="?method=paypal"><nobr>{!! trans('spende.paypal') !!}</nobr></a>
				</div>
Kim Höfer's avatar
Kim Höfer committed
77
					<h3>{!! trans('spende.headline.3') !!}</h3>
78
						<div class="amount-row">
79
80
81
82
83
84
85
86
87
88
							<input type="radio" value="5" class="amount-radio" name="amount" id="amount-5euro" required="required" @if(empty($data) || $data["betrag"] === "5")checked="checked"@endif> <label for="amount-5euro" class="amount-label">5</label> 
							<input type="radio" value="10" class="amount-radio" name="amount" id="amount-10euro" required="required" @if(!empty($data) && $data["betrag"] === "10")checked="checked"@endif><label for="amount-10euro" class="amount-label">10</label>
							<input type="radio" value="15" class="amount-radio" name="amount" id="amount-15euro" required="required" @if(!empty($data) && $data["betrag"] === "15")checked="checked"@endif><label for="amount-15euro" class="amount-label">15</label>
							<input type="radio" value="20" class="amount-radio" name="amount" id="amount-20euro" required="required" @if(!empty($data) && $data["betrag"] === "20")checked="checked"@endif><label for="amount-20euro" class="amount-label">20</label>
							<input type="radio" value="25" class="amount-radio" name="amount" id="amount-25euro" required="required" @if(!empty($data) && $data["betrag"] === "15")checked="checked"@endif><label for="amount-25euro" class="amount-label">25</label>
							<input type="radio" value="50" class="amount-radio" name="amount" id="amount-50euro" required="required" @if(!empty($data) && $data["betrag"] === "50")checked="checked"@endif><label for="amount-50euro" class="amount-label">50</label>
							<input type="radio" value="100" class="amount-radio" name="amount" id="amount-100euro" required="required" @if(!empty($data) && $data["betrag"] === "100")checked="checked"@endif><label for="amount-100euro" class="amount-label">100</label>
							<input type="radio" value="200" class="amount-radio" name="amount" id="amount-200euro" required="required" @if(!empty($data) && $data["betrag"] === "200")checked="checked"@endif><label for="amount-200euro" class="amount-label">200</label>
							<input type="radio" value="250" class="amount-radio" name="amount" id="amount-250euro" required="required" @if(!empty($data) && $data["betrag"] === "250")checked="checked"@endif><label for="amount-250euro" class="amount-label">250</label>
 							<input type="radio" value="300" class="amount-radio" name="amount" id="amount-300euro" required="required" @if(!empty($data) && $data["betrag"] === "300")checked="checked"@endif><label for="amount-300euro" class="amount-label">300</label>
89
						</div>
Kim Höfer's avatar
Kim Höfer committed
90
						<div class="custom-amount-container"> 
91
							<input type="radio" name="amount" id="amount-custom" value="custom" required="required" @if(!empty($data) && $data["betrag"] === "custom")checked="checked"@endif><label for="amount-custom" class="amount-custom">{!! trans('spende.wunschbetrag') !!}</label> <input id="custom-amount" type="number" name="custom-amount" min="0" step=".01" placeholder="@lang('spende.wunschbetrag.placeholder')" value="">
92
93
						</div>
					
Kim Höfer's avatar
Kim Höfer committed
94
					<h3>{!! trans('spende.headline.4') !!}</h3>
95
96
97
98
99
100
101
					<div id="frequency">
						<input type="radio" class="frequency-radio" name="frequency" id="once" value="once" required="required" @if(empty($data) || $data["frequency"] === "once")checked="checked"@endif><label class="frequency-label" for="once"><nobr>{!! trans('spende.frequency.1') !!}</nobr></label>
						<input type="radio" class="frequency-radio" name="frequency" id="monthly" value="monthly" required="required" @if(!empty($data) && $data["frequency"] === "monthly")checked="checked"@endif><label class="frequency-label" for="monthly"><nobr>{!! trans('spende.frequency.2') !!}</nobr></label> 
						<input type="radio" class="frequency-radio" name="frequency" id="quarterly" value="quarterly" required="required" @if(!empty($data) && $data["frequency"] === "quarterly")checked="checked"@endif><label class="frequency-label" for="quarterly"><nobr>{!! trans('spende.frequency.3') !!}</nobr></label>
						<input type="radio" class="frequency-radio" name="frequency" id="six-monthly" value="six-monthly" required="required" @if(!empty($data) && $data["frequency"] === "six-monthly")checked="checked"@endif><label class="frequency-label" for="six-monthly"><nobr>{!! trans('spende.frequency.4') !!}</nobr></label> 
						<input type="radio" class="frequency-radio" name="frequency" id="annual" value="annual" required="required" @if(!empty($data) && $data["frequency"] === "annual")checked="checked"@endif><label class="frequency-label" for="annual"><nobr>{!! trans('spende.frequency.5') !!}</nobr></label>
					</div>
102
					<h3>{!! trans('spende.headline.6') !!}</h3>
Kim Höfer's avatar
Kim Höfer committed
103
					<p>{!! trans('spende.lastschrift.2') !!}</p>
Kim Höfer's avatar
Kim Höfer committed
104
105
106
					<input type="hidden" name="dt" value="{{ md5(date('Y') . date('m') . date('d')) }}">
					<div class="form-group donation-form-group">
					<label for="Name">*{!! trans('spende.lastschrift.3') !!}</label>
Kim Höfer's avatar
Kim Höfer committed
107
					<input type="text" required="required" class="form-control" id="Name" name="Name" placeholder="{!! trans('spende.lastschrift.3.placeholder') !!}" @if(isset($data['name'])) value="{{$data['name']}}" @endif />
Kim Höfer's avatar
Kim Höfer committed
108
109
110
111
112
113
114
					</div>
					<div class="form-group donation-form-group">
					<label for="email">{!! trans('spende.lastschrift.4') !!}</label>
					<input type="email" class="form-control" id="email" name="email" placeholder="Email" @if(isset($data['email'])) value="{{$data['email']}}" @endif>
					</div>
					<div class="form-group donation-form-group">
					<label for="iban">*{!! trans('spende.lastschrift.6') !!}</label>
Kim Höfer's avatar
Kim Höfer committed
115
					<input type="text" required="required" class="form-control" id="iban" name="iban" placeholder="IBAN" @if(isset($data['iban'])) value="{{$data['iban']}}" @endif>
Kim Höfer's avatar
Kim Höfer committed
116
117
118
					</div>
					<div class="form-group donation-form-group">
					<label for="bic">{!! trans('spende.lastschrift.7') !!}</label>
119
					<input type="text" class="form-control" id="bic" name="bic" placeholder="BIC" @if(isset($data['bic'])) value="{{$data['bic']}}" @endif>
Kim Höfer's avatar
Kim Höfer committed
120
121
122
123
124
					</div>
					<div class="form-group donation-form-group">
					<label for="msg">{!! trans('spende.lastschrift.8.message')!!}</label>
					<p>{!! trans('spende.bankinfo.3')!!}</p>
					<textarea class="form-control" id="msg" name="Nachricht" placeholder="{!! trans('spende.lastschrift.8.message.placeholder') !!}">@if(isset($data['nachricht'])){{$data['nachricht']}}@endif</textarea>
Kim Höfer's avatar
Kim Höfer committed
125
					</div>
Kim Höfer's avatar
Kim Höfer committed
126
					<input  id="donate-button" type="submit" value="{!! trans('spende.submit') !!}">
Kim Höfer's avatar
Kim Höfer committed
127
				</div>	
Kim Höfer's avatar
Kim Höfer committed
128
				@endif
Kim Höfer's avatar
Kim Höfer committed
129
				</form>
130
			<div class="col-right">
Kim Höfer's avatar
Kim Höfer committed
131
			
132
				
133
				<div class="section">
134
135
					<p>{!! trans('spende.lastschrift.10') !!}</p> </div>
					<div class="section">
Kim Höfer's avatar
Kim Höfer committed
136
137
					<h3>{!! trans('spende.member.1') !!}</h3>
					<p>{!! trans('spende.member.2') !!}</p>
138
					<ul>
Kim Höfer's avatar
Kim Höfer committed
139
140
141
142
					<li>{!! trans('spende.member.3') !!}</li>
					<li>{!! trans('spende.member.4') !!}</li>
					<li>{!! trans('spende.member.5') !!}</li>
					<li>{!! trans('spende.member.6') !!}</li>
143
					</ul>
Kim Höfer's avatar
Kim Höfer committed
144
					<a class="btn btn-default" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/beitritt/") }}">{!! trans('spende.member.7') !!}</a>
145
				</div>	
146
		</div>
147
	
148
	</div>
149

150
@endsection