From b008787c611d2dc06b035af9f7ceb7af01ef291e Mon Sep 17 00:00:00 2001 From: Flavio Barachino Date: Sun, 1 Oct 2023 16:53:28 +0200 Subject: [PATCH] Cambio template sulla dashboard --- config/adminlte.php | 124 ++++++++------ resources/views/layouts/dashboard.blade.php | 152 ++++++++++++++--- resources/views/test.blade.php | 4 + routes/web.php | 3 +- tests/Snippets/snippets.html | 179 ++++++++++++++++++++ 5 files changed, 386 insertions(+), 76 deletions(-) create mode 100644 resources/views/test.blade.php create mode 100644 tests/Snippets/snippets.html diff --git a/config/adminlte.php b/config/adminlte.php index 8977dc1..da62974 100644 --- a/config/adminlte.php +++ b/config/adminlte.php @@ -307,82 +307,98 @@ return [ 'text' => 'search', ], [ - 'text' => 'blog', - 'url' => 'admin/blog', + 'text' => 'Dashboard', + 'url' => '/admin', 'can' => 'manage-blog', ], [ - 'text' => 'pages', - 'url' => 'admin/pages', - 'icon' => 'far fa-fw fa-file', - 'label' => 4, - 'label_color' => 'success', - ], - ['header' => 'account_settings'], - [ - 'text' => 'profile', - 'url' => 'admin/settings', - 'icon' => 'fas fa-fw fa-user', - ], - [ - 'text' => 'change_password', - 'url' => 'admin/settings', - 'icon' => 'fas fa-fw fa-lock', - ], - [ - 'text' => 'multilevel', - 'icon' => 'fas fa-fw fa-share', + 'text' => 'Gestione Economica', + 'url' => '#', + 'icon' => 'far fa-fw fa-money-bills', + 'submenu' => [ [ - 'text' => 'level_one', + 'text' => 'Lista movimenti', 'url' => '#', ], [ - 'text' => 'level_one', - 'url' => '#', + 'text' => 'Categorie', + 'url' => '#', + ], + [ + 'text' => 'Tags', + 'url' => '#', + ], + [ + 'text' => 'Report Movimenti', + 'url' => '#', + ], + [ + 'text' => 'Bilancio annuale', + 'url' => '#', + ], + [ + 'text' => 'Import/Export', + 'url' => '#', + 'icon' => 'fas fa-fw fa-sync', 'submenu' => [ [ - 'text' => 'level_two', + 'text' => 'Esporta tutti i movimenti', 'url' => '#', ], [ - 'text' => 'level_two', - 'url' => '#', - 'submenu' => [ - [ - 'text' => 'level_three', - 'url' => '#', - ], - [ - 'text' => 'level_three', - 'url' => '#', - ], - ], + 'text' => 'Importa Estratto conto ING', + 'url' => '#', + ], + [ + 'text' => 'Importa Estratto conto Cassa Rurale', + 'url' => '#', ], ], ], + ], + ], + ['header' => 'GESTIONE BENI'], + [ + 'text' => 'Contratti', + 'url' => '#', + 'icon' => 'fas fa-fw fa-newspaper', + 'can' => 'contratti', + ], + [ + 'text' => 'Automobili', + 'url' => '#', + 'icon' => 'fas fa-fw fa-car', + ], + [ + 'text' => 'Progetti', + 'url' => '#', + 'icon' => 'fas fa-fw fa-todo', + ], + [ + 'text' => 'Attività', + 'url' => '#', + 'icon' => 'fas fa-fw fa-todo', + ], + ['header' => 'GESTIONE PIM'], + [ + 'text' => 'Contatti', + 'url' => '/admin/contatti', + 'icon' => 'fas fa-fw fa-user', + 'submenu' => [ [ - 'text' => 'level_one', - 'url' => '#', + 'text' => 'Nuovo Contatto', + 'url' => '/admin/contatti/new', ], ], ], - ['header' => 'labels'], [ - 'text' => 'important', - 'icon_color' => 'red', - 'url' => '#', - ], - [ - 'text' => 'warning', - 'icon_color' => 'yellow', - 'url' => '#', - ], - [ - 'text' => 'information', - 'icon_color' => 'cyan', - 'url' => '#', + 'text' => 'Appuntamenti', + 'url' => '#', + 'icon' => 'fas fa-fw fa-calendar', ], + + ], /* diff --git a/resources/views/layouts/dashboard.blade.php b/resources/views/layouts/dashboard.blade.php index 6261f7f..6ae56dc 100644 --- a/resources/views/layouts/dashboard.blade.php +++ b/resources/views/layouts/dashboard.blade.php @@ -1,14 +1,20 @@ -@extends('admin') +@extends('adminlte::page') + +@section('content_header') +

Dashboard

+@endsection + @section('content') -
+ +
@hasanyrole('user|admin') - + +
--> +
+
+ +
+ Entrate {{ date('Y') }} + {{ $entrate }} + + +
+
+
+ +
+
+ +
+ Uscite {{ date('Y') }} + {{ $uscite }} + + +
+
+
- + +
+
+ +
+ Saldo anno {{ date('Y') }} + {{ $entrate + $uscite }} + + +
+
+
+ +
+
+ +
+ Saldo negli anni + {{ $saldo }} + + +
+
+
@endhasanyrole - +
@can('tasks') + +
-
+ + + +
@@ -138,8 +219,9 @@ -
+
-->
+ @endforeach @@ -173,8 +254,37 @@
- - + --> +
+ + +
+ +
@@ -184,8 +294,8 @@
@@ -197,5 +307,5 @@ @endsection @section('script') - + @endsection diff --git a/resources/views/test.blade.php b/resources/views/test.blade.php new file mode 100644 index 0000000..3673062 --- /dev/null +++ b/resources/views/test.blade.php @@ -0,0 +1,4 @@ +@extends('adminlte::page') +@section('content_header') +

Test Page

+@endsection diff --git a/routes/web.php b/routes/web.php index 5ca825f..79fd3d6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,9 +20,10 @@ Route::get('/', function () { return view('welcome'); }); - + Auth::routes(['register' => false]); // Production only // Auth::routes(); //development mode Route::get('/calendar', [TagController::class,'calendartest'])->name('calendar'); // Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); +Route::get('/test', function(){ return view('test');}); diff --git a/tests/Snippets/snippets.html b/tests/Snippets/snippets.html new file mode 100644 index 0000000..25bc362 --- /dev/null +++ b/tests/Snippets/snippets.html @@ -0,0 +1,179 @@ + +
+ +
+ Likes + 41,410 + + 70% Increase in 30 Days +
+
+ + + +
+ +
+ Likes + 41,410 + + 70% Increase in 30 Days +
+
+ + + +
+
+

Alexander Pierce

+
Founder & CEO
+
+
+ User Avatar +
+ +
+ + + +
+
+

Shadow - Regular

+
+ 3 + + + +
+
+
+
+
+
+ Alexander Pierce + 23 Jan 2:00 pm +
+ Message User Image +
+ Messaggio Utente1 +
+
+
+
+ Sarah Bullock + 23 Jan 2:05 pm +
+ Message User Image +
+ Messaggio Utente2 +
+
+
+ +
+ +
+ + + +
+
+ user image + + Jonathan Burke Jr. + + + Shared publicly - 7:30 PM today +
+ +

+ Lorem ipsum represents a long-held tradition for designers, + typographers and the like. Some people hate it and argue for + its demise, but others ignore the hate as they create awesome + tools to help create filler text for everyone from bacon lovers + to Charlie Sheen fans. +

+

+ Share + Like + + + Comments (5) + + +

+ +
+ + + + +