<!-- content_cash_desk/payments.tpl -->
<div class="arrow_title">Zahlungsweise / Zahlungsarten</div>
<br />

{foreach item=pMethod from=$payment_methods name=pMethodLoop}
	{if $pMethod->activeType > 0}
		<div style="{if !$smarty.foreach.pMethodLoop.last}border-bottom:#A4A4A4 1px solid;{/if}padding:15px 0px;">
			<div style="float:left;"><input type="radio" name="payment_method" value="{$pMethod->id}" {if $personal_data.payment_method == $pMethod->id || $smarty.foreach.pMethodLoop.first}checked{/if} /></div>
			<div style="float:left;margin-left:10px;font-weight:bold;width:350px;">
				{$pMethod->name}
				{if $pMethod->helperjoinkey == 'klarna_raten'}
					{foreach item=rate from=$klarna_installments}
						<br /><span style="font-size:16px;color:#009fe3;">{$rate.months} Monatsraten zu je  {$rate.monthly_costs|number_format:"2":",":"."} &euro; / Monat</span><br />
					{/foreach}
				{/if}
			</div>
			
			{if $pMethod->helperjoinkey == 'klarna_rechnung'}<img src="{$THEME_DIR}/media/images/content/klarna_rechnung.png" />{/if}
				{if $pMethod->helperjoinkey == 'klarna_raten'}<img src="{$THEME_DIR}/media/images/content/klarna_ratenkauf.png" />{/if}
			<div style="float:right;text-align:right;">
				{if $pMethod->paymentAdd != 0}
					{if $pMethod->accountType == '0'}
						<span class="payment_type_text">Aufschlag in Euro</span>
					{elseif $pMethod->accountType == '1'}
						<span class="payment_type_text">Abschlag in Euro</span>
					{elseif $pMethod->accountType == '2'}
						<span class="payment_type_text">Prozentualer Aufschlag</span>
					{elseif $pMethod->accountType == '3'}
						<span class="payment_type_text">Prozentualer Abschlag</span>
					{/if}
				{/if}
				<br />
			
				{*
				{if $pMethod->paymentAdd != 0}
					{if $pMethod->accountType == '0'}
						<strong>zzgl. {$pMethod->paymentAdd|number_format:"2":",":"."} &euro;</strong>
					{elseif $pMethod->accountType == '1'}
						<strong>abzgl. {$pMethod->paymentAdd|number_format:"2":",":"."} &euro;</strong>
					{elseif $pMethod->accountType == '2'}
						<strong>zzgl. {$pMethod->paymentAdd|number_format:"2":",":"."} %</strong>
					{elseif $pMethod->accountType == '3'}
						<strong>abzgl. {$pMethod->paymentAdd|number_format:"2":",":"."} %</strong>
					{/if}
				{else}
					kostenlos
				{/if}
				*}
				{if $pMethod->paymentAdd != 0}
					{if $pMethod->accountType == '0'}
						<strong>zzgl. {$pMethod->paymentAdd|number_format:"2":",":"."} &euro;</strong>
					{elseif $pMethod->accountType == '1'}
						<strong>abzgl. {$pMethod->paymentAdd|number_format:"2":",":"."} &euro;</strong>
					{elseif $pMethod->accountType == '2'}
						<strong>zzgl. {$pMethod->rawAdd|number_format:"2":",":"."} %</strong>
					{elseif $pMethod->accountType == '3'}
						<strong>abzgl. {$pMethod->rawAdd|number_format:"2":",":"."} %</strong>
					{/if}
				{else}
					kostenlos
				{/if}
			</div>
			
			
			{if $pMethod->id == $payment_method_feedback.payment_method && $payment_method_feedback.message != ''}
				<div style="clear:both;padding-top:10px;color:red;margin-left:30px;margin-right:70px;">
					{$payment_method_feedback.message}
				</div>
			{/if}

			<br style="clear:both;" />
		</div>
	{/if}
{/foreach}
