32 lines
1.5 KiB
PHP
32 lines
1.5 KiB
PHP
<?php require_once __DIR__ . '/vite.php'; ?>
|
|
<!DOCTYPE html>
|
|
<html lang="th" class="antialiased">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title><?= $pageTitle ?? 'ระบบจัดการข้อมูลยานพาหนะ โรงพยาบาลเกาะสมุย' ?></title>
|
|
|
|
<link rel="manifest" href="public/manifest.json">
|
|
<meta name="theme-color" content="#0F6CBD">
|
|
<link rel="icon" type="image/png" href="public/images/logo.png">
|
|
<link rel="apple-touch-icon" href="public/images/logo.png">
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
|
|
|
<!-- Vite Assets -->
|
|
<?= vite('src/js/app.js') ?>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
|
|
|
<!-- Theme Script -->
|
|
<script>
|
|
if (localStorage.getItem('theme') === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
|
document.documentElement.classList.add('dark');
|
|
} else {
|
|
document.documentElement.classList.remove('dark');
|
|
}
|
|
</script>
|
|
</head>
|
|
<body x-data="themeStore" class="font-sans transition-colors duration-300 <?= $bodyClass ?? 'bg-slate-50 dark:bg-slate-900 text-slate-800 dark:text-slate-200' ?>" <?= $bodyAttributes ?? '' ?>>
|