<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-12 col-xl-10">
            <div class="card shadow-sm border-0 mb-4">
                <div class="card-body p-4 p-lg-5">
                    <div class="d-flex align-items-start justify-content-between gap-3 flex-wrap">
                        <div>
                            <h1 class="h3 mb-2">Fase 0 completada: base Laravel + Livewire + Bootstrap</h1>
                            <p class="text-muted mb-0">Estado de verificacion del stack inicial para migracion por fases.</p>
                        </div>
                        <span class="badge text-bg-success px-3 py-2">Stack listo</span>
                    </div>
                </div>
            </div>

            <div class="row g-3 mb-4">
                @foreach ($checks as $check)
                    <div class="col-12 col-md-4">
                        <div class="card h-100 border-0 shadow-sm">
                            <div class="card-body">
                                <div class="d-flex align-items-center justify-content-between mb-2">
                                    <h2 class="h6 mb-0">{{ $check['title'] }}</h2>
                                    <span class="badge {{ $check['ok'] ? 'text-bg-success' : 'text-bg-danger' }}">
                                        {{ $check['ok'] ? 'OK' : 'ERROR' }}
                                    </span>
                                </div>
                                <p class="mb-2">{{ $check['description'] }}</p>
                                <small class="text-muted d-block">{{ $check['meta'] }}</small>
                            </div>
                        </div>
                    </div>
                @endforeach
            </div>

            <div class="card border-0 shadow-sm">
                <div class="card-body">
                    <h2 class="h5 mb-3">Contexto actual</h2>
                    <div class="row row-cols-1 row-cols-md-2 g-2">
                        <div><strong>PHP:</strong> {{ $context['php'] }}</div>
                        <div><strong>Laravel:</strong> {{ $context['laravel'] }}</div>
                        <div><strong>Livewire:</strong> {{ $context['livewire'] }}</div>
                        <div><strong>DB:</strong> {{ $context['database'] }}</div>
                        <div class="col-12"><strong>APP_URL:</strong> {{ $context['app_url'] }}</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
