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

@ -46,4 +46,4 @@ class DocumentiController extends Controller
{
return view('documenti.lista',['data'=>Documenti::all()]);
}
}
}

View File

@ -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', //<i class="fa-solid fa-money-bill"></i>
'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']
],
],

View File

@ -1,21 +1,34 @@
@extends('admin')
@extends('adminlte::page')
@section('content_header')
<h1>Lista delle Cartelle</h1>
@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="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
Lista documenti
Lista cartelle
</div>
<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 class="panel-footer">
<!-- Footer del pannello -->
<a href="/admin/documenti/newFolder" >
</div>
</div>
</div>

View File

@ -176,6 +176,13 @@ Route::group(['middleware'=>['permission:avvisi']], function(){
});
// -- 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
Route::get('test/fullcalendar', [FullCalenderController::class, 'index']);
Route::post('test/fullcalendar', [FullCalenderController::class, 'ajax']);
@ -189,7 +196,6 @@ Route::group(['middleware'=>['permission:avvisi']], function(){
$name='Flavio';
Mail::to('flavio.barachino@lavorain.cloud')->send(new myTestEmail($name));
});
Route::get('meeting', function() {
return view('meetings.meeting');
})->name('meeting');
Route::group(['middleware'=>['permission:meetingroom']], function(){
Route::get('meeting', function() { return view('meetings.meeting'); })->name('meeting');
});