<div class="content2">
<h1>{{@page_data['title']}}</h1>
<check if="{{@receipts['success']}}">
	<true>
		<check if="{{count(@receipts['receipts'])>0}}">
			<true>
<table class="work_table">
	<tr>
		<th width="30">
			№
		</th>
		<th>
			Документ
		</th>
		<th>
			Тип операции
		</th>
		<th>
			Результат операции
		</th>
		<th width="100"></th>
	</tr>
				<repeat group="{{@receipts['receipts']}}" value="{{@r}}">
	<tr>
		<td align="center">
			{{@r['id']}}
		</td>
		<td>
			{{@r['type_name']}}{{@r['number']!=''?' № '.@r['number']:''}}{{@r['date']!=''?' от '.date('d.m.Y', strtotime(@r['date'])):''}}
			<check if="{{@r['comment']!=''}}">
			<p>
				<small>
					<b>Комментарий</b>: {{@r['comment']}}
				</small>
			</p>
					</check>
		</td>
		<td align="center">
			{{@r['operation']}}
		</td>
		<td align="center">
			{{@r['result']}}
		</td>
		<td align="right">
			<button type="button" class="show_window" href="/egais/ticket?folder=out&id={{@r['id']}}&type={{@r['type']}}">Просмотр</button>
		</td>
	</tr>
				</repeat>
</table>
			</true>
			<false>
<p>Связанных документов не найдено</p>
			</false>
		</check>
	</true>
	<false>
<p class="false">{{@receipts['txt']}}</p>
	</false>
</check>
</div>