@extends('layouts.app') @section('title', 'Dashboard') @section('content') @php $first = Str::of(auth()->user()->name)->before(' ') ?: auth()->user()->name; @endphp {{-- 0 · Welcome banner (first visit only) --}} @unless(auth()->user()->onboarding_tour_completed_at)
🫧 Te damos la bienvenida

¡Hola, {{ $first }}! Bienvenido a Fermenty

Este es tu espacio para acompañar cada fermento hasta su punto. ¿Te enseñamos lo básico en 30 segundos?

@endunless {{-- 1 · Welcome --}}
{{ \Carbon\Carbon::now()->translatedFormat('l · d M') }}
@if(auth()->user()->onboarding_tour_completed_at)

Hola, {{ $first }}

@else

Tu panel

@endif
Nuevo lote
{{-- 2 · Tip of the day --}} @if($tip)
💡
Consejo del día
{{ $tip }}
@endif {{-- 3 + 4 · Alerts (right column on wide) + Fermentando ahora (main) --}}
@if($alerts->isNotEmpty()) @endif

Fermentando ahora @if($activeCount > 6) Ver todos ({{ $activeCount }}) @endif

@if($activeBatches->isEmpty())
🫧
Sin fermentos activos
Empieza tu primer lote y síguelo hasta su punto.
Crea tu fermento
@else
@foreach($activeBatches->take(6) as $batch) @php $pct = $batch->overallProgressPercentage(); $ring = $batch->guide->category?->color ?? '#3A7A22'; $hasAlert = in_array($batch->id, $alertBatchIds, true); @endphp
{{ $batch->name }}
{{ $pct }}%
@if($hasAlert) @endif
{{ $batch->guide->category?->name ?? $batch->guide->name }}
@endforeach
@endif
{{-- /.dash-grid__main --}}
{{-- /.dash-grid --}} {{-- 5 · Try something new --}} @if($suggestion)

Prueba algo nuevo

{{ $suggestion->name }}
@if($suggestion->category){{ $suggestion->category->name }}@endif
Descubrir
@endif @endsection