@extends('layouts.admin') @section('title', 'Dashboard') @section('header', 'Dashboard') @section('content')
Total Posts
{{ $stats['total_posts'] }}
Published
{{ $stats['published'] }}
Drafts
{{ $stats['drafts'] }}
Total Views
{{ number_format($stats['total_views']) }}

Recent Posts

View All
@foreach($recentPosts as $post) @endforeach @if($recentPosts->isEmpty()) @endif
Title Status Date
{{ $post->title }} {{ $post->is_published ? 'Published' : 'Draft' }} {{ $post->created_at->format('M d') }}
No posts yet

Recent Messages

View All
@if($unreadMessages > 0)
{{ $unreadMessages }} unread message(s)
@endif
@foreach($recentContacts as $contact)
{{ $contact->name }}
{{ $contact->email }}
{{ $contact->message }}
{{ $contact->created_at->format('M d') }}
@endforeach @if($recentContacts->isEmpty())

No messages yet

@endif
@endsection