@extends('admin.layouts.app') @section('title', 'Dashboard') @section('page-header')

Dashboard

Welcome back, {{ auth()->user()->name }}!

New Post New Product
@endsection @section('content') {{-- Statistics Cards --}}
{{-- Posts Card --}}

Total Posts

{{ $stats['posts']['total'] }}

{{ $stats['posts']['published'] }} published

{{-- Products Card --}}

Total Products

{{ $stats['products']['total'] }}

{{ $stats['products']['active'] }} active

{{-- Contacts Card --}}

Contact Messages

{{ $stats['contacts']['total'] }}

{{ $stats['contacts']['unread'] }} unread

{{-- Users Card --}}

Total Users

{{ $stats['users']['total'] }}

{{ $stats['users']['this_month'] }} this month

{{-- Charts & Recent Activity --}}
{{-- Activity Chart --}}

Activity (Last 7 Days)

{{-- Quick Actions --}}

Quick Actions

{{-- Recent Activity Tables --}}
{{-- Recent Posts --}}

Recent Posts

View All
@forelse($recentPosts as $post)

{{ Str::limit($post->title, 40) }}

{{ $post->created_at->diffForHumans() }}

{{ $post->published_at ? 'Published' : 'Draft' }}
@empty

No posts yet

@endforelse
{{-- Recent Products --}}

Recent Products

View All
@forelse($recentProducts as $product)

{{ Str::limit($product->name, 40) }}

{{ $product->created_at->diffForHumans() }}

{{ ucfirst($product->status) }}
@empty

No products yet

@endforelse
{{-- Recent Contacts --}}

Recent Contacts

View All
@forelse($recentContacts as $contact)

{{ $contact->name }}

{{ $contact->email }}

@if(!$contact->read_at) @endif
@empty

No contacts yet

@endforelse
@push('scripts') @endpush @endsection