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
23 lines
757 B
Text
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>
|