@if(session('success'))
{{ session('success') }}
@endif
{{-- Welcome / onboarding card — solo visible si el Reseller es reciente
y aún no provisionó customers. Le explica el flujo en 1 vista. --}}
@if($showOnboarding)
¡Bienvenido al programa Reseller!
Tu cuenta está aprobada. Ahora podés vender sitios web profesionales con tu marca sin tocar código.
Te dejamos los próximos pasos sugeridos.
1
Conocé el catálogo
+250 modelos por industria. Browseá lo que vas a vender.
Ver catálogo →
3
Soporte de partners
¿Dudas técnicas o comerciales? Tenés canal directo.
Abrir ticket →
@endif
{{-- ════════ Band de Revenue — SOLO admin/dueño ════════ --}}
@if($ownerMoney)
MRR (USD/mes)
${{ number_format($ownerMoney['mrr'], 0) }}
Clientes pagando
{{ $ownerMoney['paying_count'] }} · {{ $ownerMoney['free_count'] }} free
@foreach($ownerMoney['mrr_by_model'] as $model => $amt)
{{ $model }}
${{ number_format($amt, 0) }}
@endforeach
@endif
{{-- Stats --}}
{{ $stats['total_customers'] }}
Clientes
{{ $stats['total_projects'] }}
Proyectos totales
{{ $stats['active_projects'] }}
Activos
@if($stats['in_progress'] > 0)
{{ $stats['in_progress'] }} en progreso
@endif
@if($stats['in_delivery'] > 0)
{{ $stats['in_delivery'] }} en entrega
@endif
@if($stats['on_hold'] > 0)
{{ $stats['on_hold'] }} en pausa
@endif
@if($stats['showcase'] > 0)
{{ $stats['showcase'] }} showcase
@endif
{{ $stats['this_month'] }}
Sumados este mes
{{-- Acción primaria: comprar para cliente. CTA prominente, no sólo en sidebar. --}}
¿Listo para sumar otro cliente?
Provisioná directo con JSON de contenido o comprá en el marketplace.
{{-- Secciones destacadas por delivery_status: in_delivery (auto-open) +
on_hold (colapsado) + showcase (colapsado). Sólo se muestran las
que tienen contenido. --}}
@php
$deliverySections = [
['key' => 'in_delivery', 'collection' => $inDelivery, 'total' => $stats['in_delivery'],
'title' => 'En entrega · Requieren tu atención',
'description' => 'Sitios de tus clientes con handoff pendiente (dominio, módulos extra, ajustes).',
'icon' => 'fa-truck-fast', 'tone' => 'info',
'border' => 'border-info', 'gradient' => 'rgba(13,202,240,0.06), rgba(13,202,240,0.02)',
'badgeBg' => 'bg-info', 'btnBg' => 'btn-info', 'btnLight' => 'btn-light-info',
'open' => true],
['key' => 'on_hold', 'collection' => $onHold, 'total' => $stats['on_hold'],
'title' => 'En pausa',
'description' => 'Sitios activos en standby — no se está trabajando ahora.',
'icon' => 'fa-pause-circle', 'tone' => 'warning',
'border' => 'border-warning', 'gradient' => 'rgba(255,193,7,0.07), rgba(255,193,7,0.02)',
'badgeBg' => 'bg-warning text-dark', 'btnBg' => 'btn-warning text-dark', 'btnLight' => 'btn-light-warning',
'open' => false],
['key' => 'showcase', 'collection' => $showcase, 'total' => $stats['showcase'],
'title' => 'Showcase / Anzuelos',
'description' => 'Sitios activos sin cliente comprometido — vivos como demo o captación de leads.',
'icon' => 'fa-bullseye', 'tone' => 'showcase',
'border' => 'cd-border-showcase border-2', 'gradient' => 'rgba(124,77,255,0.06), rgba(124,77,255,0.02)',
'badgeBg' => 'cd-bg-showcase', 'btnBg' => 'cd-bg-showcase border-0', 'btnLight' => 'cd-bg-light-showcase border-0',
'open' => false],
];
@endphp
@foreach($deliverySections as $section)
@continue($section['collection']->isEmpty())
@php $isInDelivery = $section['key'] === 'in_delivery'; @endphp
@foreach($section['collection'] as $deliveryProject)
@php $deliveryAge = $deliveryProject->updated_at ?? $deliveryProject->created_at; @endphp
{{ $deliveryProject->project_name }}
@if($deliveryAge)
{{ $deliveryAge->diffForHumans(null, true) }}
@endif
{{ $deliveryProject->user->email ?? 'Sin cliente' }}
@if($deliveryProject->product_name)
· {{ $deliveryProject->product_name }}
@endif
@if($deliveryProject->domain)
{{ $deliveryProject->domain }}
@endif
@if($deliveryProject->delivery_notes)
{{ \Illuminate\Support\Str::limit($deliveryProject->delivery_notes, 80) }}
@elseif($isInDelivery)
Sin notas — agregá el motivo
@else
Sin notas
@endif
Detalle
@if($deliveryProject->admin_url)
@endif
@endforeach
@if($section['total'] > $section['collection']->count())
@endif
@endforeach
{{-- Últimos proyectos --}}
@if($recentProjects->isEmpty())
Empezá tu cartera de clientes
Cuando comprés un proyecto para un cliente, aparece acá con su estado en tiempo real.
El cliente final no necesita preocuparse de la infraestructura — vos lo gestionás todo.
Comprar mi primer proyecto-cliente
@else
| Cliente |
Proyecto |
Estado |
Plan |
Acción |
@foreach($recentProjects as $project)
@php [$badgeLabel, $badgeClass] = $project->status_badge; @endphp
|
{{ $project->user->email }}
{{ trim(($project->user->first_name ?? '') . ' ' . ($project->user->last_name ?? '')) }}
|
{{ $project->project_name }}
@if($project->domain)
{{ $project->domain }}
@endif
|
{{ $badgeLabel }}
@if($project->isProvisioning())
@php [$pct, $etaText] = $project->provisioning_eta; @endphp
@endif
|
@if($project->amount_usd)
USD {{ number_format($project->amount_usd, 2) }}
/mes
@else
—
@endif
|
@if($project->isReachable() && $project->admin_url)
Admin
@elseif($project->isProvisioning())
@endif
|
@endforeach
@endif