@extends('layouts.superadmin') @section('title', 'Dashboard da Plataforma') @push('styles') @endpush @section('content') {{-- ─── KPIs ────────────────────────────────────────────────── --}}
MRR
R$ {{ number_format($mrr, 2, ',', '.') }}
ARR: R$ {{ number_format($arr, 0, ',', '.') }}
Hotéis Ativos
{{ $activeHotels }}
{{ $totalHotels }} total · {{ $trialHotels }} em trial
Receita Total (Plataforma)
R$ {{ number_format($platformRevenue, 0, ',', '.') }}
Mês atual: R$ {{ number_format($platformRevenueMonth, 2, ',', '.') }}
Usuários Cadastrados
{{ $totalUsers }}
{{ $activeUsers }} ativos · {{ $inactiveHotels }} hotéis inativos
{{-- ─── Gráficos ────────────────────────────────────────────── --}}
{{-- Crescimento de Hotéis --}}
Crescimento de Hotéis — Últimos 30 dias
{{-- Hotéis por Plano --}}
Hotéis por Plano
{{-- ─── Inferior: Módulos + Hotéis Recentes ─────────────────── --}}
{{-- Módulos mais habilitados --}}
Módulos Mais Habilitados
@php $maxCount = $topModules->max('enabled_count') ?: 1; @endphp @foreach($topModules as $module)
{{ $module->name }}
{{ $module->enabled_count }}
@endforeach
{{-- Hotéis Recentes --}}
Últimos Hotéis Cadastrados Ver todos →
@forelse($recentHotels as $hotel) @empty @endforelse
HotelPlanoStatusDesde
{{ $hotel->name }} {{ $hotel->subscription?->plan?->name ?? 'Sem plano' }} @if($hotel->is_active) Ativo @else Inativo @endif {{ $hotel->created_at->format('d/m/Y') }}
Nenhum hotel cadastrado.
@endsection @push('scripts') @endpush