@using MileageTraker.Web.ViewModels.FuelLog @model MatchViewModel @{ ViewBag.Title = "Match Fuel Log"; var fuelLog = Model.FuelLog; var matchedLogs = Model.MatchedLogs; var currentlyMatchedLog = Model.CurrentlyMatchedLog; var logViewModel = fuelLog.GetLogViewModel(); } @Html.Partial("_StatusMessage")

@ViewBag.Title

Fuel Log

Date Driver Tag Number Odometer Gas Purchased
@Html.ValueFor(x => fuelLog.Date, "{0:d}") @Html.ValueFor(x => fuelLog.DriverFullName) @Html.ValueFor(x => fuelLog.TagNumber) @if(string.IsNullOrEmpty(fuelLog.VehicleId)) { No Matching Vehicle} @Html.ValueFor(x => fuelLog.Odometer) @Html.ValueFor(x => fuelLog.GasPurchased, "{0:0.000}")

Currently Matched Mileage Log

@if (currentlyMatchedLog == null) { } else { }
Date Driver Tag Number Odometer Gas Purchased
Not Currently Matched
@Html.ValueFor(x => currentlyMatchedLog.Date, "{0:d}") @Html.ValueFor(x => currentlyMatchedLog.UserFullName) @Html.ValueFor(x => currentlyMatchedLog.VehicleTagNumber) @Html.ValueFor(x => currentlyMatchedLog.EndOdometer) @Html.ValueFor(x => currentlyMatchedLog.GasPurchased, "{0:0.000}") @Html.ActionLink("Details", "Details", "Log", new { id = currentlyMatchedLog.LogId }, new { @class = "btn btn-mini", target="_blank" })

Similiar Mileage Log entries

@if (!matchedLogs.Any()) { } else { foreach (var matchedLog in matchedLogs) { } }
Date Driver Tag Number Odometer Gas Purchased Match
No Results
@Html.ValueFor(x => matchedLog.Date, "{0:d}") @Html.ValueFor(x => matchedLog.UserFullName) @Html.ValueFor(x => matchedLog.VehicleTagNumber) @Html.ValueFor(x => matchedLog.EndOdometer) @Html.ValueFor(x => matchedLog.GasPurchased, "{0:0.000}") @using (Html.BeginForm("Match", "FuelLog", FormMethod.Post)) { }
@Html.Partial("MatchLogViewModelPartial", logViewModel)