@extends('layout') @section('title','Resumen') @section('content') @php $max = max(1, $by->max()); $stat = fn($l,$v,$c) => compact('l','v','c'); @endphp
Hola, {{ auth()->user()->name }} 👋
Ingreso mensual recurrente
${{ number_format($mrr) }}
{{ $activeServices }} servicios activos · {{ $clients }} clientes
@foreach([['Prospectos en proceso',$prospects,'text-indigo-600'],['Clientes',$clients,'text-emerald-600'],['Conversión',$rate.'%','text-fuchsia-600'],['Servicios activos',$activeServices,'text-amber-600']] as [$l,$v,$c])
{{ $l }}
{{ $v }}
@endforeach

Embudo de ventas

@foreach($by as $s => $n)
{{ $s }}{{ $n }}
@endforeach

Lo que hacemos por nuestros clientes

@forelse($top as $t)
{{ $t->name }}
{{ $t->n }} cliente(s) activos
${{ number_format($t->total) }}/mes
@empty

Aún no hay servicios activos.

@endforelse

Seguimientos pendientes

@forelse($due as $c) {{ $c->name }} {{ $c->company }} {{ $c->next_follow_up->format('d/m/Y') }} @empty

Todo al día ✨

@endforelse

Últimos mensajes de WhatsApp

@forelse($recent as $m)
{{ $m->contact->name }} {{ $m->sent_at->diffForHumans() }}
{{ $m->body }}
@empty

Cuando conectes WhatsApp, los mensajes aparecerán aquí.

@endforelse
@endsection