<?php if($content) { ?>
	<?php foreach($content as $row) { ?>
		 <div class="news-full">
		<article class="news-im">
			<div class="title-news"><a href="/news/detail/<?php echo $row['id'] ?>/"><?php echo e($row['title']) ?></a></div>
			<div class="info">
				<span class="date"><?php echo date('d.m.Y', strtotime($row['created_at'])) ?></span>
				<span class="date"><?php echo $row['author'] ?></span>
			</div>
			<div class="news-text"><?php echo $row['description'] ?></div><br>
		</article>
		</div>
	<?php } ?>
	<br>
    <center><?php echo $pagination ?></center>
<?php } else { ?>
    Новостей нет
<?php } ?>