Resumen del SaaS

{{-- KPIs en degradado --}}
@php $kpis = [ ['Restaurantes', $total, 'from-brand-500 to-brand-700', 'shadow-brand-600/30', 'M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4'], ['Activos', $activos, 'from-emerald-500 to-emerald-700', 'shadow-emerald-600/30', 'M5 13l4 4L19 7'], ['En prueba', $trial, 'from-amber-400 to-orange-600', 'shadow-orange-500/30', 'M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'], ['Suspendidos', $suspendidos, 'from-accent-500 to-accent-700', 'shadow-accent-600/30', 'M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636'], ]; @endphp @foreach ($kpis as [$label, $val, $grad, $shadow, $icon])

{{ $label }}

{{ $val }}

@endforeach
{{-- Tarjetas financieras --}}

MRR estimado

S/ {{ number_format($mrr, 2) }}

Ingreso recurrente mensual

Ingreso histórico

S/ {{ number_format($ingresoTotal, 2) }}

Suscripciones pagadas

Usuarios totales

{{ $totalUsuarios }}

Personal de todos los restaurantes

{{-- Gráficos --}}

Crecimiento de restaurantes

Distribución por plan

Ingresos por mes

Restaurantes por plan

@foreach ($porPlan as $p)
{{ $p->nombre }} S/ {{ number_format($p->precio,0) }} {{ $p->restaurantes_count }}
@endforeach
{{-- Recientes --}}

Restaurantes recientes

Ver todos →
@forelse ($recientes as $r) @empty @endforelse
RestaurantePlan EstadoAlta
{{ $r->nombre }} {{ $r->plan?->nombre ?? '—' }} {{ $r->estadoLabel() }} {{ $r->created_at->format('d/m/Y') }}
Aún no hay restaurantes.
@push('scripts') @endpush