<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="pragma" content="no-cache" />

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css">
    <title>Education in India</title>
</head>

<body>
    <div class="side-menu">
        <div class="brand-name">
            <h1>Navigation</h1>
        </div>
        <ul>
            <li><a href="{{ url_for('index') }}"><img src="{{ url_for('static', filename='img/dashboard.png') }}" alt="">&nbsp; <span>Home</span></a></li>
            <li><a href="{{ url_for('students') }}"><img src="{{ url_for('static', filename='img/students_navbar.png') }}" alt="">&nbsp;<span>Students</span></a></li>
            <li><a href="{{ url_for('teachers') }}"><img src="{{ url_for('static', filename='img/teacher2.png') }}" alt="">&nbsp;<span>Teachers</span></a></li>
            <li><a href="{{ url_for('schools') }}"><img src="{{ url_for('static', filename='img/school.png') }}" alt="">&nbsp;<span>Schools</span></a></li>
            <li><a href="{{ url_for('classrooms') }}"><img src="{{ url_for('static', filename='img/payment.png') }}" alt="">&nbsp;<span>Classrooms</span></a></li>
            <li><a href="{{ url_for('facilities') }}"><img src="{{ url_for('static', filename='img/help-web-button.png') }}" alt="">&nbsp; <span>Facilities</span></a></li>
        </ul>
    </div>
    <div class="container">
        <div class="header">
            <div class="dashboard_title">
                Education in INDIA
            </div>
        </div>
        <div class="content">
            <div class="cards">
                <div class="card">
                    <div class="box">
                        <h1>2194</h1>
                        <h3>Students</h3>
                    </div>
                    <div class="icon-case">
                        <img src="{{ url_for('static', filename='img/students.png') }}" alt="">
                    </div>
                </div>
                <div class="card">
                    <div class="box">
                        <h1>53</h1>
                        <h3>Teachers</h3>
                    </div>
                    <div class="icon-case">
                        <img src="{{ url_for('static', filename='img/teachers.png') }}" alt="">
                    </div>
                </div>
                <div class="card">
                    <div class="box">
                        <h1>5</h1>
                        <h3>Schools</h3>
                    </div>
                    <div class="icon-case">
                        <img src="{{ url_for('static', filename='img/schools.png') }}" alt="">
                    </div>
                </div>
                <div class="card">
                    <div class="box">
                        <h1>150</h1>
                        <h3>Classrooms</h3>
                    </div>
                    <div class="icon-case">
                        <img src="{{ url_for('static', filename='img/income.png') }}" alt="">
                    </div>
                </div>
            </div>
            <div class="content-2">
                <div class="recent-payments">
                    <div class="title">
                        Schools
                    </div>
                    <form method="POST" action="/get_card_from_index">
                        <select name="dimension" class="dimension">
                            <option value="Students">Students</option>
                            <option value="Teachers">Teachers</option>
                            <option value="Schools">Schools</option>
                            <option value="Classrooms">Classrooms</option>
                        </select>
                        <input name="get_card_from_index" type="submit" value="Submit">
                    </form>
                    {% if card_from_index %}
                    <div>
                        <img src="{{ url_for('static', filename=card_from_index) }}">
                    </div>
                    {% else %}
                    <div>
                        <img src="{{ url_for('static', filename='img/sample_trend_schools.jpeg') }}">
                    </div>
                    {% endif %}
                </div>
            </div>
            <div class="content-2">
                <div class="new-students">
                    <div class="title">
                        Facilities
                    </div>
                    <form method="POST" action="/get_facilities_from_index">
                        <select name="facilities" class="facilities">
                            <option value="girls_toilet">Girl's Toilet</option>
                            <option value="ramp">Ramp</option>
                            <option value="drinking_water">Drinking Water</option>
                            <option value="enrolment_less_than_50">Enrolment &lt; 50</option>
                            <option value="single_classroom">Single Classrooms</option>
                            <option value="single_teacher">Single Teacher</option>
                        </select>
                        <input name="get_facilities_from_index" type="submit" value="Submit">
                        <!-- <button name="foo" value="upvote">Upvote</button> -->
                    </form>
                    {% if facilities_from_index %}
                    <div>
                        <img src="{{ url_for('static', filename=facilities_from_index) }}">
                    </div>
                    {% else %}
                    <div>
                        <img src="{{ url_for('static', filename='img/sample_trend_facilities.jpeg') }}">
                    </div>
                    {% endif %}
                </div>
            </div>
        </div>
    </div>
</body>

</html>