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

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

Here's what's happening with your clients today.

Total Clients
{{ $stats['total_clients'] }}
Active Clients
{{ $stats['active_clients'] }}
{{ $stats['total_clients'] > 0 ? round(($stats['active_clients'] / $stats['total_clients']) * 100) : 0 }}% of total
Pending Clients
{{ $stats['pending_clients'] }}
Awaiting activation
Quick Action
Add Client

Recent Clients

@if($stats['recent_clients']->count() > 0)
    @foreach($stats['recent_clients'] as $client)
  • {{ strtoupper(substr($client->name, 0, 2)) }}

    {{ $client->name }}

    @if($client->company) {{ $client->company }} @elseif($client->email) {{ $client->email }} @else No company/email @endif

    {{ ucfirst($client->status) }}
  • @endforeach
@else

No clients yet

Get started by adding your first client.

@endif
@endsection