Occupancy
@if (floorPlan is null)
{
No floor plan linked to this scene.
}
else if (floor is null || !blocks.Any())
{
@(floor is null?"No saved floor mapping for this scene. Open the linked floor plan to choose a floor.":"No placed rooms are available for this floor.")
}
else
{
@foreach (var block in blocks)
{
var locationTokens = block.LocationID.HasValue && tokensByLocation.TryGetValue(block.LocationID.Value, out var blockTokens)
? blockTokens
: [];
@block.DisplayLabel
@if (locationTokens.Any())
{
@string.Join(", ", locationTokens.Select(x => x.DisplayName).Take(3))@(locationTokens.Count > 3 ? $" +{locationTokens.Count - 3}" : string.Empty)
}
}
}
Characters
@if (!scene.SceneCharacters.Any(x => !string.IsNullOrWhiteSpace(x.LocationName) || !string.IsNullOrWhiteSpace(x.LocationPath)))
{
No character locations recorded.
}
else
{
@foreach (var character in scene.SceneCharacters.Where(x => !string.IsNullOrWhiteSpace(x.LocationName) || !string.IsNullOrWhiteSpace(x.LocationPath)))
{
- @character.CharacterName @TextOr(character.LocationPath ?? character.LocationName, "Unknown")
}
}
Assets
@if (!scene.SceneAssetLocations.Any() && !scene.AssetCustodyEvents.Any())
{
No asset locations or custody changes recorded.
}
else
{
@foreach (var asset in scene.SceneAssetLocations.Take(6))
{
- @asset.AssetName @asset.LocationPath
}
@foreach (var custody in scene.AssetCustodyEvents.Take(6))
{
- @custody.AssetName @TextOr(custody.CustodianSummary, custody.CustodyEventTypeName)
}
}