@extends('layouts.client') @section('title', 'Dashboard') @section('content')
Here's what's happening with your account today.
Total Documents
{{ $stats['total_documents'] ?? 0 }}
@if(isset($stats['documents_growth']) && $stats['documents_growth'] != 0)Total Invoices
{{ $stats['total_invoices'] ?? 0 }}
Total Amount
${{ number_format($stats['total_amount'] ?? 0, 2) }}
Messages
{{ $stats['total_messages'] ?? 0 }}
@if(isset($stats['unread_messages']) && $stats['unread_messages'] > 0)Used Storage
{{ 1000 - ($stats['storage_used_mb'] ?? 0) }} MB remaining
@if(isset($stats['storage_used_mb']) && $stats['storage_used_mb'] > 800)Storage almost full
{{ strtoupper($document->type) }} • {{ number_format($document->size / 1024, 2) }} KB
{{ $document->created_at->diffForHumans() }}
No documents uploaded yet.
Upload Your First Document${{ number_format($invoice->amount, 2) }}
Due: {{ $invoice->due_date->format('M d, Y') }}
No invoices yet.