@extends('layouts.app') @section('title', 'Beranda') @section('content')
Breaking News
@foreach($posts->take(5) as $ticker) {{ $ticker->title }} @endforeach @foreach($posts->take(5) as $ticker) {{ $ticker->title }} @endforeach
@if(isset($featured) && $featured->count() > 0)
@foreach($featured as $index => $item)
{{ $item->category->name ?? 'Update' }}

{{ $item->title }}

{{ $item->user->name ?? 'Admin' }} {{ $item->created_at->format('M d, Y') }}
@endforeach
@foreach($featured as $index => $item) @endforeach
@endif

TERBARU BERITA

Update Desa Hari Ini

@forelse($posts as $post)
{{ $post->category->name ?? '-' }}

{{ $post->title }}

{{ $post->excerpt }}

{{ $post->created_at->diffForHumans() }} Baca Selengkapnya
@empty

Belum ada berita yang diterbitkan.

@endforelse
{{ $posts->links() }}
@endsection