<h1>Документы</h1>
<include href="pagination.htm" />
<table class="work_table order_table">
	<tr>
		<th width="60">
			<span class="order_hide">№ / Дата</span>
			<span class="order_show">Заказ</span>
		</th>
		<th>
			Покупатель
		</th>
		<th width="60">
			Сумма
		</th>
		<th width="100" class="order_hide">
			Статус
		</th>
		<th class="order_button_td">

		</th>
	</tr>
	<repeat group="{{@receipts}}" value="{{@r}}">
	<tr>
		<td align="center">
			{{@r['number']}}<br>
			<small>{{date("d.m.Y", @r['time'])}}</small>
			<span class="order_show">{{@r['status']}}</span>
		</td>
		<td>
			<p>{{@r['partner_title']}}</p>
			<p><small>{{@r['partner_email']}}</small></p>
			<p><small>{{@r['partner_phone']}}</small></p>
		</td>
		<td align="center">
			{{number_format(@r['sum'], 2, '.', '')}}
		</td>
		<td align="center" class="order_hide">
			{{@r['status']}}
		</td>
		<td>
			<form action="/receipts/show_online_order" method="POST">
				<input type="hidden" name="order" value="{{urlencode(json_encode(@r))}}">
				<input type="submit" value="Просмотр">
			</form>
		</td>
	</tr>
	</repeat>
</table>
