<div class="col-lg-9 order-is-first">
	<div class="block transparent">
		<div class="block_head">
			Пополнить баланс
		</div>

		{if('{success}' == '1')}
		<div class="noty-block success">
			<h4>Ваш баланс успешно пополнен!</h4>
			<p><b>{login}</b>, Ваш баланс успешно пополнен!</p>
		</div>
		{/if}
		{if('{fail}' == '1')}
		<div class="noty-block error">
			<h4>Внимание! Ваш баланс не пополнен!</h4>
			<p>Возможно произошла ошибка, либо Вы отменили платеж.</p>
		</div>
		{/if}

		<div class="row pay_area">
			{if('{rb}' == '1')}
			<div class="col-md-6">
				<div class="block">
					<div class="block_head">
						RoboKassa - Yandex, QIWI, VISA/MacterCard и т.д.
					</div> 
					<label for="number_rb">
						<img src="../templates/{template}/img/robokassa.jpg" alt="RoboKassa">
					</label>
					<div class="fix-box">
						<input class="form-control personal" id="number_rb" placeholder="УКАЖИТЕ СУММУ" value="{pirce}">
					</div>
					<div id="balance_result_rb" class="mt-3"></div>
					<button class="btn btn-outline-primary" onclick="refill_balance('rb');">Пополнить баланс</button>
				</div>
			</div>
			{/if}

			{if('{wb}' == '1')}
			<div class="col-md-6">
				<div class="block">
					<div class="block_head">
						WebMoney - без комиссии
					</div>
					<label for="number_wb">
						<img src="../templates/{template}/img/webmoney.jpg" alt="WebMoney">
					</label>
					<div class="fix-box">
						<input class="form-control personal" id="number_wb" placeholder="УКАЖИТЕ СУММУ" value="{pirce}">
					</div>
					<div id="balance_result_wb" class="mt-3"></div>
					<button class="btn btn-outline-primary" onclick="refill_balance('wb');">Пополнить баланс</button>
				</div>
			</div>
			{/if}

			{if('{fk}' == '1')}
			<div class="col-md-6">
				<div class="block">
					<div class="block_head">
						Free-Kassa - QIWI, VISA/MacterCard, SMS и т.д.
					</div> 
					<label for="number_fk">
						<img src="../templates/{template}/img/freekassa.jpg" alt="Free-Kassa">
					</label>
					<div class="fix-box">
						<input class="form-control personal" id="number_fk" placeholder="УКАЖИТЕ СУММУ" value="{pirce}">
					</div>
					<div id="balance_result_fk" class="mt-3"></div>
					<button class="btn btn-outline-primary" onclick="refill_balance('fk');">Пополнить баланс</button>
				</div>
			</div>
			{/if}

			{if('{up}' == '1')}
			<div class="col-md-6">
				<div class="block">
					<div class="block_head">
						UnitPay - Теле2, Мегафон, МТС, Билаин, Qiwi, Yandex, VISA/MacterCard, Liqpay и т.д.
					</div>
					<label for="number_up">
						<img src="../templates/{template}/img/unitpay.jpg" alt="UnitPay">
					</label>
					<div class="fix-box">
						<input class="form-control personal" id="number_up" placeholder="УКАЖИТЕ СУММУ" value="{pirce}">
					</div>
					<div id="balance_result_up" class="mt-3"></div>
					<button class="btn btn-outline-primary" onclick="refill_balance('up');">Пополнить баланс</button>
				</div>
			</div>
			{/if}

			{if('{ya}' == '1')}
			<div class="col-md-6">
				<div class="block">
					<div class="block_head">
						YandexMoney - Яндекс.Деньги, Банковские карты
					</div>
					<label for="number_ya">
						<img src="../templates/{template}/img/yandexmoney.jpg" alt="YandexMoney">
					</label>
					<div class="fix-box">
						<input class="form-control personal" id="number_ya" placeholder="УКАЖИТЕ СУММУ" value="{pirce}">
					</div>
					<div id="balance_result_ya" class="mt-3"></div>
					<button class="btn btn-outline-primary" onclick="refill_balance('ya');">Пополнить баланс</button>
				</div>
			</div>
			{/if}

			{if('{ik}' == '1')}
			<div class="col-md-6">
				<div class="block">
					<div class="block_head">
						InterKassa - Qiwi, Yandex, VISA/MacterCard, WebMoney и т.д.
					</div>
					<label for="number_ik">
						<img src="../templates/{template}/img/interkassa.jpg" alt="InterKassa">
					</label>
					<div class="fix-box">
						<input class="form-control personal" id="number_ik" placeholder="УКАЖИТЕ СУММУ" value="{pirce}">
					</div>
					<div id="balance_result_ik" class="mt-3"></div>
					<button class="btn btn-outline-primary" onclick="refill_balance('ik');">Пополнить баланс</button>
				</div>
			</div>
			{/if}

			{if('{wo}' == '1')}
			<div class="col-md-6">
				<div class="block">
					<div class="block_head">
						WalletOne - Qiwi, Yandex, VISA/MacterCard, WebMoney и т.д.
					</div>
					<label for="number_wo">
						<img src="../templates/{template}/img/walletone.jpg" alt="WalletOne">
					</label>
					<div class="fix-box">
						<input class="form-control personal" id="number_wo" placeholder="УКАЖИТЕ СУММУ" value="{pirce}">
					</div>
					<div id="balance_result_wo" class="mt-3"></div>
					<button class="btn btn-outline-primary" onclick="refill_balance('wo');">Пополнить баланс</button>
				</div>
			</div>
			{/if}

			{if('{ps}' == '1')}
			<div class="col-md-6">
				<div class="block">
					<div class="block_head">
						Paysera
					</div>
					<label for="number_ps">
						<img src="../templates/{template}/img/paysera.jpg" alt="Paysera">
					</label>
					<div class="fix-box">
						<input class="form-control personal" id="number_ps" placeholder="УКАЖИТЕ СУММУ" value="{pirce}">
					</div>
					<div id="balance_result_ps" class="mt-3"></div>
					<button class="btn btn-outline-primary" onclick="refill_balance('ps');">Пополнить баланс</button>
				</div>
			</div>
			{/if}
		</div>
	</div>

	<div class="block transparent" id="last_operations">
		<div class="block_head">
			Последние операции
		</div>

		<div class="block-min">
			<div class="table-responsive mb-0 block-body">
				<table class="table">
					<thead>
						<tr>
							<td>Сумма</td>
							<td>Тип</td>
							<td>Дата</td>
						</tr>
					</thead>
					<tbody id="operations">
						<tr>
							<td colspan="10">
								<div class="loader"></div>
								<script>get_operations();</script>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>

<div class="col-lg-3 order-is-last">
	{include file="/home/navigation.tpl"}
	{include file="/home/sidebar.tpl"}
</div>