@extends('public.layout.app') @section('title', 'News') @section('body') @php $featured = $featuredPost ?? $posts->first(); @endphp
News Center

Latest updates, announcements, and public notices.

Follow new academic updates, institutional announcements, student opportunities, and public activities from Afghan Online Education.

@if($featured) @php $featuredImage = $featured->cover_image ? asset('storage/' . $featured->cover_image) : null; $featuredExcerpt = \Illuminate\Support\Str::limit(strip_tags($featured->body ?? ''), 220); @endphp @endif
{{ $posts->total() }} {{ $q ? 'matching news items' : 'published news items' }}
@if($q) Reset search @endif
@forelse($posts as $post) @php $img = $post->cover_image ? asset('storage/' . $post->cover_image) : null; $excerpt = \Illuminate\Support\Str::limit(strip_tags($post->body ?? ''), 135); @endphp
@empty

No news found

Try another keyword or clear the search filter.

@endforelse
@if($posts->hasPages())
{{ $posts->links('pagination::bootstrap-4') }}
@endif
@endsection @push('styles') @endpush