<div class="col-2" id="sidebar">
    <div class="row mt-1 m-0 p-3 border rounded" id="loginStatus">
        <?php

        if ($view->loginError) {
            require_once('Views/template/loginError.phtml');
        }
        if(!$user->isLoggedIn()) {
            require_once('Views/template/loginModal.phtml');
        }
        if($user->isLoggedIn()) {
            require_once('Views/template/logoutButton.phtml');
        }
        ?>
    </div>

    <div class="row mt-1 m-4 p-3 border rounded" id="filters">
        <h4 class="mb-4 text-center">Filter Options</h4>
        <form class="form-inline my-2 my-lg-0" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> ">
            <!--<input class="btn bg-primary btn-outline-primary text-light" type="submit" name="addFilter" value="+">-->
            <input name="0" class="form-control rounded mb-2" placeholder="Title">
            <input name="1" class="form-control rounded mb-2" placeholder="Category">
            <input name="2" class="form-control rounded mb-2" placeholder="Description">
            <input name="3" class="form-control rounded mb-2" placeholder="Status">
            <input name="4" class="form-control rounded mb-2" placeholder="Street Name">
            <input name="5" class="form-control rounded mb-2" placeholder="County">
            <input name="6" class="form-control rounded mb-2" placeholder="Town">
            <input name="7" class="form-control rounded mb-2" placeholder="Postcode">
            <input name="8" class="form-control rounded mb-2" placeholder="Contributor">
            <button name="applyFilters" class="form-control rounded mb-2 mt-3 btn bg-primary border-primary">Update</button>
            <button name="clearFilters" class="form-control rounded mb-2 btn bg-danger border-danger">Clear</button>
        </form>
    </div>
</div>