@(customer.FirstName?.Length > 0 ? customer.FirstName[0] : '?')@(customer.LastName.Length > 0 ? customer.LastName[0] : "")
@customer.FullName
@if (!string.IsNullOrEmpty(customer.Company))
{
@customer.Company
}
@customer.CustomerNumber
@{
var activeVehicles = customer.Vehicles?.Where(v => v.IsActive).ToList() ?? new List();
}
@if (activeVehicles.Any())
{
@string.Join(", ", activeVehicles.Select(v => v.ShortName))
}
@(customer.TireStacks?.Count(ts => ts.Status == TireStackStatus.Stored) ?? 0) Stapel
@if (expandedId == customer.Id)
{
@if (!string.IsNullOrEmpty(customer.Phone))
{
}
@if (!string.IsNullOrEmpty(customer.Email))
{
}
@if (customer.PrimaryVehicle is { } primaryVehicle)
{
- Fahrzeug
- @primaryVehicle.DisplayName
}
- Kunde seit
@if (!string.IsNullOrEmpty(customer.Notes))
{
Notizen
@customer.Notes
}
@* Customer's Tire Stacks *@
@if (customerTireStacks.TryGetValue(customer.Id, out var tireStacks) && tireStacks.Count > 0)
{
Eingelagerte Reifenstapel
@foreach (var ts in tireStacks.Where(t => t.Status == TireStackStatus.Stored))
{
-
@(ts.Season == TireSeason.Sommer ? "☀️" : ts.Season == TireSeason.Winter ? "❄️" : "🔄")
@ts.TireSize (@TireStack.TiresPerStack Reifen)
📍 @(ts.StorageLocation?.Code ?? "-")
}
}
}