<?php

use Lab\Helpers;

$flash = \Lab\Flash::pull();
$pageTitle = isset($title) ? $title . ' — ' . $appName : $appName;
$isKiosk = ! empty($kiosk);
$bodyClass = trim(($isKiosk ? 'kiosk-body ' : '') . ($bodyClass ?? ''));
?>
<!DOCTYPE html>
<html lang="<?= \Lab\I18n::lang() === 'en' ? 'en' : 'el' ?>">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
    <meta name="robots" content="noindex, nofollow">
    <meta name="csrf-token" content="<?= Helpers::csrfToken() ?>">
    <meta name="theme-color" content="#ff4d8d">
    <title><?= Helpers::e($pageTitle) ?></title>
    <link rel="icon" type="image/svg+xml" href="<?= Helpers::url('/favicon.svg') ?>">
    <link rel="icon" href="<?= Helpers::url('/favicon.ico') ?>" sizes="any">
    <link rel="apple-touch-icon" href="<?= Helpers::url('/apple-touch-icon.png') ?>">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;700;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="<?= Helpers::url('/assets/app.css') ?>?v=<?= (int) (@filemtime(__DIR__ . '/../../public/assets/app.css') ?: @filemtime(__DIR__ . '/../../assets/app.css')) ?>">
</head>
<body class="<?= Helpers::e($bodyClass) ?>">
