diff --git a/app/Http/Controllers/DocumentiController.php b/app/Http/Controllers/DocumentiController.php index e6b6d3b..6748ade 100644 --- a/app/Http/Controllers/DocumentiController.php +++ b/app/Http/Controllers/DocumentiController.php @@ -46,4 +46,4 @@ class DocumentiController extends Controller { return view('documenti.lista',['data'=>Documenti::all()]); } -} +} \ No newline at end of file diff --git a/config/adminlte.php b/config/adminlte.php index eb270fc..1661cdb 100644 --- a/config/adminlte.php +++ b/config/adminlte.php @@ -309,13 +309,13 @@ return [ [ 'text' => 'Dashboard', 'url' => '/admin', - 'can' => 'manage-blog', + // 'can' => 'manage-blog', ], [ 'text' => 'Gestione Economica', 'url' => '#', 'icon' => 'fas fa-fw fa-money-bill', // - + 'can' => ['conti'], 'submenu' => [ [ 'text' => 'Lista movimenti', @@ -376,33 +376,40 @@ return [ ], ], ], - ['header' => 'GESTIONE BENI'], + ['header' => 'GESTIONE DOCUMENTALE'], + [ + 'text' => 'Documenti gen.', + 'url' => '/admin/documenti', + 'icon' => 'fas fa-fw fa-newspaper', + 'can' => ['documenti'], + ], [ 'text' => 'Contratti', 'route' => 'contratti', 'icon' => 'fas fa-fw fa-newspaper', - 'can' => 'contratti', - ], - [ - 'text' => 'Automobili', - 'url' => '/admin/auto', - 'icon' => 'fas fa-fw fa-car', + 'can' => ['contratti'], ], [ 'text' => 'Progetti', 'route' => 'progetti', 'icon' => 'fas fa-fw fa-diagram-project', + 'can' => ['progetti'], ], + ['header' => 'GESTIONE BENI'], + [ - 'text' => 'Attività ', - 'route' => 'tasks', - 'icon' => 'fas fa-fw fa-circle-check', + 'text' => 'Automobili', + 'url' => '/admin/auto', + 'icon' => 'fas fa-fw fa-car', + 'can' => ['automobili'], ], + ['header' => 'GESTIONE PIM'], [ 'text' => 'Contatti', 'url' => '/admin/contatti', 'icon' => 'fas fa-fw fa-user', + 'can' => ['contatti'], 'submenu' => [ [ 'text' => 'Nuovo Contatto', @@ -416,17 +423,24 @@ return [ ], ], ], + [ + 'text' => 'Attività ', + 'route' => 'tasks', + 'icon' => 'fas fa-fw fa-circle-check', + 'can' => ['tasks'], + ], [ 'text' => 'Appuntamenti', 'route' => 'calendario', 'icon' => 'fas fa-fw fa-calendar', + // 'can' => 'appuntamenti', ], ['header' => 'CONSUMI'], [ 'text' => 'GAS', 'route' => 'gas', 'icon' => 'fas fa-fw fa-fire', - 'can' => ['consumi'] + 'can' => ['consumi'], ], ['header' => 'AMMINISTRAZIONE'], [ @@ -440,7 +454,7 @@ return [ 'text' => 'Meeting Room', 'route' => 'meeting', 'icon' => 'fas fa-fw fa-file-video', - // 'can' => ['amministrazione'] + 'can' => ['meetingroom'] ], ], diff --git a/resources/views/documenti/lista.blade.php b/resources/views/documenti/lista.blade.php index fd597af..421b45a 100644 --- a/resources/views/documenti/lista.blade.php +++ b/resources/views/documenti/lista.blade.php @@ -1,21 +1,34 @@ -@extends('admin') +@extends('adminlte::page') + +@section('content_header') +
Nome Cartella | +
---|
{{$dato->descrizione}} | +