if ($t['value'] > 0) {
            echo '<span class="addressReceive">+';
        } else {
            echo '<span class="addressSend">';
        }
        ?>
				<?php 
        echo \lib\Helper::formatXPY($t['value']);
        echo '</span>';
        if ($t['type'] == 'stake') {
            echo '<span class="label label-info" style="margin-left: 15px">Stake</span>';
        }
        ?>
			</td>
			<td class="text-right"><?php 
        echo \lib\Helper::formatXPY($t['balance']);
        ?>
</td>
		</tr>
		<?php 
    }
    ?>
		</tbody>
	</table>

	<div>
		<?php 
    if ($addressInformation['totalTransactions'] > $limit) {
        $showing = 'all';
        if ($limit != 'all') {
            $showing = $limit . ' of';
    echo $bids['bidrank'];
    ?>
</td>
				<td ><?php 
    echo \lib\Helper::getAddressLink($bids['address'], $addressTagMap);
    ?>
</td>
				<td ><?php 
    echo \lib\Helper::formatXPY($bids['bid'], $addressTagMap);
    ?>
</td>
				<td ><?php 
    echo $bids['percent'];
    ?>
 %</td>
				<td ><?php 
    echo $bids['rank'];
    ?>
</td>
				<td class="text-right"><?php 
    echo \lib\Helper::formatXPY($bids['balance'], $addressTagMap);
    ?>
</td>
			</tr>
		<?php 
}
?>
	</table>

</div>
    echo $primeStake['hash'];
    ?>
"><?php 
    echo $primeStake['block_height'];
    ?>
</td>
				<td><?php 
    echo \lib\Helper::getTxHashLink($primeStake['txid']);
    ?>
</td>
				<td><?php 
    echo \lib\Helper::getAddressLink($primeStake['address'], $addressTagMap);
    ?>
</td>
				<td><?php 
    echo \lib\Helper::formatXPY($primeStake['value']);
    ?>
</td>
				<td><?php 
    echo \lib\Helper::formatTime($primeStake['time']);
    ?>
</td>
			</tr>
		<?php 
}
?>
	</table>

</div>

					</tr>
				<?php 
} else {
    foreach ($distribution as &$row) {
        $row['percent'] = 0;
        if ($last['holdings'] > 0) {
            $row['percent'] = round($row['holdings'] / $last['holdings'] * 100, 2);
        }
        ?>
						<tr>
							<td><?php 
        echo $row['top'];
        ?>
</td>
							<td><?php 
        echo \lib\Helper::formatXPY($row['holdings']);
        ?>
</td>
							<td><?php 
        echo $row['percent'];
        ?>
 %</td>
						</tr>
					<?php 
    }
    ?>
					<script>
						var options = {
							chart: {
								type: 'pie',
								options3d: {
						><?php 
    echo date('c', $transaction['time']);
    ?>
</time></td>
				<td><?php 
    echo \lib\Helper::getTxHashLink($transaction['txid']);
    ?>
</td>
				<td class="text-right">
					<?php 
    if ($transaction['value'] > 0) {
        echo '<span class="addressReceive">+ ';
    } else {
        echo '<span class="addressSend">';
    }
    echo \lib\Helper::formatXPY($transaction['value']);
    ?>
</span>
				</td>
				<td ><?php 
    echo \lib\Helper::getAddressLink($transaction['address'], $addressTagMap);
    ?>
</td>
			</tr>
		<?php 
}
?>
	</table>

</div>
        if ($out['type'] == 'nonstandard' && $i == 0 && $k == 0) {
            echo "<tr><td>Included in following transaction(s)</td>" . "<td class='text-right'>" . \lib\Helper::formatXPY($created) . "</td>";
            continue;
        }
        if (empty($out['address'])) {
            continue;
        }
        ?>

							<tr>
								<td><?php 
        echo \lib\Helper::getAddressLink($out['address']);
        ?>
</td>
								<td class="text-right"><?php 
        echo \lib\Helper::formatXPY($out['value']);
        ?>
</td>
							</tr>
							<?php 
    }
    ?>
						</table>


					</td>
					<td class="text-right"></td>
				</tr>
			<?php 
}
?>