@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()
])
@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
@foreach($posts as $key => $post)
@if($key != 0 || $posts->currentPage() > 1 || isset($category))
@include('sections.post_preview', ["post" => $post])
@endif
@endforeach