<?php session_start();?>
<?php include'includes/header.php'; ?>
<?php include'includes/sidebar.php';?>
<?php include'includes/functions.php';?>
<?php include'includes/navbar.php'; ?>

<?php
$userFullName = "Taiwo Tosin";
// $welcomeText = "Welcome back, " . $userFullName . "! Hope you have a productive day.<br>
// Can you sing for me oooo... Sing, sing, sing Hallelluyah";

$welcomeText = "Welcome dear Tosin to De-Greate Model College, please click play button to get started, wish you best of luck";
?>

<div id="notification-containers" class="notification-containers"></div>
<div class="insider">
    <div class="container">
        <div class="cat-pag">
            <!-- <div class="cat-page-header d-flex justify-content-between align-items-center">
                <h5>All Students</h5>
                <div>
                    <a href="test_score.php?class=<?=$class?>" class="btn info text-white">Add Test Scores <i class="fa fa-plus-circle"></i></a>

                    <a href="exam_score.php?class=<?=$class?>" class="btn invoice text-white">Add Exam Score <i class="fa fa-pen"></i></a>
                </div>
            </div> -->
            <div class="card-body" style="margin-top: 10px">
                
            </div>            
        </div>
   
    </div>
</div>

<script>
document.addEventListener('click', function speakOnce() {
    const text = <?php echo json_encode($welcomeText); ?>;
    const speech = new SpeechSynthesisUtterance(text);
    speech.lang = 'en-US';
    speech.rate = 1;
    speech.pitch = 1;
    window.speechSynthesis.speak(speech);
    document.removeEventListener('click', speakOnce);
});
</script>
<?php include'includes/notification-alert-js.php';?>
<?php include 'includes/footer.php'; ?>


