{% extends 'Admin/Sidebar2.html' %}
{% block content %}
{% load widget_tweaks %}
{%load static%}
<head>
        <!-- Font special for pages-->
        <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet">

        <!-- Main CSS-->

        <link href="{% static "css/main.css" %}"rel="stylesheet" media="all">
</head>
<div class=" >
    <div class="wrapper wrapper 0">

        <div style="margin-left: 0px;" class="card card-5">

                    <br/><br/>
            {% if messages %}
                  <div class="alert alert-danger" role="alert">

    {% for message in messages %}
     {% if message.tags %}    {% endif %}  {{ message }}
    {% endfor %}
 </div>
{% endif %}

            <div class="card-heading">
                <h2 class="title" style="color:#02111f"> NEXT MAINTAIN DATE PREDICTION   </h2>
            </div>





            <div class="card-body">
             <form action="/Admin/NextMaintain/" method="post">
    {% csrf_token %}
        <table class="table table-light">
            {{form3.as_table}}
    {{form.as_table}}


 </table>
<input type="submit" value="NEXT MAINTAIN DATE" class="btn btn--radius-2 btn" style="background:#02111f"/>


</form>
  <br>

{% if d %}
<center> <div class="alert alert-success">
  Predicted Date: {{ d }}
<br/>
    Approximate Price:    {{     forecastedPrice }}




</div> </center>
{% endif %}
<br>





<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br>

            </div>

       </div>
   </div>






<div class="alert alert-primary fixed-bottom mb-0 text-center" style="background: #747578; border: none; color: white;" role="alert"  > © SERVPORT 2022   </div>
</div>

{% endblock content %}

