<div class="container only_hand_close" id="basket">
	<form name="receipt_pay_form_{{@p.id}}" id="basket_pay_form" class="receipt_pay_form" method="POST" action="/receipts/sales">
		<div id="receipts_buttons" href="{{@URI}}">
			<div class="reload">
				<table width="100%" height="100%">
					<tr>
						<td valign="bottom">
							<div class="tab_page_select">
								{~@p=@paymentmethods[array_search(0, array_column(@paymentmethods, 'cash'))]~}
								<div id="basket_select_epay" align="center">
									<div class="container">
										<input type="hidden" name="client_sum[{{@p.id}}]" class="client_sum" value="{{number_format(@sum, 2, '.', '')}}">
										<input type="hidden" name="paymentmethod[]" value="{{@p.id}}">
										<input type="hidden" name="type" value="{{@type}}">
										<input type="hidden" name="sales_receipts" class="sales_receipts" value="{{@base_settings['auto_sales_receipts']?1:0}}">
										<input type="hidden" name="client" class="client" value="{{@receipt['client']}}">
										<input type="hidden" name="executor" class="executor" value="">
										<input type="hidden" name="discount" value="{{@receipt['discount']}}">
										<input type="hidden" name="partner_id" value="{{@receipt['partner_id']}}">
										<check if="{{in_array('receipts/hold', @authorization_user.module)}}">
										<input type="hidden" name="hold" class="hold" value="0">
										<input type="hidden" name="nofr" class="nofr" value="0">
										</check>
										<input type="hidden" name="show_message" value="1">
										<p align="center"><br><big>Выберите способ оплаты</big></p>
										<repeat group="{{@epays}}" value="{{@e}}">
										<input type="radio" class="custom-checkbox" name="epay" id="epay_{{@e['id']}}" value="{{@e['id']}}">
										<label for="epay_{{@e['id']}}">{{@e['title']}}</label>
										</repeat>
									</div>
								</div>
								<input type="hidden" name="fr_print" class="fr_print" value="{{@base_settings['kiosk_receipt_print']}}">
							</div>
						</td>
						<td width="380" valign="bottom">
							<check if="{{@receipt['partner_id']}}">
								<true>
							<button class="btn btn-primary send_ajax w-100" type="button" href="/receipts/remove_partner">
								<i class="fa fa-times" aria-hidden="true"></i>
								{{@receipt['partner']['name']}}
							</button>
								</true>
								<false>
							<button class="btn btn-primary show_window w-100" type="button" href="/partners/search">
								Я постоянный клиент
							</button>
							<br><br>
							<button class="btn btn-primary add_client w-100" type="button">
								Получить электронный чек
							</button>
								</false>
							</check>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</form>
</div>
<script type="text/javascript">
show_basket();
</script>
<div id="client_0" class="hide">
	<div class="popup_area">
		<div class="popup_content">
			<input type="text" class="client_0 w-100" placeholder="E-mail или телефон" autocomplete="off">
			<div class="virtual_keyboard virtual_keyboard_client_0 full_keyboard" align="center">
				{~@keys='1234567890-|QWERTYUIOP_|ASDFGHJKL@+|ZXCVBNM.'~}
				<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
					<check if="{{@keys[@i]=='|'}}">
						<true>
				<br>
						</true>
						<false>
				<button type="button" class="virtual_key btn btn-light border border-secondary" value="{{@keys[@i]}}" for="client_0">{{@keys[@i]}}</button>
						</false>
					</check>
				</loop>
				<button type="button" class="virtual_key_bks btn btn-light border border-secondary" for='client_0'>
					<i class="fas fa-long-arrow-alt-left"></i>
				</button>
				<button type="button" class="virtual_key_delete btn btn-light border border-secondary" for='client_0' value="CE">CE</button>
				<button type="button" class="virtual_key_ok client_0_close btn btn-primary border border-secondary" value="OK">OK</button>
			</div>
		</div>
	</div>
</div>