@page "/admin"
@layout AdminLayout

<PageTitle>Adminbereich</PageTitle>

<div class="container py-4 text-center fade-in">
    <h4 class="mb-4 text-primary">
        <i class="bi bi-shield-lock me-2"></i> Adminbereich
    </h4>

    <div class="row g-4 justify-content-center">
        <div class="col-12 col-md-4">
            <div class="card shadow-sm border-0 admin-tile" @onclick="@(() => Nav.NavigateTo("/admin/customers"))">
                <div class="card-body text-center">
                    <i class="bi bi-buildings display-6 text-primary mb-3"></i>
                    <h5 class="fw-semibold">Kunden verwalten</h5>
                </div>
            </div>
        </div>

        <div class="col-12 col-md-4">
            <div class="card shadow-sm border-0 admin-tile" @onclick="@(() => Nav.NavigateTo("/admin/users"))">
                <div class="card-body text-center">
                    <i class="bi bi-person display-6 text-primary mb-3"></i>
                    <h5 class="fw-semibold">Benutzer verwalten</h5>
                </div>
            </div>
        </div>
    </div>
</div>

@code {
    [Inject] NavigationManager Nav { get; set; } = default!;
}
