@extends('eliteadmin::layouts.installer')

@section('title', 'Installation - Review')

@section('content')
    <h2 class="h4 mb-3">Review &amp; Install</h2>
    <p class="text-muted mb-4">Confirm your settings before the application is finalized. A free license key is generated automatically.</p>

    <div class="table-responsive mb-4">
        <table class="table table-bordered">
            <tbody>
                <tr><th style="width: 35%;">Platform Name</th><td>{{ $state->appName }}</td></tr>
                <tr><th>URL</th><td>{{ $state->appUrl }}</td></tr>
                <tr><th>Database</th><td>{{ $state->dbConnection }} / {{ $state->dbDatabase }}</td></tr>
                <tr><th>Company</th><td>{{ $state->companyName }}</td></tr>
                <tr><th>Admin Email</th><td>{{ $state->adminEmail }}</td></tr>
                <tr><th>Admin Phone</th><td>{{ $state->adminPhone }}</td></tr>
                <tr><th>License Key</th><td><code>{{ $state->licenseKey }}</code></td></tr>
                <tr><th>Installation ID</th><td><code>{{ $state->installationId }}</code></td></tr>
                <tr><th>Activation</th><td><span class="badge bg-success">Activated</span></td></tr>
            </tbody>
        </table>
    </div>

    <div class="d-flex flex-column flex-sm-row gap-2 justify-content-between">
        <a href="{{ route('installer.admin') }}" class="btn btn-outline-secondary">Back</a>
        <form action="{{ route('installer.finalize') }}" method="POST">
            @csrf
            <button type="submit" class="btn btn-primary btn-lg">Install Application</button>
        </form>
    </div>
@endsection
