Aggiunto documenti generici

This commit is contained in:
Amministratore 2023-10-18 13:39:31 +02:00
parent b64d954309
commit cea9baa838
4 changed files with 61 additions and 28 deletions

View File

@ -309,13 +309,13 @@ return [
[ [
'text' => 'Dashboard', 'text' => 'Dashboard',
'url' => '/admin', 'url' => '/admin',
'can' => 'manage-blog', // 'can' => 'manage-blog',
], ],
[ [
'text' => 'Gestione Economica', 'text' => 'Gestione Economica',
'url' => '#', 'url' => '#',
'icon' => 'fas fa-fw fa-money-bill', //<i class="fa-solid fa-money-bill"></i> 'icon' => 'fas fa-fw fa-money-bill', //<i class="fa-solid fa-money-bill"></i>
'can' => ['conti'],
'submenu' => [ 'submenu' => [
[ [
'text' => 'Lista movimenti', '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', 'text' => 'Contratti',
'route' => 'contratti', 'route' => 'contratti',
'icon' => 'fas fa-fw fa-newspaper', 'icon' => 'fas fa-fw fa-newspaper',
'can' => 'contratti', 'can' => ['contratti'],
],
[
'text' => 'Automobili',
'url' => '/admin/auto',
'icon' => 'fas fa-fw fa-car',
], ],
[ [
'text' => 'Progetti', 'text' => 'Progetti',
'route' => 'progetti', 'route' => 'progetti',
'icon' => 'fas fa-fw fa-diagram-project', 'icon' => 'fas fa-fw fa-diagram-project',
'can' => ['progetti'],
], ],
['header' => 'GESTIONE BENI'],
[ [
'text' => 'Attività', 'text' => 'Automobili',
'route' => 'tasks', 'url' => '/admin/auto',
'icon' => 'fas fa-fw fa-circle-check', 'icon' => 'fas fa-fw fa-car',
'can' => ['automobili'],
], ],
['header' => 'GESTIONE PIM'], ['header' => 'GESTIONE PIM'],
[ [
'text' => 'Contatti', 'text' => 'Contatti',
'url' => '/admin/contatti', 'url' => '/admin/contatti',
'icon' => 'fas fa-fw fa-user', 'icon' => 'fas fa-fw fa-user',
'can' => ['contatti'],
'submenu' => [ 'submenu' => [
[ [
'text' => 'Nuovo Contatto', 'text' => 'Nuovo Contatto',
@ -416,17 +423,24 @@ return [
], ],
], ],
], ],
[
'text' => 'Attività',
'route' => 'tasks',
'icon' => 'fas fa-fw fa-circle-check',
'can' => ['tasks'],
],
[ [
'text' => 'Appuntamenti', 'text' => 'Appuntamenti',
'route' => 'calendario', 'route' => 'calendario',
'icon' => 'fas fa-fw fa-calendar', 'icon' => 'fas fa-fw fa-calendar',
// 'can' => 'appuntamenti',
], ],
['header' => 'CONSUMI'], ['header' => 'CONSUMI'],
[ [
'text' => 'GAS', 'text' => 'GAS',
'route' => 'gas', 'route' => 'gas',
'icon' => 'fas fa-fw fa-fire', 'icon' => 'fas fa-fw fa-fire',
'can' => ['consumi'] 'can' => ['consumi'],
], ],
['header' => 'AMMINISTRAZIONE'], ['header' => 'AMMINISTRAZIONE'],
[ [
@ -440,7 +454,7 @@ return [
'text' => 'Meeting Room', 'text' => 'Meeting Room',
'route' => 'meeting', 'route' => 'meeting',
'icon' => 'fas fa-fw fa-file-video', 'icon' => 'fas fa-fw fa-file-video',
// 'can' => ['amministrazione'] 'can' => ['meetingroom']
], ],
], ],

View File

@ -1,21 +1,34 @@
@extends('admin') @extends('adminlte::page')
@section('content_header')
<h1>Lista delle Cartelle</h1>
@section('content') @section('content')
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Lista dei Documenti</h1>
</div>
</div>
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
Lista documenti Lista cartelle
</div> </div>
<div class="panel-body"> <div class="panel-body">
<!-- Corpo del pannello -->
<table class="table table-striped table-bordered table-hover" id="tab_documenti">
<thead>
<tr>
<th>Nome Cartella</th>
</tr>
</thead>
<tbody>
@foreach($data as $dato)
<tr>
<td>{{$dato->descrizione}}</td>
</tr>
@endforeach
</tbody>
</table>
</div> </div>
<div class="panel-footer"> <div class="panel-footer">
<!-- Footer del pannello --> <a href="/admin/documenti/newFolder" >
</div> </div>
</div> </div>
</div> </div>

View File

@ -176,6 +176,13 @@ Route::group(['middleware'=>['permission:avvisi']], function(){
}); });
// -- ONLY FOR TEST -- TO BE REMOVED // // -- ONLY FOR TEST -- TO BE REMOVED //
// DOCUMENTI GENERICI
Route::group(['middleware'=>['permission:documenti']], function(){
Route::get('documenti', [DocumentiController::class, 'listaDocumenti']);
Route::post('documenti', [DocumentiController::class, 'storeFile']);
});
/// TEST ROUTES /// TEST ROUTES
Route::get('test/fullcalendar', [FullCalenderController::class, 'index']); Route::get('test/fullcalendar', [FullCalenderController::class, 'index']);
Route::post('test/fullcalendar', [FullCalenderController::class, 'ajax']); Route::post('test/fullcalendar', [FullCalenderController::class, 'ajax']);
@ -189,7 +196,6 @@ Route::group(['middleware'=>['permission:avvisi']], function(){
$name='Flavio'; $name='Flavio';
Mail::to('flavio.barachino@lavorain.cloud')->send(new myTestEmail($name)); Mail::to('flavio.barachino@lavorain.cloud')->send(new myTestEmail($name));
}); });
Route::group(['middleware'=>['permission:meetingroom']], function(){
Route::get('meeting', function() { Route::get('meeting', function() { return view('meetings.meeting'); })->name('meeting');
return view('meetings.meeting'); });
})->name('meeting');