@extends('layouts.app') @section('title', 'Manajemen Berita') @section('breadcrumb') @endsection @section('content')

Manajemen Berita

Kelola berita dan informasi desa

Tulis Berita

{{ $stats['total'] ?? 0 }}

Total Berita

{{ $stats['published'] ?? 0 }}

Dipublikasi

{{ $stats['draft'] ?? 0 }}

Draft

{{ number_format($stats['total_views'] ?? 0) }}

Total Views

{{ number_format($stats['total_comments'] ?? 0) }}

Total Komentar

{{ number_format($stats['pending_comments'] ?? 0) }}

Pending Komentar
@forelse($berita as $b)
@if($b->gambar) {{ $b->judul }} @else
@endif
{{ ucfirst($b->status) }}
{{ ucfirst($b->kategori) }}
{{ $b->created_at->format('d M Y') }} {{ $b->author->name ?? 'Admin' }}
{{ Str::limit($b->judul, 60) }}

{{ Str::limit(strip_tags($b->konten), 120) }}

Views
{{ number_format($b->views ?? 0) }}
Shares
{{ number_format($b->shares_count ?? 0) }}
Likes
{{ number_format($b->likes_count ?? 0) }}
Komentar
{{ number_format($b->comments_count ?? 0) }}
@empty
Belum ada berita

Mulai menulis berita pertama untuk desa Anda

Tulis Berita Pertama
@endforelse
@if($berita->hasPages())
{{ $berita->links() }}
@endif @endsection @push('styles') @endpush @push('scripts') @endpush