<?php require_once(ROOT . "/views/admin/layouts/_header_admin.php"); ?>

<div class="s-bk-lf">
	<div class="acc-title">История выплат</div>
</div>
<div class="silver-bk"><div class="clr"></div>	
<center><a href="/admin/payments">Список выплат</a> || <a href="/admin/payments/days">По дням</a></center><BR />

	<?php if(count($days_money) > 0) : ?>

		<table cellpadding='3' cellspacing='0' border='0' bordercolor='#336633' align='center' width="99%">
		  <tr bgcolor="#efefef">
			<td align="center" class="m-tb">Дата</td>
			<td align="center" class="m-tb">Выплат</td>
			<td align="center" class="m-tb">На сумму</td>
		  </tr>

			<?php foreach($days_money as $date => $sum) : ?>

				<tr class="htt">
					<td align="center"><b><?=$date; ?></b></td>
					<td align="center"><?=$days_payment[$date]; ?> шт.</td>
					<td align="center"><?=$sum; ?> руб.</td>
				</tr>

			<?php endforeach; ?>

		</table>
	
	<?php else : ?>

		<center><b>Записей нет</b></center><BR />

	<?php endif; ?>
	
</div>
<div class="clr"></div>	

<?php require_once(ROOT . "/views/admin/layouts/_footer_admin.php"); ?>