@* For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 *@ @using Microsoft.AspNetCore.Mvc.Localization @using gehGassi.Web.Models @using Microsoft.Extensions.Localization @using gehGassi.Web.Helper @using gehGassi.Core.Services @using gehGassi.Web.Services @model gehGassi.Web.Models.WalkWithNamesVm @inject IViewLocalizer Localizer @inject ICountryService CountryService @inject ICurrentTimeZoneService CurrentTimeZoneService @{ IStringLocalizer annotationsLocalizer = ViewBag.AnnotationsLocalizer; TimeSpan userOffset = await CurrentTimeZoneService.GetOffsetAsync(); }
@Localizer["Common_DogOwner"]
@if (!string.IsNullOrWhiteSpace(Model.DogOwnerPhoto)) { } else { }

@Model.DogOwnerName

@Localizer["Common_DogWalker"]
@if (!string.IsNullOrWhiteSpace(Model.DogWalkerPhoto)) { } else { }

@Model.DogWalkerName

@annotationsLocalizer["Walk_Type"]
@Model.Type.GetDisplayName(annotationsLocalizer)
@annotationsLocalizer["Walk_ServiceType"]
@Model.ServiceType.GetDisplayName(annotationsLocalizer)
@annotationsLocalizer["Walk_Status"]
@Model.Status.GetDisplayName(annotationsLocalizer)
@annotationsLocalizer["Walk_PaymentType"]
@Model.PaymentType.GetDisplayName(annotationsLocalizer)
@annotationsLocalizer["Walk_PaymentStatus"]
@Model.PaymentStatus.GetDisplayName(annotationsLocalizer)
@annotationsLocalizer["Common_Created"]
@Model.Created.ToOffset(userOffset).ToString("g")
(@Model.UpdatedAt.ToOffset(userOffset).ToString("g"))
@annotationsLocalizer["Walk_Start"]
@Model.Start.ToOffset(userOffset).ToString("g")
@annotationsLocalizer["Walk_End"]
@Model.End.ToOffset(userOffset).ToString("g")
@annotationsLocalizer["Walk_Price"]
@Model.Price.ToString("n2")
@Localizer["Common_Address"] 1
@Model.PickupAddress_AddressLine1, @Model.PickupAddress_AddressLine2, @Model.PickupAddress_Zip, @Model.PickupAddress_City, @CountryService.GetState(Model.PickupAddress_CountryCode, Model.PickupAddress_State).Name, @CountryService.GetCountry(Model.PickupAddress_CountryCode).Name
@Localizer["Common_Address"] 2
@Model.ReturnAddress_AddressLine1, @Model.ReturnAddress_AddressLine2, @Model.ReturnAddress_Zip, @Model.ReturnAddress_City, @CountryService.GetState(Model.ReturnAddress_CountryCode, Model.ReturnAddress_State).Name, @CountryService.GetCountry(Model.ReturnAddress_CountryCode).Name
@annotationsLocalizer["Walk_Started"]
@(Model.Started != null ? Model.Started.Value.ToOffset(userOffset).ToString("g") : "-")
@annotationsLocalizer["Walk_Completed"]
@(Model.Completed != null ? Model.Completed.Value.ToOffset(userOffset).ToString("g") : "-")
@annotationsLocalizer["Walk_Confirmed"]
@(Model.Confirmed != null ? Model.Confirmed.Value.ToOffset(userOffset).ToString("g") : "-")
@annotationsLocalizer["Walk_Complained"]
@(Model.Complained != null ? Model.Complained.Value.ToOffset(userOffset).ToString("g") : "-")
@Localizer["Common_Dogs"] - @Model.DogCount
@string.Join(", ", Model.Dogs.Select(x => x.Name))
@annotationsLocalizer["Walk_Info"]
@if (!string.IsNullOrWhiteSpace(Model.Info)) { @Model.Info } else { - }
@annotationsLocalizer["Walk_CompletedInfo"]
@if (!string.IsNullOrWhiteSpace(Model.CompletedInfo)) { @Model.CompletedInfo } else { - }
@if (!string.IsNullOrWhiteSpace(Model.DeclinedReason)) {
@annotationsLocalizer["Walk_DeclinedReason"]
@Model.DeclinedReason
} @if(Model.Status == WalkStatusVm.Cancelled) {
@annotationsLocalizer["Walk_CancelledBy"]
@Model.CancelledBy.GetDisplayName(annotationsLocalizer)
} @if (!string.IsNullOrWhiteSpace(Model.CancelledReason)) {
@annotationsLocalizer["Walk_CancelledReason"]
@Model.CancelledReason
}