first commit
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<!doctype html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= esc($title ?? 'finansePRO') ?></title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<style>
|
||||
body { background:#f5f6f8; }
|
||||
.stat-card .value { font-size:1.6rem; font-weight:600; }
|
||||
.amount-income { color:#1a7f37; }
|
||||
.amount-expense { color:#c62828; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<?php if (session()->get('logged_in')): ?>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-4">
|
||||
<div class="container">
|
||||
<a class="navbar-brand fw-bold" href="<?= site_url('dashboard') ?>">finansePRO</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#nav">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="nav">
|
||||
<ul class="navbar-nav me-auto">
|
||||
<li class="nav-item"><a class="nav-link" href="<?= site_url('dashboard') ?>">Pulpit</a></li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navFinance" role="button" data-bs-toggle="dropdown">Finanse bieżące</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="navFinance">
|
||||
<li><a class="dropdown-item" href="<?= site_url('finances') ?>">Pulpit finansów</a></li>
|
||||
<li><a class="dropdown-item" href="<?= site_url('operations') ?>">Operacje</a></li>
|
||||
<li><a class="dropdown-item" href="<?= site_url('categories') ?>">Kategorie</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navInvest" role="button" data-bs-toggle="dropdown">Inwestycje</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="navInvest">
|
||||
<li><a class="dropdown-item" href="<?= site_url('investments') ?>">Pulpit inwestycji</a></li>
|
||||
<li><a class="dropdown-item" href="<?= site_url('investments/operations') ?>">Wpłaty / wypłaty</a></li>
|
||||
<li><a class="dropdown-item" href="<?= site_url('investments/valuations') ?>">Wyceny</a></li>
|
||||
<li><a class="dropdown-item" href="<?= site_url('instruments') ?>">Instrumenty</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<span class="navbar-text text-light me-3 small"><?= esc(session()->get('user_email')) ?></span>
|
||||
<a class="btn btn-outline-light btn-sm" href="<?= site_url('logout') ?>">Wyloguj</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="container pb-5">
|
||||
<?php if (session()->getFlashdata('error')): ?>
|
||||
<div class="alert alert-danger"><?= esc(session()->getFlashdata('error')) ?></div>
|
||||
<?php endif; ?>
|
||||
<?php if (session()->getFlashdata('success')): ?>
|
||||
<div class="alert alert-success"><?= esc(session()->getFlashdata('success')) ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?= $this->renderSection('content') ?>
|
||||
</main>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts@3.54.1/dist/apexcharts.min.js"></script>
|
||||
<?= $this->renderSection('scripts') ?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user