diff --git a/RentalBusiness/Views/Home/Contracts.cshtml b/RentalBusiness/Views/Home/Contracts.cshtml index 59fc9d6..22f1363 100644 --- a/RentalBusiness/Views/Home/Contracts.cshtml +++ b/RentalBusiness/Views/Home/Contracts.cshtml @@ -58,4 +58,8 @@ } +
+ + +
\ No newline at end of file diff --git a/RentalBusiness/Views/Home/TopCars.cshtml b/RentalBusiness/Views/Home/TopCars.cshtml new file mode 100644 index 0000000..1de26ee --- /dev/null +++ b/RentalBusiness/Views/Home/TopCars.cshtml @@ -0,0 +1,51 @@ +@model List +@{ + ViewData["Title"] = "TopCars"; +} +
+

Most popular cars

+
+
+ @{ + + + + + + + + + + @foreach (var item in Model) + { + + + + + + + + + } + +
+ Car + + Total + + ContractsQuantity +
+ @Html.DisplayFor(modelItem => item.CarInfo) + + @Html.DisplayFor(modelItem => item.CustomerFullName) + + @Html.DisplayFor(modelItem => item.CurDate) + + @Html.DisplayFor(modelItem => item.ReturnDate) + + @Html.DisplayFor(modelItem => item.Price) + + @Html.DisplayFor(modelItem => item.Status) +
+ } +
\ No newline at end of file