<?php use App\Core\{Csrf, Lang}; use function App\Core\{e, favicon_asset, logo_asset, url}; $musicLogo = logo_asset('music'); $favicon = favicon_asset(); ?><!doctype html>
<html lang="<?= e(Lang::current()) ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?= e($title ?? 'Zalorox Music') ?></title>
    <link rel="icon" type="image/png" href="<?= e(url('/assets/img/Fav-İcon.png')) ?>">
    <?php if ($favicon): ?><link rel="icon" href="<?= e(url($favicon)) ?>"><?php endif; ?>
    <?php if ($musicLogo): ?><link rel="preload" as="image" href="<?= e(url($musicLogo)) ?>"><?php endif; ?>
    <?php require BASE_PATH . '/app/Views/partials/theme-init.php'; ?>
    <link rel="stylesheet" href="/assets/css/app.css">
    <link rel="stylesheet" href="/assets/css/modal.css">
    <link rel="stylesheet" href="/assets/css/music.css">
</head>
<body data-area="music">
<?php require BASE_PATH . '/app/Views/partials/music-header.php'; ?>
<main><?= $content ?? '' ?></main>
<?php require BASE_PATH . '/app/Views/partials/footer.php'; ?>
<?php require BASE_PATH . '/app/Views/partials/modal.php'; ?>
<?php require BASE_PATH . '/app/Views/partials/cookie-consent.php'; ?>
<?php require BASE_PATH . '/app/Views/partials/toast.php'; ?>
<?php require BASE_PATH . '/app/Views/partials/music-mini-player.php'; ?>
<script>window.ZALOROX_API_BASE = <?= json_encode(url('/api')) ?>; window.ZALOROX_CSRF_TOKEN = <?= json_encode(Csrf::token()) ?>;</script>
<script src="/assets/js/app.js" defer></script>
<script src="/assets/js/modal.js" defer></script>
<script src="/assets/js/cookie-consent.js" defer></script>
<script src="/assets/js/music.js" defer></script>
<script src="/assets/js/comments.js" defer></script>
<script src="/assets/js/i18n.js" defer></script>
</body>
</html>
