@extends('layout.front.master') {{-- ═══════════════════════════════════════════════════════════════════════ HOME — bewpro.com (PLATAFORMA) Diseñada desde cero para la plataforma. NO replica el template del demo. Valores de marca: eficiencia · dirección · simpleza · economía. 5 secciones core (no 11), pensadas para que el visitor entienda el valor en <30s de scroll. ═══════════════════════════════════════════════════════════════════════ --}} @section('title', $seoData['title'] ?? config('site.name') . ' — Plataforma de sitios web profesionales') @section('description', $seoData['description'] ?? 'Elegí, personalizá, publicá. Hosting incluido. Sitios profesionales en minutos.') @section('og_title', config('site.name')) @section('og_description', 'Elegí tu modelo, personalizá tu marca y publicá. Sin código.') @section('content') @php use App\Models\TenantProject; use App\Modules\Products\Models\Product; use App\Modules\Products\Models\ProductCategory; // Auth state $isClient = auth()->check() && auth()->user()->hasRole('Client'); $clientProjects = collect(); $clientOpenTickets = 0; if ($isClient) { $clientProjects = auth()->user()->tenantProjects()->orderByDesc('created_at')->get(); try { $clientOpenTickets = \App\Modules\Support\Models\SupportTicket::where('user_id', auth()->id()) ->whereIn('status', ['open','waiting_staff','waiting_client'])->count(); } catch (\Throwable $e) {} } // Marketplace data try { $featuredProducts = Product::with('category', 'images') ->where('is_active', true)->orderByDesc('updated_at')->limit(6)->get(); $industries = ProductCategory::withCount(['products' => fn($q) => $q->where('is_active', true)]) ->get()->where('products_count', '>', 0)->sortByDesc('products_count')->values(); $totalActive = Product::where('is_active', true)->count(); } catch (\Throwable $e) { $featuredProducts = collect(); $industries = collect(); $totalActive = 0; } $industryIcons = [ 'professional' => 'fa-briefcase', 'corporate' => 'fa-building', 'services' => 'fa-cogs', 'personal' => 'fa-user-tie', 'events' => 'fa-calendar-star', 'art' => 'fa-palette', 'health-and-wellness' => 'fa-heart', 'petite-website' => 'fa-feather', 'e-commerce' => 'fa-shopping-cart', 'crafts' => 'fa-paint-brush', 'design' => 'fa-pencil-ruler', 'standard-web-app' => 'fa-window-maximize', 'home-deco' => 'fa-couch', ]; @endphp {{-- ═══════════════════════════════════════════════════════════════════════ SECCIÓN 0 — CLIENT HUB (solo si auth + Client) ═══════════════════════════════════════════════════════════════════════ --}} @if($isClient) @php $firstName = auth()->user()->first_name ?: explode('@', auth()->user()->email)[0]; @endphp
{{ strtoupper(substr($firstName, 0, 1)) }}

Hola {{ $firstName }} 👋

@if($clientProjects->count() === 0) Lanzá tu primer proyecto en minutos. @elseif($clientProjects->count() === 1) Gestionás 1 proyecto. @else Gestionás {{ $clientProjects->count() }} proyectos. @endif

@if($clientProjects->isNotEmpty())

Tus proyectos

Ver todos
@foreach($clientProjects->take(6) as $project) @php [$badgeLabel, $badgeClass] = $project->status_badge; @endphp @endforeach
@endif
@endif {{-- ═══════════════════════════════════════════════════════════════════════ SECCIÓN 1 — HERO (solo guests) Compacto. Pitch en <15s. ═══════════════════════════════════════════════════════════════════════ --}} @unless($isClient)
15 días gratis · sin tarjeta

Tu sitio web profesional
listo hoy, no en meses.

Elegí un modelo, activá tu prueba y publicá en 30 minutos. Sin tarjeta, sin código, sin sorpresas en la factura.

15 días gratis sin tarjeta
{{ $totalActive }} modelos por industria
Online en 30 minutos
{{-- Mockup ASCII-art simulado del admin panel --}}
tu-sitio.bewpro.com/admin
@endunless {{-- ═══════════════════════════════════════════════════════════════════════ SECCIÓN 2 — MODELOS DESTACADOS (6 cards) ═══════════════════════════════════════════════════════════════════════ --}} @if($featuredProducts->isNotEmpty())

Empezá con uno de estos

Ver catálogo completo
@foreach($featuredProducts as $product) @php $hasImg = $product->images?->isNotEmpty(); @endphp @endforeach
@endif {{-- ═══════════════════════════════════════════════════════════════════════ SECCIÓN 3 — POR INDUSTRIA ═══════════════════════════════════════════════════════════════════════ --}} @if($industries->isNotEmpty())

Encontrá tu rubro

@foreach($industries as $cat) @php $icon = $industryIcons[$cat->slug] ?? 'fa-th-large'; @endphp @endforeach
@endif {{-- ═══════════════════════════════════════════════════════════════════════ SECCIÓN 4 — CÓMO FUNCIONA (3 pasos) ═══════════════════════════════════════════════════════════════════════ --}}

Tu web profesional en 3 pasos

01

Elegí tu modelo

Modelos por industria. Ves un demo en vivo antes de elegir.

02

Personalizá

Logo, colores, contenido. Sin código. Panel de administración intuitivo.

03

Publicá

Tu sitio en tu-marca.bewpro.com con hosting y SSL incluidos. Online en 30 min.

{{-- ═══════════════════════════════════════════════════════════════════════ SECCIÓN 5 — CTA FINAL ═══════════════════════════════════════════════════════════════════════ --}} @unless($isClient)

Tu sitio listo hoy. Sin tarjeta.

Elegí un modelo, activá tu prueba gratis y vélo funcionando antes de pagar nada.

Empezar mi prueba gratis

15 días para probarlo · Cancelás cuando quieras · Sin sorpresas en la factura

Pago seguro con Stripe Online en 30 min Soporte humano
{{-- Invitación a resellers movida al footer (link discreto). Funnel principal de la home queda enfocado en el cliente final; el programa de Resellers se descubre vía footer o link directo. --}} @endunless @endsection @section('css') @endsection