@extends('landingpage::themes.job_board.layouts.master') @php // $newsItems is paginated collection from PublicPageController (assuming it's LpPage for now) // $pageTitle, $metaDescription, $activeTheme are also available $page = (object) [ 'title' => $pageTitle ?? 'Latest News', 'meta_title' => $pageTitle ?? 'Latest News - ' . setting('site_name'), 'meta_description' => $metaDescription ?? 'Stay updated with our latest news and articles.', 'meta_keywords' => 'news, articles, updates, blog', 'slug' => 'news' ]; @endphp @section('theme_content')

{{ $page->title }}

@if($page->meta_description)

{{ $page->meta_description }}

@endif
{{-- Search/Filter Bar for News --}}
{{-- Placeholder for more filters if needed --}}
@if($newsItems->isNotEmpty())
@foreach($newsItems as $news)
{{-- You might add an image here if your news items have one --}} {{-- @if($news->featured_image) {{ $news->title }} @endif --}}

{{ $news->title }}

{{ $news->created_at->format('M d, Y') }}

{{ Str::limit(strip_tags($news->content), 150) }} {{-- Assuming content is in LpPage for now --}}
Read More
@endforeach
{{ $newsItems->links('landingpage::themes.job_board.partials.pagination') }}
@else

No news articles found at the moment. Please check back later.

@endif
@endsection