@using RDB.Bindery.Extensions
@using Orchard.Search.ViewModels;

@{
    var searchText = new SearchViewModel();
    if (Model.ViewModel != null) {
        searchText = (SearchViewModel)Model.ViewModel;
    }
}

<header class="static-page-header">
    <h1 class="static-page-title">@Html.TitleForPage(T("Not found").ToString())</h1>
    <p class="static-page-subtitle">@T("The page you are looking for does not exist.")</p>
</header>

@if (WorkContext.IsFeatureEnabled("Orchard.Search")) 
{
    <h3>@T("Maybe try a search?")</h3>
    
    using (Html.BeginForm("index", "search", new { area = "Orchard.Search" }, FormMethod.Get)) {
        <div class="form-group">@Html.TextBox("q", searchText.Query, new { placeholder = @T("Search...") })</div>
    }
}