<?php
include "classes/class.loader.php";
$html = new html();
$html->bacground_emoji();
$calls = new functions();
$db = new db();
$DashboardWidget = new DashboardWidget();
echo DashboardWidget::includeAssets();
$html->header();
?>
<style>
    body {
        background-color: #bebebee7;
        color: white;
    }
</style>


<div class="home_container">
    <?php
    $services_res = $db->query("SELECT * FROM services WHERE 1 ORDER BY `name` ASC");
    while ($services = $services_res->fetch_assoc()) {
        $table_data[] = [
            $services['name'],
            $services['description'],
            $services['price'],
            "service.php?record_id=" . $services['record_id']
        ];
    }
    echo DashboardWidget::tableBlock(
        'Unleashed K9 Services',
        ['Name', 'Desc', 'Price'],
        $table_data,
        '90vw'
    );
    ?>
</div>

<?php $html->html_end(); ?>