@extends('layouts.client') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('page-subtitle', 'Welcome back, ' . auth()->user()->name) @section('content')
{{-- ── Stats Cards ───────────────────────────────────────────────────── --}}
@php $cards = [ ['label'=>'Total Documents', 'value'=>$stats['total'], 'icon'=>'files', 'color'=>'blue'], ['label'=>'Pending Review', 'value'=>$stats['pending'], 'icon'=>'clock', 'color'=>'yellow'], ['label'=>'Approved', 'value'=>$stats['approved'], 'icon'=>'check-circle', 'color'=>'green'], ['label'=>'Rejected', 'value'=>$stats['rejected'], 'icon'=>'x-circle', 'color'=>'red'], ]; @endphp @foreach($cards as $card)
{{ $card['label'] }}

{{ $card['value'] }}

@endforeach
{{-- ── Recent Documents ─────────────────────────────────────────── --}}

Recent Submissions

View all
@if($recentDocuments->isEmpty())

No documents submitted yet.

Upload your first document
@else
@foreach($recentDocuments as $doc)
{{ $doc->title }}

{{ $doc->documentType->name }} • {{ $doc->submitted_at?->format('d M Y') }}

{{ $doc->statusLabel() }}
@endforeach
@endif
{{-- ── Recent Notifications ─────────────────────────────────────── --}}

Notifications

View all
@if($recentNotifications->isEmpty())

No notifications yet.

@else
@foreach($recentNotifications as $notif)
@if(!$notif->isRead()) @else @endif

{{ $notif->title }}

{{ $notif->message }}

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

@endforeach
@endif
{{-- ── Quick Actions ──────────────────────────────────────────────────── --}}

Ready to submit a document?

Upload your documents for validation — it's free and fast.

Upload Documents
@endsection