@extends('layouts.frontend') @section('title_page', 'All News - Rusizi Veterinary') @section('content')
{{-- Loop through the news items (using $newsItems from the controller) --}} @forelse ($newsItems as $item)
{{-- Using the Accessor: $item->imageUrl to get the full path --}} {{ $item->NewsTitle }}
{{-- Display News Title and link --}}

{{ $item->NewsTitle }}

{{-- Display a summary of News Details, stripping tags in case it's rich HTML --}}

{{ Str::limit(strip_tags($item->NewsDetails), 250) }}

@empty

No news articles available at the moment.

@endforelse
{{-- Pagination Links --}}
{{ $newsItems->links() }}
@endsection('content')