<?php
$title = $pageTitle ?? 'Dashboard';
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Grow Tool Therapies Occupational Therapy CRM">
    <title><?= htmlspecialchars($title . ' · Grow Tool Therapies CRM', ENT_QUOTES, 'UTF-8') ?></title>
    <link rel="stylesheet" href="/crm/public/assets/css/app.css">
</head>
<body>
    <?php require dirname(__DIR__) . '/components/header.php'; ?>
    <div class="app-shell">
        <?php require dirname(__DIR__) . '/components/sidebar.php'; ?>
        <div class="app-main">
            <?php require dirname(__DIR__) . '/components/mobile-nav.php'; ?>
            <main class="page-container">
                <?php require dirname(__DIR__) . '/components/breadcrumbs.php'; ?>
                <?= $content ?>
            </main>
            <?php require dirname(__DIR__) . '/components/footer.php'; ?>
        </div>
    </div>
    <script src="/crm/public/assets/js/app.js" defer></script>
</body>
</html>
