Skip to content

Firefly III: a personal finances manager

Expand views and todos.

James Cole811529458279
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index da8f692a67..62b343e586 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -24,6 +24,7 @@ declare(strict_types=1);
namespace FireflyIII\Providers;
use Illuminate\Support\Facades\Blade;
+use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Response;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Schema;
@@ -57,6 +58,17 @@ class AppServiceProvider extends ServiceProvider
return response()->json($value)->withHeaders($headers);
});
+ // blade extension for active menu link
+ Blade::directive('menuItemActive', function (string $route): string {
+ $name = Route::getCurrentRoute()->getName() ?? '';
+ Log::debug(sprintf('menuItemActive("%s", "%s")', $route, $name));
+ if (str_contains($route, $name)) {
+ return 'active';
+ }
+
+ return '';
+ });
+
// blade extension
Blade::directive('activeXRoutePartial', function (string $route): string {
$name = Route::getCurrentRoute()->getName() ?? '';
diff --git a/app/View/Components/Layout/CreateMenu.php b/app/View/Components/Layout/CreateMenu.php
new file mode 100644
index 0000000000..ddd439bf5a
--- /dev/null
+++ b/app/View/Components/Layout/CreateMenu.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace FireflyIII\View\Components\Layout;
+
+use Closure;
+use Illuminate\Contracts\View\View;
+use Illuminate\View\Component;
+
+class CreateMenu extends Component
+{
+ /**
+ * Create a new component instance.
+ */
+ public function __construct()
+ {
+ //
+ }
+
+ /**
+ * Get the view / contents that represent the component.
+ */
+ public function render(): View|Closure|string
+ {
+ return view('components.layout.create-menu');
+ }
+}
diff --git a/app/View/Components/Layout/UserMenu.php b/app/View/Components/Layout/UserMenu.php
new file mode 100644
index 0000000000..548e87301f
--- /dev/null
+++ b/app/View/Components/Layout/UserMenu.php
@@ -0,0 +1,26 @@
+<?php
+
+namespace FireflyIII\View\Components\Layout;
+
+use Closure;
+use Illuminate\Contracts\View\View;
+use Illuminate\View\Component;
+
+class UserMenu extends Component
+{
+ /**
+ * Create a new component instance.
+ */
+ public function __construct()
+ {
+ //
+ }
+
+ /**
+ * Get the view / contents that represent the component.
+ */
+ public function render(): View|Closure|string
+ {
+ return view('components.layout.user-menu');
+ }
+}
diff --git a/resources/assets/v3/js/boot/bootstrap.js b/resources/assets/v3/js/boot/bootstrap.js
index 020cb9f560..af35106cea 100644
--- a/resources/assets/v3/js/boot/bootstrap.js
+++ b/resources/assets/v3/js/boot/bootstrap.js
@@ -28,7 +28,11 @@ console.log('Loaded A');
// start alpine JS
window.Alpine = Alpine
-Alpine.start()
console.log('Loaded B');
+const event = new Event('firefly-iii-bootstrapped');
+document.dispatchEvent(event);
+window.bootstrapped = true;
+
+console.log('Bootstrapped!');
diff --git a/resources/assets/v3/js/pages/dashboard/dashboard.js b/resources/assets/v3/js/pages/dashboard/dashboard.js
index 81e33e9536..5c9fb40fa3 100644
--- a/resources/assets/v3/js/pages/dashboard/dashboard.js
+++ b/resources/assets/v3/js/pages/dashboard/dashboard.js
@@ -18,8 +18,46 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+// CSS
+// import "admin-lte/dist/css/adminlte.min.css"
+// Plus Bootstrap and dependency CSS
+import "bootstrap-icons/font/bootstrap-icons.css"
+// import "overlayscrollbars/styles/overlayscrollbars.css"
+
+
import '../../boot/bootstrap.js';
+import sidebar from '../../pages/shared/sidebar.js';
+
+let index = function () {
+ return {
+ foo2: 'bar2',
+ init() {
+ console.log('init op index')
+ }
+ }
+};
+
+const comps = {
+ index,
+ sidebar
+};
+function loadPage(comps) {
+ Object.keys(comps).forEach(comp => {
+ let data = comps[comp]();
+ Alpine.data(comp, () => data);
+ });
+ Alpine.start();
+}
-console.log('Loaded C');
+// wait for load until bootstrapped event is received.
+document.addEventListener('firefly-iii-bootstrapped', () => {
+ console.log('Loaded through event listener.');
+ loadPage(comps);
+});
+// or is bootstrapped before event is triggered.
+if (window.bootstrapped) {
+ console.log('Loaded through window variable.');
+ loadPage(comps);
+}
diff --git a/resources/assets/v3/js/pages/shared/sidebar.js b/resources/assets/v3/js/pages/shared/sidebar.js
new file mode 100644
index 0000000000..6b45c79005
--- /dev/null
+++ b/resources/assets/v3/js/pages/shared/sidebar.js
@@ -0,0 +1,31 @@
+/*
+ * sidebar.js
+ * Copyright (c) 2026 [email protected]
+ *
+ * This file is part of Firefly III (https://github.com/firefly-iii).
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+export default () => ({
+ foo: 'bar',
+ init() {
+ console.log('init op sidebar')
+ },
+ logoutUser(e) {
+ e.preventDefault();
+ document.getElementById('logout-form').submit();
+ console.log('Logout user');
+ }
+});
diff --git a/resources/assets/v3/sass/app.scss b/resources/assets/v3/sass/app.scss
index 068babe1ff..22dcce4cce 100644
--- a/resources/assets/v3/sass/app.scss
+++ b/resources/assets/v3/sass/app.scss
@@ -36,15 +36,15 @@ $success: #64B624 !default;
$success: $success
);
-@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/variables' with (
- $font-path: "@fortawesome/fontawesome-free/webfonts"
-);
-
-@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/fontawesome';
-@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/fa' as fa;
-@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/solid' as fa-solid;
-@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/brands' as fa-brands;
-@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/regular' as fa-regular;
+//@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/variables' with (
+// $font-path: "@fortawesome/fontawesome-free/webfonts"
+//);
+
+//@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/fontawesome';
+//@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/fa' as fa;
+//@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/solid' as fa-solid;
+//@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/brands' as fa-brands;
+//@use '../../../../node_modules/@fortawesome/fontawesome-free/scss/regular' as fa-regular;
// some local CSS
diff --git a/resources/views/components/layout/create-menu.blade.php b/resources/views/components/layout/create-menu.blade.php
new file mode 100644
index 0000000000..fd9e50c13e
--- /dev/null
+++ b/resources/views/components/layout/create-menu.blade.php
@@ -0,0 +1,83 @@
+<!-- begin create menu -->
+<li class="nav-item dropdown">
+ <a class="nav-link" data-bs-toggle="dropdown" href="#" aria-expanded="false">
+ <i class="bi bi-chat-text"></i>
+ <span class="navbar-badge badge text-bg-danger">3</span>
+ </a>
+ <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
+ <a href="#" class="dropdown-item">
+ <!--begin::Message-->
+ <div class="d-flex">
+ <div class="flex-shrink-0">
+ <img src="./assets/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 rounded-circle me-3">
+ </div>
+ <div class="flex-grow-1">
+ <h3 class="dropdown-item-title">
+ Brad Diesel
+ <span class="float-end fs-7 text-danger"><i class="bi bi-star-fill"></i></span>
+ </h3>
+ <p class="fs-7">Call me whenever you can...</p>
+ <p class="fs-7 text-secondary">
+ <i class="bi bi-clock-fill me-1"></i> 4 Hours Ago
+ </p>
+ </div>
+ </div>
+ <!--end::Message-->
+ </a>
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ <!--begin::Message-->
+ <div class="d-flex">
+ <div class="flex-shrink-0">
+ <img src="./assets/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 rounded-circle me-3">
+ </div>
+ <div class="flex-grow-1">
+ <h3 class="dropdown-item-title">
+ John Pierce
+ <span class="float-end fs-7 text-secondary">
+ <i class="bi bi-star-fill"></i>
+ </span>
+ </h3>
+ <p class="fs-7">I got your message bro</p>
+ <p class="fs-7 text-secondary">
+ <i class="bi bi-clock-fill me-1"></i> 4 Hours Ago
+ </p>
+ </div>
+ </div>
+ <!--end::Message-->
+ </a>
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ <!--begin::Message-->
+ <div class="d-flex">
+ <div class="flex-grow-1">
+ <h3 class="dropdown-item-title">
+ <em class="bi bi-car-front"></em> Nora SilvesterX
+ </h3>
+ </div>
+ </div>
+ <!--end::Message-->
+ </a>
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ <!--begin::Message-->
+ <div class="d-flex">
+ <div class="flex-grow-1">
+ <p class="fs-7">The subject goes here</p>
+ </div>
+ </div>
+ <!--end::Message-->
+ </a>
+
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ Bla bla
+
+ <!--end::Message-->
+ </a>
+
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
+ </div>
+</li>
+<!-- end create menu -->
diff --git a/resources/views/components/layout/sidebar.blade.php b/resources/views/components/layout/sidebar.blade.php
index 51280d7e58..af7b04d142 100644
--- a/resources/views/components/layout/sidebar.blade.php
+++ b/resources/views/components/layout/sidebar.blade.php
@@ -5,35 +5,36 @@
aria-label="Main navigation"
data-accordion="false"
id="navigation"
+ x-data="sidebar"
>
<!-- <li class="nav-item menu-open"> -->
<!-- <a href="route('index')" class="nav-link active"> -->
<li class="nav-item">
- <a href="{{ route('index') }}" class="nav-link">
- <em class="nav-icon fa fa-gauge"></em>
+ <a href="{{ route('index') }}" class="nav-link @menuItemActive('index')">
+ <em class="nav-icon bi bi-speedometer"></em>
<p>{{ __('firefly.dashboard') }}</p>
</a>
</li>
<li class="nav-header text-uppercase">{{ __('firefly.financial_control') }}</li>
<li class="nav-item">
- <a href="{{ route('budgets.index') }}" class="nav-link">
- <em class="nav-icon fa fa-pie-chart"></em>
+ <a href="{{ route('budgets.index') }}" class="nav-link @menuItemActive('budgets')">
+ <em class="nav-icon bi bi-pie-chart"></em>
<p>
{{ __('firefly.budgets') }}
</p>
</a>
</li>
<li class="nav-item">
- <a href="{{ route('subscriptions.index') }}" class="nav-link">
- <em class="nav-icon fa fa-calendar"></em>
+ <a href="{{ route('subscriptions.index') }}" class="nav-link @menuItemActive('subscriptions')">
+ <em class="nav-icon bi bi-calendar"></em>
<p>
{{ __('firefly.subscriptions') }}
</p>
</a>
</li>
<li class="nav-item">
- <a href="{{ route('piggy-banks.index') }}" class="nav-link">
- <em class="nav-icon fa fa-bullseye"></em>
+ <a href="{{ route('piggy-banks.index') }}" class="nav-link @menuItemActive('piggy-banks')">
+ <em class="nav-icon bi bi-bullseye"></em>
<p>
{{ __('firefly.piggyBanks') }}
</p>
@@ -43,10 +44,10 @@
<li class="nav-item">
<a href="#" class="nav-link">
- <em class="nav-icon fa fa-wallet"></em>
+ <em class="nav-icon bi bi-wallet"></em>
<p>
{{ __('firefly.transactions') }}
- <em class="nav-arrow fa fa-chevron-right"></em>
+ <em class="nav-arrow bi bi-chevron-right"></em>
</p>
</a>
<ul class="nav nav-treeview">
@@ -81,7 +82,7 @@
<em class="nav-icon bi bi-cpu"></em>
<p>
{{ __('firefly.automation') }}
- <i class="nav-arrow fa fa-chevron-right"></i>
+ <em class="nav-arrow bi bi-chevron-right"></em>
</p>
</a>
<ul class="nav nav-treeview">
@@ -121,25 +122,25 @@
<em class="nav-icon bi bi-credit-card"></em>
<p>
{{__('firefly.accounts')}}
- <i class="nav-arrow fa fa-chevron-right"></i>
+ <em class="nav-arrow bi bi-chevron-right"></em>
</p>
</a>
<ul class="nav nav-treeview">
<li class="nav-item">
<a href="{{ route('accounts.index', ['asset']) }}" class="nav-link">
- <i class="nav-icon bi bi-cash"></i>
+ <em class="nav-icon bi bi-cash"></em>
<p>{{ __('firefly.asset_accounts') }}</p>
</a>
</li>
<li class="nav-item">
<a href="{{ route('accounts.index', ['expense']) }}" class="nav-link">
- <i class="nav-icon bi bi-cart"></i>
+ <em class="nav-icon bi bi-cart"></em>
<p>{{trans('firefly.expense_accounts')}}</p>
</a>
</li>
<li class="nav-item">
<a href="{{ route('accounts.index', ['revenue']) }}" class="nav-link">
- <i class="nav-icon bi bi-box-arrow-down"></i>
+ <em class="nav-icon bi bi-box-arrow-down"></em>
<p>{{ __('firefly.revenue_accounts') }}</p>
</a>
</li>
@@ -157,7 +158,7 @@
<em class="nav-icon bi bi-tags"></em>
<p>
{{trans('firefly.classification')}}
- <em class="nav-arrow fa fa-chevron-right"></em>
+ <em class="nav-arrow bi bi-chevron-right"></em>
</p>
</a>
<ul class="nav nav-treeview">
@@ -211,8 +212,8 @@
@if('web' === $authGuard)
<li class="nav-item">
- <a href="{{ route('logout') }}" class="nav-link logout-link">
- <em class="nav-icon bi bi-person-x text-danger"></em>
+ <a href="{{ route('logout') }}" @click="logoutUser" class="nav-link logout-link">
+ <em class="nav-icon bi bi-person text-danger"></em>
<p>{{ __('firefly.logout') }}</p>
</a>
</li>
@@ -220,7 +221,7 @@
@if('remote_user_guard' === $authGuard && '' !== $logoutUrl)
<li class="nav-item">
<a href="{{ $logoutUrl }}" class="nav-link logout-link">
- <em class="nav-icon bi bi-person-x text-danger"></em>
+ <em class="nav-icon bi bi-person text-danger"></em>
<p>{{ __('firefly.logout') }}</p>
</a>
</li>
diff --git a/resources/views/components/layout/user-menu.blade.php b/resources/views/components/layout/user-menu.blade.php
new file mode 100644
index 0000000000..7ab37ea3a1
--- /dev/null
+++ b/resources/views/components/layout/user-menu.blade.php
@@ -0,0 +1,28 @@
+<li class="nav-item dropdown">
+ <a class="nav-link" data-bs-toggle="dropdown" href="#">
+ <em class="bi bi-person"></em>
+ </a>
+ <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
+ <span class="dropdown-item dropdown-header">{{ Auth::user()->email }}</span>
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ <i class="bi bi-envelope me-2"></i> Profile
+ </a>
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ <i class="bi bi-people-fill me-2"></i> Preferences
+ </a>
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ <i class="bi bi-file-earmark-fill me-2"></i> Tokens
+ </a>
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ <i class="bi bi-file-earmark-fill me-2"></i> Financial administrations
+ </a>
+ <div class="dropdown-divider"></div>
+ <a href="#" class="dropdown-item">
+ <i class="bi bi-file-earmark-fill me-2"></i> System settings
+ </a>
+ </div>
+</li>
diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php
index e64b5c27d1..e614b0f6a2 100644
--- a/resources/views/index.blade.php
+++ b/resources/views/index.blade.php
@@ -3,9 +3,14 @@
TODO boxes
TODO charts
TODO piggy bank overview
+ TODO side menu voor het maken van shit
+ TODO internals modal voor pagina settings
+ TODO wizard modal voor weet ik veel
+ TODO dark mode ook onthouden en dat script in het template
+ TODO fix create menu.
- <div class="row">
+ <div class="row" x-data="index">
<div class="col-lg-8 col-md-12 col-sm-12">
<!--ACCOUNTS -->
<div class="box box-primary">
diff --git a/resources/views/layout/v2/session.blade.php b/resources/views/layout/v2/session.blade.php
index 4079179d83..51723b92de 100644
--- a/resources/views/layout/v2/session.blade.php
+++ b/resources/views/layout/v2/session.blade.php
@@ -62,7 +62,7 @@
})()
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- @vite(['src/sass/app.scss'])
+ @vite(['sass/app.scss'])
</head>
<body class="login-page bg-body-secondary">
diff --git a/resources/views/layout/v3/session.blade.php b/resources/views/layout/v3/session.blade.php
index cccd490d89..aa6147e17b 100644
--- a/resources/views/layout/v3/session.blade.php
+++ b/resources/views/layout/v3/session.blade.php
@@ -53,7 +53,7 @@
</head>
<!--end::Head-->
<!--begin::Body-->
-<body class="layout-fixed sidebar-expand-lg bg-body-tertiary">
+<body class="layout-fixed sidebar-mini sidebar-expand-lg bg-body-tertiary">
<!--begin::App Wrapper-->
<div class="app-wrapper">
<!--begin::Header-->
@@ -67,158 +67,17 @@
<i class="bi bi-list"></i>
</a>
</li>
- <!--
- <li class="nav-item d-none d-md-block">
- <a href="./index.html" class="nav-link">
- <i class="bi bi-grid-1x2 me-1" aria-hidden="true"></i>
- Live preview
- </a>
- </li>
- -->
- <!--
- <li class="nav-item d-none d-md-block">
- <a href="./docs/introduction.html" class="nav-link">
- <i class="bi bi-book me-1" aria-hidden="true"></i>
- Documentation
- </a>
- </li>
- -->
</ul>
- <!--end::Start Navbar Links-->
-
<!--begin::End Navbar Links-->
<ul class="navbar-nav ms-auto">
<!--begin::Navbar Search-->
<li class="nav-item">
<a class="nav-link" data-widget="navbar-search" href="{{route('search.index')}}" role="button">
- <i class="bi bi-search"></i>
+ <em class="bi bi-search"></em>
</a>
</li>
<!--end::Navbar Search-->
- <!--begin::Messages Dropdown Menu-->
- {{--
- <li class="nav-item dropdown">
- <a class="nav-link" data-bs-toggle="dropdown" href="#">
- <i class="bi bi-chat-text"></i>
- <span class="navbar-badge badge text-bg-danger">3</span>
- </a>
- <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
- <a href="#" class="dropdown-item">
- <!--begin::Message-->
- <div class="d-flex">
- <div class="flex-shrink-0">
- <img
- src="./assets/img/user1-128x128.jpg"
- alt="User Avatar"
- class="img-size-50 rounded-circle me-3"
- />
- </div>
- <div class="flex-grow-1">
- <h3 class="dropdown-item-title">
- Brad Diesel
- <span class="float-end fs-7 text-danger"
- ><i class="bi bi-star-fill"></i
- ></span>
- </h3>
- <p class="fs-7">Call me whenever you can...</p>
- <p class="fs-7 text-secondary">
- <i class="bi bi-clock-fill me-1"></i> 4 Hours Ago
- </p>
- </div>
- </div>
- <!--end::Message-->
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <!--begin::Message-->
- <div class="d-flex">
- <div class="flex-shrink-0">
- <img
- src="./assets/img/user8-128x128.jpg"
- alt="User Avatar"
- class="img-size-50 rounded-circle me-3"
- />
- </div>
- <div class="flex-grow-1">
- <h3 class="dropdown-item-title">
- John Pierce
- <span class="float-end fs-7 text-secondary">
- <i class="bi bi-star-fill"></i>
- </span>
- </h3>
- <p class="fs-7">I got your message bro</p>
- <p class="fs-7 text-secondary">
- <i class="bi bi-clock-fill me-1"></i> 4 Hours Ago
- </p>
- </div>
- </div>
- <!--end::Message-->
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <!--begin::Message-->
- <div class="d-flex">
- <div class="flex-shrink-0">
- <img
- src="./assets/img/user3-128x128.jpg"
- alt="User Avatar"
- class="img-size-50 rounded-circle me-3"
- />
- </div>
- <div class="flex-grow-1">
- <h3 class="dropdown-item-title">
- Nora Silvester
- <span class="float-end fs-7 text-warning">
- <i class="bi bi-star-fill"></i>
- </span>
- </h3>
- <p class="fs-7">The subject goes here</p>
- <p class="fs-7 text-secondary">
- <i class="bi bi-clock-fill me-1"></i> 4 Hours Ago
- </p>
- </div>
- </div>
- <!--end::Message-->
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
- </div>
- </li>
- --}}
- <!--end::Messages Dropdown Menu-->
-
- <!--begin::Notifications Dropdown Menu-->
- {{--
- <li class="nav-item dropdown">
- <a class="nav-link" data-bs-toggle="dropdown" href="#">
- <i class="bi bi-bell-fill"></i>
- <span class="navbar-badge badge text-bg-warning">15</span>
- </a>
- <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
- <span class="dropdown-item dropdown-header">15 Notifications</span>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="bi bi-envelope me-2"></i> 4 new messages
- <span class="float-end text-secondary fs-7">3 mins</span>
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="bi bi-people-fill me-2"></i> 8 friend requests
- <span class="float-end text-secondary fs-7">12 hours</span>
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="bi bi-file-earmark-fill me-2"></i> 3 new reports
- <span class="float-end text-secondary fs-7">2 days</span>
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item dropdown-footer"> See All Notifications </a>
- </div>
- </li>
- --}}
- <!--end::Notifications Dropdown Menu-->
-
<!--begin::Fullscreen Toggle-->
<li class="nav-item">
<a class="nav-link" href="#" data-lte-toggle="fullscreen">
@@ -286,70 +145,9 @@
</ul>
</li>
<!--end::Color Mode Toggle-->
+ <x-layout.create-menu />
+ <x-layout.user-menu />
- <!--begin::User Menu Dropdown-->
- {{--
- <li class="nav-item dropdown user-menu">
- <a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">
- <span class="d-none d-md-inline"> {{ Auth::user()->email }}</span>
- </a>
- <ul class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
-
- <!--begin::User Image-->
-
- <!--end::User Image-->
- <!--begin::Menu Body-->
- <li class="user-body">
- <!--begin::Row-->
- <div class="row">
- <div>
- <em class="nav-icon bi bi-sliders"></em> <a href="#">Friends</a>
- </div>
- </div>
- <div class="row">
- <div>
- <em class="nav-icon bi bi-sliders"></em> <a href="#">Friends</a>
- </div>
- </div>
- <!--end::Row-->
- </li>
- <!--end::Menu Body-->
- <!--begin::Menu Footer-->
- <li class="user-footer">
- <a href="#" class="btn btn-outline-danger float-end">Sign out</a>
- </li>
- <!--end::Menu Footer-->
- </ul>
- </li>
- --}}
- <li class="nav-item dropdown">
- <a class="nav-link" data-bs-toggle="dropdown" href="#">
- <em class="bi bi-person"></em>
- </a>
- <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end">
- <span class="dropdown-item dropdown-header">{{ Auth::user()->email }}</span>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="bi bi-envelope me-2"></i> Profile
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="bi bi-people-fill me-2"></i> Preferences
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="bi bi-file-earmark-fill me-2"></i> Financial administrations
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="bi bi-file-earmark-fill me-2"></i> Financial administrations
- </a>
- <div class="dropdown-divider"></div>
- <a href="#" class="dropdown-item">
- <i class="bi bi-file-earmark-fill me-2"></i> System settings
- </a>
- </div>
- </li>
<!--end::User Menu Dropdown-->
</ul>
<!--end::End Navbar Links-->
@@ -362,7 +160,7 @@
<!--begin::Sidebar Brand-->
<div class="sidebar-brand">
<!--begin::Brand Link-->
- <a href="./index.html" class="brand-link">
+ <a href="{{ route('index') }}" class="brand-link">
<!--begin::Brand Image-->
<img
src="./images/logo-session.png"
@@ -385,6 +183,7 @@
<!--end::Sidebar Menu-->
<!-- Docs CTA (bottom of sidebar) -->
+ {{--
<div class="p-3 mt-3 border-top border-secondary border-opacity-25">
<a
href="https://docs.firefly-iii.org/"
@@ -394,6 +193,7 @@
{{ trans('firefly.view_documentation') }}
</a>
</div>
+ --}}
</nav>
</div>
<!--end::Sidebar Wrapper-->
@@ -545,6 +345,9 @@
<!-- jsvectormap -->
<!-- jsvectormap -->
<!--end::Script-->
+<form id="logout-form" action="{{ route('logout') }}" method="POST" class="hidden">
+ <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
+</form>
</body>
<!--end::Body-->
</html>