<?= $this->extend('App\Views\website\index') ?>
<?= $this->section('content') ?>
	<section class="about-hero" style="background: linear-gradient(rgba(17, 26, 76, 0.8), rgba(17, 26, 76, 0.8)), 
url('<?= base_url(); ?>assets/images/Nalubaale-HPP-UEGCL.jpg')">
  <div class="container">
    <h2>UCOLD NEWS</h2>
    <nav class="breadcrumb" data-aos="fade-up">
        <a href="<?= base_url(); ?>">Home</a> &raquo; <span class="ms-2">News</span>
    </nav>
  </div>
</section>
	<section class="news-area">
		<div class="container">
			<div class="row">
				<div class="col-md-8">
					<div class="content-block">
						<?php foreach($news as $n):?>
							<div class="card mb-lg-4 mb-3 shadow-sm border-0" data-aos="fade-up">
								<a href="<?= base_url('posts/'.$n->category_alias.'/'.$n->alias) ?>"><img src="<?= $n->photo;?>" alt="$n->title" class="img-fluid" /></a>
								<div class="card-body border-0">
									<div class="meta">
										<ul>
											<li><i class="bi bi-calendar"></i>&nbsp; <?= date('jS, F Y', strtotime($n->published_date)); ?>											</li>
											<li> <i class="bi bi-person"></i>&nbsp; UCOLD</li>
											<li><i class="bi bi-collection"></i> &nbsp; <?= $n->category;?>  </li>
										</ul>
									</div>
									<a href="<?= base_url('posts/'.$n->category_alias.'/'.$n->alias) ?>"><h3><?= $n->title;?></h3></a>
									<div class="article-details"></div>
									<span class="text-muted"><?= $n->excerpt;?></span>
									 
									<div class="py-2"><a href="<?= base_url('posts/'.$n->category_alias.'/'.$n->alias) ?>" >Read More..</a></div>
								</div>
							</div>
						<?php endforeach;?>
					</div>
				</div>
				<div class="col-md-4">
					<div class="sticky-sidebar py-2">
						<?= $this->include('App\Views\website\\pages\sidebarz') ?>
					</div><!-- sticky area !-->
				</div>
			</div>
		</div>

	</section>
	
<?= $this->endSection() ?>