@model PowderCoating.Application.DTOs.Common.PagedResult @using PowderCoating.Core.Enums @{ ViewData["Title"] = $"Job History - {ViewBag.CustomerName}"; ViewData["PageIcon"] = "bi-briefcase"; }
New Job Back to Customer
@if (!string.IsNullOrEmpty(ViewBag.SearchTerm)) {
Showing @Model.TotalCount job(s) matching "@ViewBag.SearchTerm"
Clear Filter
}
@Model.TotalCount job(s) total
@if (!string.IsNullOrEmpty(ViewBag.SearchTerm)) { }
@if (!Model.Items.Any()) {
No jobs found
@if (!string.IsNullOrEmpty(ViewBag.SearchTerm)) {

No jobs match your search criteria

} else {

This customer has no jobs yet

Create First Job }
} else {
@foreach (var job in Model.Items) { }
Job Number Description Status Priority Scheduled Due Date Price Actions
@job.JobNumber
Created @job.CreatedAt.ToString("MMM dd, yyyy")
@job.Description @job.StatusDisplayName @job.PriorityDisplayName @if (job.ScheduledDate.HasValue) { @job.ScheduledDate.Value.ToString("MMM dd, yyyy") } else { Not scheduled } @if (job.DueDate.HasValue) { var isOverdue = job.DueDate.Value < DateTime.Now && job.StatusCode != "COMPLETED" && job.StatusCode != "READYFORPICKUP" && job.StatusCode != "DELIVERED"; @job.DueDate.Value.ToString("MMM dd, yyyy") @if (isOverdue) { } } else { Not set } @job.FinalPrice.ToString("C")
}
@if (Model.TotalCount > 0) { @await Html.PartialAsync("_Pagination", Model) }
@section Scripts { }