@extends('templates._single') @section('html.head.title', 'News Hub -') @section('main') @include('sections.banner', ['background' => '', 'space_class'=>'xlg-pt4 pt3 pb3']) @include('atoms.heading_group', [ 'title' => (new \App\Models\Posts\Post)->getContentTypeTitle() ])
@if(count($categories) > 0)
@include('sections.news-category-select')
@endif
@include('sections.subscribe', ["style" => "-news-header"])
@include('sections.banner_CLOSE') @if($posts->currentPage() == 1 && !isset($category))
@include('sections.banner', [ 'space_class' => 'mt0 pt1 pb2', 'text_color' => '-dark-text', 'bg_color_class' => '-lightness-1', 'background' => '' ])
@if(count($posts) > 0) @include('sections.post_preview', ["post" => $posts[0]]) @endif
@include('sections.banner_CLOSE')
@else
@endif @if(count($posts) > 0)
@foreach($posts as $key => $post) @if($key != 0 || $posts->currentPage() > 1 || isset($category)) @include('sections.post_preview', ["post" => $post]) @endif @endforeach
@include('atoms.pagination', $pagination = $posts)
@else

No posts could be found

@endif @endsection