@model PowderCoating.Application.DTOs.Dashboard.DashboardViewModel @using Microsoft.AspNetCore.Html @using PowderCoating.Application.DTOs.Health @using PowderCoating.Web.ViewModels.Dashboard @{ ViewData["Title"] = "Dashboard"; var today = DateTime.Today; var currentMonth = DateTime.Now.ToString("MMMM yyyy"); var configHealth = ViewBag.ConfigHealth as CompanyConfigHealth; var guidedActivationBanner = ViewBag.GuidedActivationBanner as PowderCoating.Web.ViewModels.GuidedActivation.GuidedActivationBannerViewModel; var shopProgressWidget = ViewBag.ShopProgressWidget as ShopProgressWidgetViewModel; } @{ var _attnCount = Model.OverdueJobsCount + Model.OverdueInvoicesCount; }
@if (_attnCount > 0) { Shop is running hot — @_attnCount item@(_attnCount == 1 ? "" : "s") need attention. } else { Everything's on track. @Model.TodaysJobsCount job@(Model.TodaysJobsCount == 1 ? "" : "s") scheduled for today. }
No jobs or appointments scheduled for today
No open bills!
No invoices yet this month
| Customer | Color | Lbs to Order | Est. Cost | |
|---|---|---|---|---|
| @line.CustomerName (@line.JobNumber) | @if (!string.IsNullOrEmpty(line.ColorName)) {@line.ColorName} @if (!string.IsNullOrEmpty(line.ColorCode)) {(@line.ColorCode)} @if (!string.IsNullOrEmpty(line.Finish)) {@line.Finish} | @line.LbsToOrder.ToString("N2") lbs | @if (line.EstCost.HasValue) {@line.EstCost.Value.ToString("C")} else {—} | |
| Vendor Total | @vendorGroup.TotalLbsNeeded.ToString("N2") lbs | @Html.Raw(vendorGroup.TotalEstCost > 0 ? vendorGroup.TotalEstCost.ToString("C") : "—") | ||
| Customer | Color | Lbs Ordered | Est. Cost | Ordered | Receive |
|---|---|---|---|---|---|
| @line.CustomerName (@line.JobNumber) | @if (!string.IsNullOrEmpty(line.ColorName)) {@line.ColorName} @if (!string.IsNullOrEmpty(line.ColorCode)) {(@line.ColorCode)} @if (!string.IsNullOrEmpty(line.Finish)) {@line.Finish} | @line.LbsToOrder.ToString("N2") lbs | @if (line.EstCost.HasValue) {@line.EstCost.Value.ToString("C")} else {—} | @if (line.OrderedAt.HasValue) {@line.OrderedAt.Value.Tz(ViewBag.CompanyTimeZone as string).ToString("MMM d")} else {—} |
|
| Vendor Total | @vendorGroup.TotalLbsNeeded.ToString("N2") lbs | @Html.Raw(vendorGroup.TotalEstCost > 0 ? vendorGroup.TotalEstCost.ToString("C") : "—") | |||