<?php
namespace App\Filament\Widgets;
use App\Models\Tenant;
use Filament\Widgets\Widget;
class TotalTenantCount extends Widget
{
protected static string $view = 'filament.widgets.total-tenant-count';
protected static ?string $heading = 'Total Tenants';
protected static ?int $sort = 1;
protected function getViewData(): array
{
return [
'totalTenants' => Tenant::count(),
];
}
}