<?php
$imgPath = config('app')->imgPath;
try {
    $ns = options('nama_sekolah');
    $an = options('appname');
    $page_title = $page_title ?? (!empty($ns) ? $ns : (!empty($an) ? $an : 'APP NAME'));
} catch (\Throwable $th) {
    $page_title = "APP NAME";
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="<?= $page_title ?>">
    <meta name="google" content="notranslate" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="theme-color" content="#0134d4">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <!-- Title -->
    <title><?= $page_title ?></title>
    <!-- Fonts -->
    <link href="<?= base_url('vendors') ?>/gfont/css/font.css?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&amp;display=swap" rel="stylesheet">
    <!-- Favicon -->
    <link rel="icon" href="<?= favicon() ?>">
    <link rel="apple-touch-icon" href="<?= base_url($imgPath) ?>/app/icon-96x96.png">
    <link rel="apple-touch-icon" sizes="152x152" href="<?= base_url($imgPath) ?>/app/icon-152x152.png">
    <link rel="apple-touch-icon" sizes="167x167" href="<?= base_url($imgPath) ?>/app/icon-167x167.png">
    <link rel="apple-touch-icon" sizes="180x180" href="<?= base_url($imgPath) ?>/app/icon-180x180.png">
    <!-- CSS Libraries -->
    <link rel="stylesheet" href="<?= base_url('mobile') ?>/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?= base_url('mobile') ?>/css/bootstrap-icons.css">
    <!-- Core Stylesheet -->
    <link rel="stylesheet" href="<?= base_url() ?>/vendors/fontawesome-free-5.15.4-web/css/all.min.css">
    <link rel="stylesheet" href="<?= base_url('mobile') ?>/style.css?v=<?= versioningjs() ?>">
    <!-- Web App Manifest -->
    <link rel="manifest" href="<?= base_url() ?>/manifest.json?v=<?= versioningjs() ?>">
    <?= $this->renderSection('css') ?>

</head>