<?php     
require_once 'includes/header.php';
require_once 'db.connect.php';
require_once 'helpers/func/helper.php';
require_once 'helpers/classes/User.php';
?>

<div class="container">
    <div class="row">
        <div class="col s12 m12 l12">
            <div class="row">
                <div class="col s12 l12">
        <?php
            if(isset($_GET['id'])){
                // select one user
                require_once 'includes/components/individual-user.php'
        ?>
        
        <?php
            }else{
                // select all users
        ?>
                    <ul class="collection">
                        <?php require_once 'includes/components/user-display.php'?>
                    </ul>
        <?php } ?>
                </div>
            </div>
        </div>
    </div>
</div>
<?php     
require_once 'includes/footer.php';
?>