<div class="show_qr">
	<h1>{{@page_data.title}}</h1>
	<p align="center"><big>Сумма к оплате: {{number_format(@GET.sum/100, 2, '.', '')}}</big></p>
	<div align="center">
		Идет проверка статуса платежа
	</div>
	<img src="/qr/gen?url={{urlencode(@GET.url)}}">
	<form name="controlpay_qr_form" action="/receipts/paycontrol_qr" method="POST">
		<input type="hidden" name="receipt_id" value="{{@GET.receipt_id}}">
		<input type="hidden" name="epay" value="{{@GET.epay}}">
		<input type="hidden" name="order_id" value="{{@GET.order_id}}">
		<input type="hidden" name="sbp_order_id" value="{{@GET.sbp_order_id}}">
		<input type="hidden" name="qr_id" value="{{@GET.qr_id}}">
	</form>
	<div align="center">
		<button id="print_qr" class="btn btn-primary" href="/receipts/print_qr?url={{urlencode(@GET.url)}}">
			<i class="fas fa-receipt"></i>
			Печать
		</button>
	</div>
	<div align="center">
		<button id="cancel_qr" class="btn btn-primary" href="/receipts/cancel_qr?epay={{@GET.epay}}&sbp_order_id={{@GET.sbp_order_id}}">
			Отмена
		</button>
	</div>
</div>
<script type="text/javascript">
	paycontrol();
</script>