@extends('layouts.admin') @section('title', 'Dashboard') @section('content')

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

Here is an overview of your website content and activity.

@php $cards = [ ['label' => 'Total Messages', 'value' => $stats['messages'], 'sub' => $stats['unread'].' unread', 'icon' => 'mail', 'route' => 'admin.contact-messages.index', 'tone' => 'bg-blue-50 text-blue-600'], ['label' => 'Products', 'value' => $stats['products'], 'sub' => 'Showcase items', 'icon' => 'package', 'route' => 'admin.products.index', 'tone' => 'bg-brand-50 text-brand-600'], ['label' => 'Services', 'value' => $stats['services'], 'sub' => 'Service & solutions', 'icon' => 'sparkles', 'route' => 'admin.services.index', 'tone' => 'bg-purple-50 text-purple-600', 'params' => ['type' => 'service']], ['label' => 'Blog Posts', 'value' => $stats['posts'], 'sub' => 'Published & drafts', 'icon' => 'newspaper', 'route' => 'admin.blog.index', 'tone' => 'bg-amber-50 text-amber-600'], ]; @endphp
@foreach ($cards as $card)

{{ number_format($card['value']) }}

{{ $card['label'] }}

{{ $card['sub'] }}

@endforeach
@if ($recentMessages->count()) @else
@endif
@if ($latestPosts->count()) @else @endif
New Product New Post Manage Pages Site Settings
@endsection