Initial commit

This commit is contained in:
2026-04-23 21:38:24 -04:00
commit 63e12a9636
1762 changed files with 1672620 additions and 0 deletions
@@ -0,0 +1,183 @@
@model PowderCoating.Application.DTOs.Customer.CustomerDto
@{
ViewData["Title"] = "Delete Customer";
ViewData["PageIcon"] = "bi-people";
}
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="d-flex justify-content-end align-items-center mb-4">
<a asp-action="Index" class="btn btn-outline-secondary">
<i class="bi bi-arrow-left me-2"></i>Back to List
</a>
</div>
<!-- Warning Banner -->
<div class="alert alert-danger d-flex align-items-start mb-4">
<i class="bi bi-exclamation-triangle-fill me-3" style="font-size: 1.5rem;"></i>
<div>
<h5 class="alert-heading mb-2">Are you sure you want to delete this customer?</h5>
<p class="mb-0">This action will mark the customer as deleted. All related records (jobs, quotes, notes) will be preserved but the customer will no longer appear in active listings.</p>
</div>
</div>
<div class="card border-danger shadow-sm">
<div class="card-header bg-danger bg-opacity-10 border-danger">
<h5 class="mb-0 text-danger">
<i class="bi bi-person-x me-2"></i>Customer to be Deleted
</h5>
</div>
<div class="card-body">
<!-- Company Information -->
<div class="mb-4">
<h6 class="text-muted small text-uppercase mb-2">Company Information</h6>
<div class="row g-3">
<div class="col-md-8">
<label class="text-muted small mb-1">Company Name</label>
<p class="fw-semibold mb-0">@Model.CompanyName</p>
</div>
<div class="col-md-4">
<label class="text-muted small mb-1">Customer Type</label>
<p class="mb-0">
@if (Model.IsCommercial)
{
<span class="badge bg-primary">Commercial</span>
}
else
{
<span class="badge bg-secondary">Individual</span>
}
</p>
</div>
</div>
</div>
<hr />
<!-- Contact Information -->
<div class="mb-4">
<h6 class="text-muted small text-uppercase mb-2">Contact Information</h6>
<div class="row g-3">
<div class="col-md-6">
<label class="text-muted small mb-1">Contact Name</label>
<p class="mb-0">
@if (!string.IsNullOrEmpty(Model.ContactFirstName) || !string.IsNullOrEmpty(Model.ContactLastName))
{
<span>@Model.ContactFirstName @Model.ContactLastName</span>
}
else
{
<span class="text-muted">Not provided</span>
}
</p>
</div>
<div class="col-md-6">
<label class="text-muted small mb-1">Email</label>
<p class="mb-0">@Model.Email</p>
</div>
<div class="col-md-6">
<label class="text-muted small mb-1">Phone</label>
<p class="mb-0">@(Model.Phone ?? "Not provided")</p>
</div>
<div class="col-md-6">
<label class="text-muted small mb-1">Mobile Phone</label>
<p class="mb-0">@(Model.MobilePhone ?? "Not provided")</p>
</div>
</div>
</div>
<hr />
<!-- Address -->
<div class="mb-4">
<h6 class="text-muted small text-uppercase mb-2">Address</h6>
@if (!string.IsNullOrEmpty(Model.Address))
{
<p class="mb-1">@Model.Address</p>
<p class="mb-0">
@if (!string.IsNullOrEmpty(Model.City))
{
<span>@Model.City</span>
}
@if (!string.IsNullOrEmpty(Model.State))
{
<span>, @Model.State</span>
}
@if (!string.IsNullOrEmpty(Model.ZipCode))
{
<span> @Model.ZipCode</span>
}
</p>
}
else
{
<p class="text-muted mb-0">No address provided</p>
}
</div>
<hr />
<!-- Financial Information -->
<div class="mb-4">
<h6 class="text-muted small text-uppercase mb-2">Financial Information</h6>
<div class="row g-3">
<div class="col-md-4">
<label class="text-muted small mb-1">Current Balance</label>
<p class="mb-0 fw-semibold @(Model.CurrentBalance > 0 ? "text-danger" : "text-success")">
@Model.CurrentBalance.ToString("C")
</p>
</div>
<div class="col-md-4">
<label class="text-muted small mb-1">Credit Limit</label>
<p class="mb-0 fw-semibold">@Model.CreditLimit.ToString("C")</p>
</div>
<div class="col-md-4">
<label class="text-muted small mb-1">Payment Terms</label>
<p class="mb-0">@(Model.PaymentTerms ?? "Not set")</p>
</div>
</div>
</div>
@if (Model.CurrentBalance > 0)
{
<div class="alert alert-warning d-flex align-items-center">
<i class="bi bi-exclamation-circle me-2"></i>
<div>
<strong>Warning:</strong> This customer has an outstanding balance of @Model.CurrentBalance.ToString("C"). Please ensure all balances are settled before deletion.
</div>
</div>
}
<!-- Delete Form -->
<div class="d-flex gap-2 justify-content-end pt-3 border-top mt-4">
<a asp-action="Index" class="btn btn-outline-secondary px-4">
<i class="bi bi-x-circle me-2"></i>Cancel
</a>
<form asp-action="Delete" method="post" class="d-inline">
<input type="hidden" asp-for="Id" />
<button type="submit" class="btn btn-danger px-4">
<i class="bi bi-trash me-2"></i>Delete Customer
</button>
</form>
</div>
</div>
</div>
<!-- Additional Information -->
<div class="card border-0 shadow-sm mt-4">
<div class="card-body">
<h6 class="mb-3">
<i class="bi bi-info-circle me-2 text-info"></i>What happens when you delete a customer?
</h6>
<ul class="mb-0">
<li>The customer will be marked as deleted (soft delete)</li>
<li>They will no longer appear in active customer listings</li>
<li>All related jobs, quotes, and notes will be preserved</li>
<li>Historical records and reports will still include this customer</li>
<li>Administrators can restore deleted customers if needed</li>
</ul>
</div>
</div>
</div>
</div>