{include file="header2.tpl"}

       <!-- Blog -->
        <div id="blog" class="one-blog-area four-blog-area pt-100 pb-70">
            <div class="container">
                <div class="one-section-title three-section-title">
                    <span class="sub-title"># NEWS & BLOG</span>
                    <h2>Featured News And Insights</h2>
                </div>
                <div class="row">
                    
{if $frm.id}

{loaddata name="news_item" id=$frm.id var=new}
{if $new}
<h3>{$new.title}</h3>
{$new.full_text}
{else}
Not Found
{/if}

{else}


{loaddata name="news" var=news page=$frm.p limit=20 pages_var=pages}
{foreach from=$news item=n}
<div class="col-sm-6 col-lg-4">
                        <div class="blog-item">
                            <div class="blog-top">
                                <a href="{"?a=news#`$n.id`"|encurl}" target="_blank">
                                    <img src="assets/img/news.jpg" alt="Latest News">
                                </a>
                                <span>News #{$n.id}</span>
                            </div>
                            <div class="blog-bottom">
                                <ul>
                                    <li>
                                        <i class='bx bx-time-five'></i>
                                        {$n.date}
                                    </li>
                                </ul>
                                <h3>
                                    <a href="{"?a=news#`$n.id`"|encurl}" target="_blank">{$n.full_text}</a>
                                </h3>
                                <img src="assets/img/blog1.png" alt="Blog">
                                <p><a href="#" target="_blank">By</a> Author</p>
                            </div>
                        </div>
                    </div>
                    
{foreachelse}
<tr>
 <td colspan=3 align=center>No news found</td>
</tr>
{/foreach}

</div>
<center>
{paginator col=$pages.col cur=$pages.cur url="?a=news&p=%s"|encurl}
</center>

{/if}

</div></div>
{include file="footer2.tpl"}