<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?= $_page->title ?> | <?= setting('company_name') ?></title>
  <meta name="csrf-token" content="<?= csrf_hash() ?>"/>
  <?= $this->include("admin/layout/partials/styles") ?>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
  <?= $this->include("frontend/layout/partials/header") ?>
  <div class="content-wrapper rm-mobile-pad">
    <?= $this->include('admin/layout/partials/notification') ?>
    <?= $this->renderSection("content") ?>
  </div>
  <?= $this->include("admin/layout/partials/footer") ?>
</div>
<?php
$uri = service('uri');
$seg1 = $uri ? ($uri->getSegment(1) ?: '') : '';
?>
<?php if ($seg1 === 'user'): ?>
  <?= $this->include('frontend/partials/rm_bottom_nav') ?>
  <?= $this->include('frontend/partials/rm_spinwheel_support') ?>
<?php endif ?>
<?= $this->include("frontend/layout/partials/scripts") ?>
</body>
</html>

