<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Simple CI4 App</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
 <div class="container">
  <a class="navbar-brand" href="/">Report</a>
  <div class="d-flex">
   <?php $session = session(); ?>
   <?php if ($session->get('access_token')): ?>
     <a class="btn btn-outline-light" href="/logout">Logout</a>
   <?php endif; ?>
  </div>
 </div>
</nav>
<div class="container py-4">
 <?= $this->renderSection('content') ?>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
