@model FixConnect.PL.ViewModels.MyProposalsViewModel
@{
ViewData["Title"] = "My Proposals";
Layout = "_WorkerLayout";
}
My Proposals
Track and manage your active bids across all clients.
expand_more
@if (!Model.Proposals.Any())
{
description
No proposals sent yet.
When you submit proposals to client requests, they will appear here.
}
else
{
@foreach (var p in Model.Proposals)
{
@(!string.IsNullOrEmpty(p.CustomerName) && p.CustomerName.Length >= 2 ? p.CustomerName.Substring(0, 2).ToUpper() : "FI")
@if (p.Status == "Pending")
{
@p.Status
}
else if (p.Status == "Accepted")
{
@p.Status
}
else if (p.Status == "Rejected")
{
@p.Status
}
else if (p.Status == "Counter-offer")
{
@p.Status
}
else
{
@p.Status
}
@p.RequestTitle
calendar_today
Sent Proposal
@if (p.Status == "Counter-offer")
{
CLIENT REVISED
}
Labor Cost
@(p.LaborCost.HasValue? p.LaborCost.Value.ToString("C") : "—")
Material Cost
@(p.MaterialCost.HasValue? p.MaterialCost.Value.ToString("C") : "—")
Estimated Duration
@(p.DurationEstimate.HasValue ? $"{p.DurationEstimate} days" : "—")
Total Value
@(((p.LaborCost ?? 0) + (p.MaterialCost ?? 0)).ToString("C"))
@if (p.Status == "Pending")
{
Edit Proposal
}
else if (p.Status == "Counter-offer")
{
}
else if (p.Status == "Accepted")
{
}
else
{
}
}
}