PlanTempusApp/PlanTempus.Application/Features/Dashboard/Components/BookingList/Default.cshtml
Janus C. H. Knudsen abcf8ee75e Adds dashboard booking and notification components
Introduces reusable view components for bookings and notifications
Implements dynamic rendering of booking items and lists
Adds corresponding CSS styles for new dashboard components

Enhances dashboard user interface with interactive elements
2026-01-11 13:11:55 +01:00

23 lines
757 B
Text

@model PlanTempus.Application.Features.Dashboard.Components.BookingListViewModel
<swp-card data-key="@Model.Key">
<swp-card-header>
<swp-card-title>
<i class="ph ph-calendar-check"></i>
@Model.Title
</swp-card-title>
<swp-card-action>Se alle</swp-card-action>
</swp-card-header>
<swp-current-time>
<i class="ph ph-clock"></i>
<span>Nu: <swp-time>@Model.CurrentTime</swp-time></span>
</swp-current-time>
<swp-card-content>
<swp-booking-list>
@foreach (var bookingKey in Model.BookingKeys)
{
@await Component.InvokeAsync("BookingItem", bookingKey)
}
</swp-booking-list>
</swp-card-content>
</swp-card>