Compare commits
55 Commits
30cf03bd7d
...
0.1.1.a
| Author | SHA1 | Date | |
|---|---|---|---|
| 9cf1f9a388 | |||
| 109ead8daa | |||
| 60e9f77d2c | |||
| 2b8a9c0d4d | |||
| a174a31b0d | |||
| 717e1be95d | |||
| 0668026eb7 | |||
| bd6d7046db | |||
| d3629f1e75 | |||
| a827342a30 | |||
| 8381aa068d | |||
| 58e9344180 | |||
| b5eb6c383b | |||
| 48606856c4 | |||
| 9f0c93c921 | |||
| 8dff2e0853 | |||
| 0f382d4182 | |||
| 0050c3547e | |||
| 350c5737b7 | |||
| fabf85ffb5 | |||
| 4f9378899b | |||
| 031e4957b4 | |||
| 957cc88a3f | |||
| 6a26529bbf | |||
| ff39c80f27 | |||
| e4f3834488 | |||
| beec4b8dce | |||
| a773b825d0 | |||
| b3df3f0b47 | |||
| 8d0576099c | |||
| 69b93bc3f6 | |||
| 75761353ca | |||
| ea11579670 | |||
| 1e2b85910c | |||
| c020fe86f0 | |||
| 03449a5c27 | |||
| 1318b50fcc | |||
| d3f0695866 | |||
| 4850b5bbef | |||
| 0ee7d4d363 | |||
| 83ccd7ec19 | |||
| 920584d779 | |||
| 54b2dda9ea | |||
| f90974ba09 | |||
| 36a863eafd | |||
| 7f80290ff8 | |||
| 3dc54235c5 | |||
| 8f5ccad560 | |||
| 7a85f2280a | |||
| d5f4d5c827 | |||
| b82ec0adc0 | |||
| fcbe1e1a4e | |||
| 66157c3477 | |||
|
|
792d1a0580 | ||
|
|
84c0eaa48b |
26
README.md
26
README.md
@@ -1,29 +1,21 @@
|
|||||||
# Gestionale di Famiglia
|
# Gestionale per le famiglie
|
||||||
Piccolo sistema di gestione famigliare.
|
Piccolo sistema di gestione.
|
||||||
Al momento sono presenti:
|
Al momento sono presenti:
|
||||||
|
|
||||||
- Gestione delle Entrate e uscite con possibilità di inserimento delle foto degli scontrini ed eventuali documenti in PDF.
|
- Gestione delle Entrate e uscite con possibilità di inserimento delle foto degli scontrini ed eventuali documenti in PDF.
|
||||||
- Possibilità di importare gli estratti conto da un file excel o csv.
|
- Possibilità di importare gli estratti conto da un file excel o csv.
|
||||||
- Un sistema di gestione delle letture dei contatori per il GAS e per l'Energia elettrica
|
- Un sistema di gestione delle letture dei contatori per il GAS e per l'Energia elettrica [Da rivedere]
|
||||||
- Un sistema di gestione delle autovetture e relative operazioni effettuate su di esse.
|
- Un sistema di gestione delle autovetture e relative operazioni effettuate su di esse. [Da rivedere]
|
||||||
- Una rubrica telefonica e degli indirizzi
|
- Una rubrica telefonica e degli indirizzi
|
||||||
- Una gestione dei progetti (ancora in sviluppo)
|
- Una gestione dei progetti (ancora in sviluppo) [Da rivedere]
|
||||||
- Una gestione degli utenti e dei gruppi e relativi permessi.
|
- Una gestione degli utenti e dei gruppi e relativi permessi. [Da migliorare]
|
||||||
|
|
||||||
*Sviluppato in php, mysql, jquery su framework Laravel*.
|
*Sviluppato in php, mysql, jquery su framework Laravel*.
|
||||||
|
|
||||||
|
|
||||||
## Installazione
|
|
||||||
- clonare il repository
|
|
||||||
- copiare il file ```.env.example``` in ```.env```
|
|
||||||
- inserire le informazioni del database (username,password,dbname)
|
|
||||||
- lanciare ``` composer install ```
|
|
||||||
- lanciare ``` php artisan migrate --seed```
|
|
||||||
- di default si crea l'utente ``` admin ``` con password ```admin ``` per accedere la prima volta.
|
|
||||||
|
|
||||||
|
|
||||||
## Sviluppatori (attualmente)
|
## Sviluppatori (attualmente)
|
||||||
Flavio Barachino <flavio.barachino@lavorain.cloud>
|
Flavio Barachino <flavio.barachino@lavorain.cloud>
|
||||||
|
|
||||||
|
|
||||||
### Vuoi partecipare?
|
### Vuoi partecipare?
|
||||||
Scrivimi con le tue proposte, le tue critiche, i tuoi suggerimenti.
|
Scrivici con le tue proposte, le tue critiche, i tuoi suggerimenti.
|
||||||
|
Gestionale <bubofamily@lavorain.cloud>
|
||||||
|
|||||||
10
app/Http/Controllers/AssociazioneController.php
Normal file
10
app/Http/Controllers/AssociazioneController.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class AssociazioneController extends Controller
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
16
app/Http/Controllers/AvvisoController.php
Normal file
16
app/Http/Controllers/AvvisoController.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Models\Avviso;
|
||||||
|
|
||||||
|
class AvvisoController extends Controller
|
||||||
|
{
|
||||||
|
//
|
||||||
|
public function saveAvviso(Request $request)
|
||||||
|
{
|
||||||
|
Avviso::newAvviso($request);
|
||||||
|
return redirect()->back();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -18,7 +18,7 @@ class CategorieController extends Controller
|
|||||||
|
|
||||||
public static function insCategorie(Request $request)
|
public static function insCategorie(Request $request)
|
||||||
{
|
{
|
||||||
Categorie::inserisci($request['cat_name']);
|
Categorie::inserisci($request);
|
||||||
return view('conti.categorie.list',['categorie'=>Categorie::list()]);
|
return view('conti.categorie.list',['categorie'=>Categorie::list()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ class CategorieController extends Controller
|
|||||||
|
|
||||||
public function updatePostCategorie(Request $request)
|
public function updatePostCategorie(Request $request)
|
||||||
{
|
{
|
||||||
Categorie::updateNameById($request['id'],$request['cat_name']);
|
Categorie::updateNameById($request);
|
||||||
return redirect(route('categorie'));
|
return redirect(route('categorie'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,4 +48,16 @@ class CategorieController extends Controller
|
|||||||
$categorie = Categorie::getById($id);
|
$categorie = Categorie::getById($id);
|
||||||
return json_encode($categorie);
|
return json_encode($categorie);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function apiListSpesa()
|
||||||
|
{
|
||||||
|
$categorie=Categorie::listSpesa();
|
||||||
|
return json_encode($categorie);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function apiListEntrata()
|
||||||
|
{
|
||||||
|
$categorie=Categorie::listEntrata();
|
||||||
|
return json_encode($categorie);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
15
app/Http/Controllers/ContrattiController.php
Normal file
15
app/Http/Controllers/ContrattiController.php
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Models\Contratti;
|
||||||
|
|
||||||
|
class ContrattiController extends Controller
|
||||||
|
{
|
||||||
|
//
|
||||||
|
public function contratti()
|
||||||
|
{
|
||||||
|
return view('contratti.lista',['data'=>Contratti::all()]);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -28,4 +28,21 @@ class DocumentiController extends Controller
|
|||||||
'documenti'=>$documenti
|
'documenti'=>$documenti
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// {issue #5} Proposta cambiamento per generalizzazione documenti
|
||||||
|
// NB: cambiare anche in routes/admin.php il riferimento alla funzione da richiamare
|
||||||
|
public function fileMovimentiForm(Request $request){
|
||||||
|
$documenti = Documenti::getList($request->input('id'),'Movimenti');
|
||||||
|
return view('conti.documenti.insert', [
|
||||||
|
'id'=>$request['id']),
|
||||||
|
'documenti'=>$documenti
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
public function listaDocumenti()
|
||||||
|
{
|
||||||
|
return view('documenti.lista',['data'=>Documenti::all()]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
app/Http/Controllers/GruppiController.php
Normal file
10
app/Http/Controllers/GruppiController.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class GruppiController extends Controller
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
@@ -5,8 +5,12 @@ namespace App\Http\Controllers;
|
|||||||
use App\Models\Categorie;
|
use App\Models\Categorie;
|
||||||
use App\Models\Movimenti;
|
use App\Models\Movimenti;
|
||||||
use App\Models\tag;
|
use App\Models\tag;
|
||||||
|
use App\Models\Task;
|
||||||
|
use App\Models\Avviso;
|
||||||
|
// use App\Http\Controllers\Auth;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Rap2hpoutre\FastExcel\FastExcel;
|
use Rap2hpoutre\FastExcel\FastExcel;
|
||||||
|
|
||||||
class MovimentiController extends Controller
|
class MovimentiController extends Controller
|
||||||
@@ -37,11 +41,21 @@ class MovimentiController extends Controller
|
|||||||
|
|
||||||
public static function dashboard()
|
public static function dashboard()
|
||||||
{
|
{
|
||||||
$bilancio=Movimenti::getSaldo(date('Y'));
|
/*$bilancio=Movimenti::getSaldo(date('Y'));*/
|
||||||
|
$entrate=Movimenti::getEntrate(date('Y'));
|
||||||
|
$uscite=Movimenti::getUscite(date('Y'));
|
||||||
$saldo=Movimenti::getSaldoTot();
|
$saldo=Movimenti::getSaldoTot();
|
||||||
|
$mieiTasks=Task::getTaskAssignedToUser(Auth::id());
|
||||||
|
// $TasksAssegnati=Task::getTaskAssignedByUser(Auth::id());
|
||||||
|
$avvisi=Avviso::getAvvisi();
|
||||||
|
|
||||||
return view('layouts.dashboard',[
|
return view('layouts.dashboard',[
|
||||||
'bilancio'=>$bilancio,
|
'entrate'=>$entrate,
|
||||||
|
'uscite'=>$uscite,
|
||||||
'saldo'=>$saldo,
|
'saldo'=>$saldo,
|
||||||
|
'mieitask' => $mieiTasks,
|
||||||
|
// 'assegnati' => $TasksAssegnati,
|
||||||
|
'avvisi'=>$avvisi,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +63,7 @@ class MovimentiController extends Controller
|
|||||||
{
|
{
|
||||||
Movimenti::insSpesa($request);
|
Movimenti::insSpesa($request);
|
||||||
$mov=Movimenti::getList();
|
$mov=Movimenti::getList();
|
||||||
$categorie=Categorie::list();
|
$categorie=Categorie::listSpesa();
|
||||||
$tags=tag::getList();
|
$tags=tag::getList();
|
||||||
return view('conti.movimenti.list',
|
return view('conti.movimenti.list',
|
||||||
[
|
[
|
||||||
@@ -64,7 +78,7 @@ class MovimentiController extends Controller
|
|||||||
{
|
{
|
||||||
Movimenti::insEntrata($request);
|
Movimenti::insEntrata($request);
|
||||||
$mov=Movimenti::getList();
|
$mov=Movimenti::getList();
|
||||||
$categorie=Categorie::list();
|
$categorie=Categorie::listEntrata();
|
||||||
$tags=tag::getList();
|
$tags=tag::getList();
|
||||||
return view('conti.movimenti.list',
|
return view('conti.movimenti.list',
|
||||||
[
|
[
|
||||||
@@ -119,30 +133,16 @@ class MovimentiController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*public function updateMovimenti(Request $request)
|
|
||||||
{
|
|
||||||
$id=$request['id'];
|
|
||||||
$mov=Movimenti::getMovimentoById($id);
|
|
||||||
$categorie=Categorie::list();
|
|
||||||
$tags=tag::getList();
|
|
||||||
return view('conti.movimenti.update',
|
|
||||||
[
|
|
||||||
'categorie'=> $categorie,
|
|
||||||
'movimenti'=> $mov,
|
|
||||||
'tags'=>$tags,
|
|
||||||
]);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
public function updatePostMovimenti(Request $request)
|
public function updatePostMovimenti(Request $request)
|
||||||
{
|
{
|
||||||
Movimenti::updateMovimenti($request);
|
Movimenti::updateMovimenti($request);
|
||||||
return redirect(route('movimenti'));
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function deleteMovimenti(Request $request)
|
public function deleteMovimenti(Request $request)
|
||||||
{
|
{
|
||||||
Movimenti::deleteMovimento($request['id']);
|
Movimenti::deleteMovimento($request['id']);
|
||||||
return redirect(route('movimenti'));
|
return redirect()->back();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ use App\Models\User;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Models\RigaProgetto;
|
use App\Models\RigaProgetto;
|
||||||
use function GuzzleHttp\json_encode;
|
use function GuzzleHttp\json_encode;
|
||||||
|
use Barryvdh\DomPDF\Facade\Pdf;
|
||||||
|
|
||||||
class ProgettiController extends Controller
|
class ProgettiController extends Controller
|
||||||
{
|
{
|
||||||
@@ -52,4 +53,26 @@ class ProgettiController extends Controller
|
|||||||
//dd($righe);
|
//dd($righe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function chiudiProgetto(Request $id)
|
||||||
|
{
|
||||||
|
Progetti::chiudiProgetto($id['id']);
|
||||||
|
return redirect(Route('progetti'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function riapriProgetto(Request $id)
|
||||||
|
{
|
||||||
|
Progetti::riapriProgetto($id['id']);
|
||||||
|
return redirect(Route('progetti'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function stampaPDFProgetto(Request $id)
|
||||||
|
{
|
||||||
|
$progetto_id=$id['id'];
|
||||||
|
$progetto = Progetti::getProgettoById($progetto_id);
|
||||||
|
$righe = RigaProgetto::getRigheProgetto($progetto_id);
|
||||||
|
$costo_tot=RigaProgetto::getCostoRighe($progetto_id);
|
||||||
|
$pdf=Pdf::loadview('progetti.PDF.scheda',['dettaglio'=>$progetto,'righe'=>$righe, 'tot'=>$costo_tot]);
|
||||||
|
return $pdf->stream();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
10
app/Http/Controllers/RivistaController.php
Normal file
10
app/Http/Controllers/RivistaController.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class RivistaController extends Controller
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
40
app/Http/Controllers/TaskController.php
Normal file
40
app/Http/Controllers/TaskController.php
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Models\Task;
|
||||||
|
|
||||||
|
class TaskController extends Controller
|
||||||
|
{
|
||||||
|
//
|
||||||
|
public function listTask()
|
||||||
|
{
|
||||||
|
return Task::all();
|
||||||
|
// debug
|
||||||
|
// return get_class_methods($this);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function Task()
|
||||||
|
{
|
||||||
|
return view('tasks.list',['tasks'=>$this->listTask()]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function newTask(Request $data)
|
||||||
|
{
|
||||||
|
Task::create([
|
||||||
|
'titolo'=>$data['titolo'],
|
||||||
|
'descrizione'=>$data['descrizione'],
|
||||||
|
'assegnato_a'=>$data['assegnato_a'],
|
||||||
|
'creato_da'=>$data['creato_da'],
|
||||||
|
'termine_il'=>$data['termine_il'],
|
||||||
|
'creato_il'=>$data['creato_il'],
|
||||||
|
'chiuso_il'=>$data['chiuso_il'],
|
||||||
|
'stato'=>$data['stato'],
|
||||||
|
]);
|
||||||
|
return redirect()->back();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -47,6 +47,10 @@ class Utenti extends Controller
|
|||||||
return view('users.list',['users'=>$users]);
|
return view('users.list',['users'=>$users]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getUsers(){
|
||||||
|
return User::getUsers();
|
||||||
|
}
|
||||||
|
|
||||||
function listRoles(){
|
function listRoles(){
|
||||||
$roles = Role::all();
|
$roles = Role::all();
|
||||||
return $roles;
|
return $roles;
|
||||||
@@ -58,5 +62,48 @@ class Utenti extends Controller
|
|||||||
return redirect('/admin/users/new');
|
return redirect('/admin/users/new');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function givePermissionToUser()
|
||||||
|
{
|
||||||
|
$users=User::all();
|
||||||
|
$permissions=Permission::all();
|
||||||
|
return view('users.assignperm',['users'=>$users,'permissions'=>$permissions]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function assignPermission(Request $request)
|
||||||
|
{
|
||||||
|
//$user=User::getUserbyId($request['user']);
|
||||||
|
$user=User::findOrFail($request['user']);
|
||||||
|
foreach($request['permesso'] as $key => $value){
|
||||||
|
if($value=='true')
|
||||||
|
{
|
||||||
|
$key=str_replace('\'','',$key);
|
||||||
|
$user->givePermissionTo($key);
|
||||||
|
// $permission['allowed'][]=$key;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$key=str_replace('\'','',$key);
|
||||||
|
$user->revokePermissionTo($key);
|
||||||
|
// $permission['denied'][]=$key;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return redirect('/admin/users/givepermission');
|
||||||
|
}
|
||||||
|
|
||||||
|
function giveRoleToUser()
|
||||||
|
{
|
||||||
|
$users=User::all();
|
||||||
|
$roles=Role::all();
|
||||||
|
return view('users.assignrole',['users'=>$users,'roles'=>$roles]);
|
||||||
|
}
|
||||||
|
|
||||||
|
function assignRole(Request $request)
|
||||||
|
{
|
||||||
|
//$user=User::getUserbyId($request['user']);
|
||||||
|
$user=User::findOrFail($request['user']);
|
||||||
|
$user->assignRole($request['role']);
|
||||||
|
return redirect('/admin/users/giverole');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
11
app/Models/Associazione.php
Normal file
11
app/Models/Associazione.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Associazione extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
28
app/Models/Avviso.php
Normal file
28
app/Models/Avviso.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Avviso extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $fillable=['avviso','creato_il', 'creato_da', 'urgente'];
|
||||||
|
|
||||||
|
public static function newAvviso($data)
|
||||||
|
{
|
||||||
|
self::create([
|
||||||
|
'avviso'=>$data['avviso'],
|
||||||
|
'creato_da'=>$data['creato_da'],
|
||||||
|
'creato_il'=>date('Y-m-d'),
|
||||||
|
'urgente'=>$data['urgente'],
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getAvvisi()
|
||||||
|
{
|
||||||
|
return self::all();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,17 +17,49 @@ class Categorie extends Model
|
|||||||
|
|
||||||
public static function list()
|
public static function list()
|
||||||
{
|
{
|
||||||
return DB::table('categories')->orderBy('cat_name')->get();
|
return self::all();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function inserisci($name){
|
public static function listSpesa()
|
||||||
return DB::table('categories')->insert(['cat_name'=> $name]);
|
{
|
||||||
|
return DB::table('categories')->where('cat_uscita','=',1)->orderBy('cat_name')->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function listEntrata()
|
||||||
|
{
|
||||||
|
return DB::table('categories')->where('cat_entrata','=',1)->orderBy('cat_name')->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function inserisci($request){
|
||||||
|
if ($request['cat_entrata']==='on')
|
||||||
|
{
|
||||||
|
$entrata=1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$entrata=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($request['cat_uscita']==='on')
|
||||||
|
{
|
||||||
|
$uscita=1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$uscita=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return DB::table('categories')->insert([
|
||||||
|
'cat_name'=> $request['cat_name'],
|
||||||
|
'cat_entrata'=>$entrata,
|
||||||
|
'cat_uscita'=>$uscita
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function deleteById($id){
|
public static function deleteById($id){
|
||||||
DB::table('categories')
|
DB::table('categories')
|
||||||
->where('id','=', $id)
|
->where('id','=', $id)
|
||||||
->delete();
|
->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getById($id) {
|
public static function getById($id) {
|
||||||
@@ -36,11 +68,31 @@ class Categorie extends Model
|
|||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function updateNameById($id,$name) {
|
public static function updateNameById($request) {
|
||||||
|
if ($request['cat_entrata']==='on')
|
||||||
|
{
|
||||||
|
$entrata=1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$entrata=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($request['cat_uscita']==='on')
|
||||||
|
{
|
||||||
|
$uscita=1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$uscita=0;
|
||||||
|
}
|
||||||
|
|
||||||
DB::table('categories')
|
DB::table('categories')
|
||||||
->where('id','=', $id)
|
->where('id','=', $request['id'])
|
||||||
->update([
|
->update([
|
||||||
'cat_name' => $name,
|
'cat_name' => $request['cat_name'],
|
||||||
|
'cat_entrata' => $entrata,
|
||||||
|
'cat_uscita'=>$uscita,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
app/Models/Contratti.php
Normal file
11
app/Models/Contratti.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Contratti extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
@@ -17,6 +17,14 @@ class Documenti extends Model
|
|||||||
return $quanti;
|
return $quanti;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Proposta modifica {issue #5} gitea (generalizzazione del documento)
|
||||||
|
/*
|
||||||
|
public static function countDocument($id,$entity)
|
||||||
|
{
|
||||||
|
return self::where('entita','=',$entity)->where('entita_id','=',$id)->count();
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
public static function store($req) {
|
public static function store($req) {
|
||||||
$movimento_id=$req->input('id');
|
$movimento_id=$req->input('id');
|
||||||
$filename=$req->file('filename')->store('Documenti');
|
$filename=$req->file('filename')->store('Documenti');
|
||||||
@@ -28,6 +36,20 @@ class Documenti extends Model
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Proposta modifica {issue #5} gitea (generalizzazione del documento)
|
||||||
|
/*
|
||||||
|
public static function store($req) {
|
||||||
|
$movimento_id=$req->input('id');
|
||||||
|
$filename=$req->file('filename')->store('Documenti');
|
||||||
|
self::create([
|
||||||
|
'entità'=>$req['entita'], // aggiunto per determinare il tipo di entità a cui si riferisce il documento
|
||||||
|
'entita_id'=>$req['entita_id'], // aggiunto per identificare il record al quale associare il documento (al posto di id_movimento)
|
||||||
|
'descrizione'=>$req['descrizione'],
|
||||||
|
'filename'=>$filename
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
public static function getList($id)
|
public static function getList($id)
|
||||||
{
|
{
|
||||||
return DB::table('documentis')
|
return DB::table('documentis')
|
||||||
@@ -35,4 +57,11 @@ class Documenti extends Model
|
|||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Proposta modifica issue {#5 gitea} (generalizzazione del documento)
|
||||||
|
/*
|
||||||
|
public static function getList($id,$entity)
|
||||||
|
{
|
||||||
|
self::where('entita','=',$entity)->where('entita_id','=',$id)->get();
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|||||||
11
app/Models/Gruppi.php
Normal file
11
app/Models/Gruppi.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Gruppi extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
@@ -10,6 +10,8 @@ use Rap2hpoutre\FastExcel\FastExcel;
|
|||||||
class Movimenti extends Model
|
class Movimenti extends Model
|
||||||
{
|
{
|
||||||
use HasFactory;
|
use HasFactory;
|
||||||
|
protected $dates = ['mov_data'];
|
||||||
|
protected $casts = [ 'mov_data'=>'datetime'];
|
||||||
|
|
||||||
public static function getList() {
|
public static function getList() {
|
||||||
return DB::table('movimentis')
|
return DB::table('movimentis')
|
||||||
@@ -156,7 +158,7 @@ class Movimenti extends Model
|
|||||||
if($line['Data valuta'])
|
if($line['Data valuta'])
|
||||||
{
|
{
|
||||||
self::insEntrata([
|
self::insEntrata([
|
||||||
'mov_data'=>self::dateFormat(0,$line['Data valuta']),
|
'mov_data'=>$line['Data valuta'],
|
||||||
'mov_fk_categoria'=>1,
|
'mov_fk_categoria'=>1,
|
||||||
'mov_descrizione'=>$line['Descrizione operazione'],
|
'mov_descrizione'=>$line['Descrizione operazione'],
|
||||||
'mov_importo'=>trim(str_replace(',','.',(str_replace('.','',str_replace('€', '', $line['Importo']))))),
|
'mov_importo'=>trim(str_replace(',','.',(str_replace('.','',str_replace('€', '', $line['Importo']))))),
|
||||||
@@ -179,7 +181,8 @@ class Movimenti extends Model
|
|||||||
if($line['DARE']<>'')
|
if($line['DARE']<>'')
|
||||||
{
|
{
|
||||||
$dati=[
|
$dati=[
|
||||||
'mov_data'=>self::dateFormat(0,$line['VALUTA']),
|
'mov_data'=>self::dateFormat(0,$line['VALUTA']), // date_format(date_create($movimento->mov_data),'d/m/Y'
|
||||||
|
// 'mov_data'=>date_format(date_create($line['VALUTA']),'Y-m-d'),
|
||||||
'mov_fk_categoria'=>1,
|
'mov_fk_categoria'=>1,
|
||||||
'mov_descrizione'=>$line['DESCRIZIONE OPERAZIONE'],
|
'mov_descrizione'=>$line['DESCRIZIONE OPERAZIONE'],
|
||||||
'mov_importo'=>'-'.trim(str_replace(',','.',(str_replace('.','',$line['DARE'])))),
|
'mov_importo'=>'-'.trim(str_replace(',','.',(str_replace('.','',$line['DARE'])))),
|
||||||
@@ -191,6 +194,7 @@ class Movimenti extends Model
|
|||||||
{
|
{
|
||||||
$dati=[
|
$dati=[
|
||||||
'mov_data'=>self::dateFormat(0,$line['VALUTA']),
|
'mov_data'=>self::dateFormat(0,$line['VALUTA']),
|
||||||
|
//'mov_data'=>date_format(date_create($line['VALUTA']),'Y-m-d'),
|
||||||
'mov_fk_categoria'=>1,
|
'mov_fk_categoria'=>1,
|
||||||
'mov_descrizione'=>$line['DESCRIZIONE OPERAZIONE'],
|
'mov_descrizione'=>$line['DESCRIZIONE OPERAZIONE'],
|
||||||
'mov_importo'=>trim(str_replace(',','.',(str_replace('.','',$line['AVERE'])))),
|
'mov_importo'=>trim(str_replace(',','.',(str_replace('.','',$line['AVERE'])))),
|
||||||
@@ -213,17 +217,37 @@ class Movimenti extends Model
|
|||||||
|
|
||||||
private static function dateFormat($type,$string)
|
private static function dateFormat($type,$string)
|
||||||
{
|
{
|
||||||
|
// $string=(string)$string;
|
||||||
if($type)
|
if($type)
|
||||||
{
|
{
|
||||||
$string=$string->format('Y-m-d');
|
// $string=$string->format('Y-m-d');
|
||||||
list($year,$month,$day) = explode('-',$string);
|
list($year,$month,$day) = explode('-',$string);
|
||||||
return $day.'/'.$month.'/'.$year;
|
return $day.'/'.$month.'/'.$year;
|
||||||
} else {
|
} else {
|
||||||
$string=$string->format('d/m/Y');
|
// $string=$string->format('d/m/Y');
|
||||||
list($day,$month,$year) =explode('/',$string);
|
list($day,$month,$year) =explode('/',$string);
|
||||||
return $year.'-'.$month.'-'.$day;
|
return $year.'-'.$month.'-'.$day;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getEntrate($year)
|
||||||
|
{
|
||||||
|
$entrate_anno=DB::table('movimentis')
|
||||||
|
->where('mov_importo','>',0)
|
||||||
|
->whereYear('mov_data', '=' , $year)
|
||||||
|
->sum('mov_importo');
|
||||||
|
//->get();
|
||||||
|
return $entrate_anno;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getUscite($year)
|
||||||
|
{
|
||||||
|
$uscite_anno=DB::table('movimentis')
|
||||||
|
->where('mov_importo','<',0)
|
||||||
|
->whereYear('mov_data', '=' , $year)
|
||||||
|
->sum('mov_importo');
|
||||||
|
//->get();
|
||||||
|
return ($uscite_anno);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,4 +66,15 @@ class Progetti extends Model
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function riapriProgetto($progetto_id)
|
||||||
|
{
|
||||||
|
DB::table('progettis')
|
||||||
|
->where('id','=', $progetto_id)
|
||||||
|
->update([
|
||||||
|
'stato'=>'aperto',
|
||||||
|
'data_fine'=>null,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
11
app/Models/Rivista.php
Normal file
11
app/Models/Rivista.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Rivista extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
46
app/Models/Task.php
Normal file
46
app/Models/Task.php
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Task extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $fillable=['titolo','descrizione','creato_da','assegnato_a','creato_il','termine_il','chiuso_il','stato'];
|
||||||
|
|
||||||
|
public function getAllTasks()
|
||||||
|
{
|
||||||
|
return self::all();
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
public static function getTaskAssignedToUser($userid)
|
||||||
|
{
|
||||||
|
return self::where('assegnato_a',$userid)->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
public static function getTaskAssignedByUser($userid)
|
||||||
|
{
|
||||||
|
return self::where('creato_da',$userid)->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function saveTask($collection)
|
||||||
|
{
|
||||||
|
self::create(
|
||||||
|
[
|
||||||
|
'titolo' => $collection['titolo'],
|
||||||
|
'descrizione'=>$collection['descrizione'],
|
||||||
|
'creato_da'=>$collection['creato_da'],
|
||||||
|
'assegnato_a'=>$collection['assegnato_a'],
|
||||||
|
'creato_il'=>date('Y-m-d'),
|
||||||
|
'termine_il'=>$collection['termine_il'],
|
||||||
|
'stato'=>'Aperto',
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -66,7 +66,7 @@ class User extends Authenticatable
|
|||||||
|
|
||||||
public static function getUserById($id)
|
public static function getUserById($id)
|
||||||
{
|
{
|
||||||
return DB::table('users')->where('id','=',$id)->get();
|
return DB::table('users')->where('id','=',$id)->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getUsers()
|
public static function getUsers()
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"require" : {
|
"require" : {
|
||||||
"php": "^7.3|^8.0",
|
"php": "^7.3|^8.0",
|
||||||
"barryvdh/laravel-dompdf": "^2.0",
|
"barryvdh/laravel-dompdf": "^2.0",
|
||||||
|
"creativeorange/gravatar": "^1.0",
|
||||||
"directorytree/ldaprecord": "^2.9",
|
"directorytree/ldaprecord": "^2.9",
|
||||||
"fruitcake/laravel-cors": "^2.0",
|
"fruitcake/laravel-cors": "^2.0",
|
||||||
"guzzlehttp/guzzle": "^7.0.1",
|
"guzzlehttp/guzzle": "^7.0.1",
|
||||||
|
|||||||
221
composer.lock
generated
221
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "e6ac2be787f145ea140b72b55e302e90",
|
"content-hash": "acd096c2d0a14521dd551b39dde1ef28",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "asm89/stack-cors",
|
"name": "asm89/stack-cors",
|
||||||
@@ -350,6 +350,69 @@
|
|||||||
],
|
],
|
||||||
"time": "2022-04-01T19:23:25+00:00"
|
"time": "2022-04-01T19:23:25+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "creativeorange/gravatar",
|
||||||
|
"version": "v1.0.23",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/creativeorange/gravatar.git",
|
||||||
|
"reference": "3a1b227c48091b039b967265ec13c0800c70ac79"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/creativeorange/gravatar/zipball/3a1b227c48091b039b967265ec13c0800c70ac79",
|
||||||
|
"reference": "3a1b227c48091b039b967265ec13c0800c70ac79",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"illuminate/support": "^5|^6|^7|^8|^9|^10.0",
|
||||||
|
"php": ">=5.4.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nunomaduro/larastan": "^0.6.2|^2.4",
|
||||||
|
"orchestra/testbench": "^5.4|^8.0",
|
||||||
|
"php": ">=7.2"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"laravel": {
|
||||||
|
"providers": [
|
||||||
|
"Creativeorange\\Gravatar\\GravatarServiceProvider"
|
||||||
|
],
|
||||||
|
"aliases": {
|
||||||
|
"Gravatar": "Creativeorange\\Gravatar\\Facades\\Gravatar"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Creativeorange\\Gravatar\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Jaco Tijssen",
|
||||||
|
"email": "jaco@creativeorange.nl",
|
||||||
|
"homepage": "https://www.creativeorange.nl",
|
||||||
|
"role": "Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.",
|
||||||
|
"keywords": [
|
||||||
|
"avatar",
|
||||||
|
"gravatar",
|
||||||
|
"laravel"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/creativeorange/gravatar/issues",
|
||||||
|
"source": "https://github.com/creativeorange/gravatar/tree/v1.0.23"
|
||||||
|
},
|
||||||
|
"time": "2023-02-06T07:57:20+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "dflydev/dot-access-data",
|
"name": "dflydev/dot-access-data",
|
||||||
"version": "v3.0.2",
|
"version": "v3.0.2",
|
||||||
@@ -501,28 +564,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/inflector",
|
"name": "doctrine/inflector",
|
||||||
"version": "2.0.6",
|
"version": "2.0.8",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/doctrine/inflector.git",
|
"url": "https://github.com/doctrine/inflector.git",
|
||||||
"reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024"
|
"reference": "f9301a5b2fb1216b2b08f02ba04dc45423db6bff"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/doctrine/inflector/zipball/d9d313a36c872fd6ee06d9a6cbcf713eaa40f024",
|
"url": "https://api.github.com/repos/doctrine/inflector/zipball/f9301a5b2fb1216b2b08f02ba04dc45423db6bff",
|
||||||
"reference": "d9d313a36c872fd6ee06d9a6cbcf713eaa40f024",
|
"reference": "f9301a5b2fb1216b2b08f02ba04dc45423db6bff",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2 || ^8.0"
|
"php": "^7.2 || ^8.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/coding-standard": "^10",
|
"doctrine/coding-standard": "^11.0",
|
||||||
"phpstan/phpstan": "^1.8",
|
"phpstan/phpstan": "^1.8",
|
||||||
"phpstan/phpstan-phpunit": "^1.1",
|
"phpstan/phpstan-phpunit": "^1.1",
|
||||||
"phpstan/phpstan-strict-rules": "^1.3",
|
"phpstan/phpstan-strict-rules": "^1.3",
|
||||||
"phpunit/phpunit": "^8.5 || ^9.5",
|
"phpunit/phpunit": "^8.5 || ^9.5",
|
||||||
"vimeo/psalm": "^4.25"
|
"vimeo/psalm": "^4.25 || ^5.4"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -572,7 +635,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/doctrine/inflector/issues",
|
"issues": "https://github.com/doctrine/inflector/issues",
|
||||||
"source": "https://github.com/doctrine/inflector/tree/2.0.6"
|
"source": "https://github.com/doctrine/inflector/tree/2.0.8"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -588,7 +651,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-10-20T09:10:12+00:00"
|
"time": "2023-06-16T13:40:37+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "doctrine/lexer",
|
"name": "doctrine/lexer",
|
||||||
@@ -2342,16 +2405,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "maennchen/zipstream-php",
|
"name": "maennchen/zipstream-php",
|
||||||
"version": "3.0.2",
|
"version": "3.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/maennchen/ZipStream-PHP.git",
|
"url": "https://github.com/maennchen/ZipStream-PHP.git",
|
||||||
"reference": "b46726e666b5d2ad32959ae9492ee1034e798162"
|
"reference": "b8174494eda667f7d13876b4a7bfef0f62a7c0d1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/b46726e666b5d2ad32959ae9492ee1034e798162",
|
"url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/b8174494eda667f7d13876b4a7bfef0f62a7c0d1",
|
||||||
"reference": "b46726e666b5d2ad32959ae9492ee1034e798162",
|
"reference": "b8174494eda667f7d13876b4a7bfef0f62a7c0d1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2407,7 +2470,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/maennchen/ZipStream-PHP/issues",
|
"issues": "https://github.com/maennchen/ZipStream-PHP/issues",
|
||||||
"source": "https://github.com/maennchen/ZipStream-PHP/tree/3.0.2"
|
"source": "https://github.com/maennchen/ZipStream-PHP/tree/3.1.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2419,7 +2482,7 @@
|
|||||||
"type": "open_collective"
|
"type": "open_collective"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-04-19T19:51:03+00:00"
|
"time": "2023-06-21T14:59:35+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "markbaker/complex",
|
"name": "markbaker/complex",
|
||||||
@@ -2699,16 +2762,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nesbot/carbon",
|
"name": "nesbot/carbon",
|
||||||
"version": "2.67.0",
|
"version": "2.68.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/briannesbitt/Carbon.git",
|
"url": "https://github.com/briannesbitt/Carbon.git",
|
||||||
"reference": "c1001b3bc75039b07f38a79db5237c4c529e04c8"
|
"reference": "4f991ed2a403c85efbc4f23eb4030063fdbe01da"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/c1001b3bc75039b07f38a79db5237c4c529e04c8",
|
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4f991ed2a403c85efbc4f23eb4030063fdbe01da",
|
||||||
"reference": "c1001b3bc75039b07f38a79db5237c4c529e04c8",
|
"reference": "4f991ed2a403c85efbc4f23eb4030063fdbe01da",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -2797,7 +2860,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-05-25T22:09:47+00:00"
|
"time": "2023-06-20T18:29:04+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nette/schema",
|
"name": "nette/schema",
|
||||||
@@ -2950,16 +3013,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nikic/php-parser",
|
"name": "nikic/php-parser",
|
||||||
"version": "v4.15.5",
|
"version": "v4.16.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||||
"reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e"
|
"reference": "19526a33fb561ef417e822e85f08a00db4059c17"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/11e2663a5bc9db5d714eedb4277ee300403b4a9e",
|
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/19526a33fb561ef417e822e85f08a00db4059c17",
|
||||||
"reference": "11e2663a5bc9db5d714eedb4277ee300403b4a9e",
|
"reference": "19526a33fb561ef417e822e85f08a00db4059c17",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -3000,9 +3063,9 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
"issues": "https://github.com/nikic/PHP-Parser/issues",
|
||||||
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.5"
|
"source": "https://github.com/nikic/PHP-Parser/tree/v4.16.0"
|
||||||
},
|
},
|
||||||
"time": "2023-05-19T20:20:00+00:00"
|
"time": "2023-06-25T14:52:30+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "opis/closure",
|
"name": "opis/closure",
|
||||||
@@ -4765,16 +4828,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "spatie/db-dumper",
|
"name": "spatie/db-dumper",
|
||||||
"version": "3.3.1",
|
"version": "3.4.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/spatie/db-dumper.git",
|
"url": "https://github.com/spatie/db-dumper.git",
|
||||||
"reference": "3b9fd47899bf6a59d3452392121c9ce675d55d34"
|
"reference": "bbd5ae0f331d47e6534eb307e256c11a65c8e24a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/spatie/db-dumper/zipball/3b9fd47899bf6a59d3452392121c9ce675d55d34",
|
"url": "https://api.github.com/repos/spatie/db-dumper/zipball/bbd5ae0f331d47e6534eb307e256c11a65c8e24a",
|
||||||
"reference": "3b9fd47899bf6a59d3452392121c9ce675d55d34",
|
"reference": "bbd5ae0f331d47e6534eb307e256c11a65c8e24a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -4812,7 +4875,7 @@
|
|||||||
"spatie"
|
"spatie"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/spatie/db-dumper/tree/3.3.1"
|
"source": "https://github.com/spatie/db-dumper/tree/3.4.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -4824,7 +4887,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-05-02T11:05:31+00:00"
|
"time": "2023-06-27T08:34:52+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "spatie/laravel-backup",
|
"name": "spatie/laravel-backup",
|
||||||
@@ -4981,16 +5044,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "spatie/laravel-permission",
|
"name": "spatie/laravel-permission",
|
||||||
"version": "5.10.1",
|
"version": "5.10.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/spatie/laravel-permission.git",
|
"url": "https://github.com/spatie/laravel-permission.git",
|
||||||
"reference": "d08b3ffc5870cce4a47a39f22174947b33c191ae"
|
"reference": "671e46e079cbd4990a98427daaa09f4977b57ca9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/spatie/laravel-permission/zipball/d08b3ffc5870cce4a47a39f22174947b33c191ae",
|
"url": "https://api.github.com/repos/spatie/laravel-permission/zipball/671e46e079cbd4990a98427daaa09f4977b57ca9",
|
||||||
"reference": "d08b3ffc5870cce4a47a39f22174947b33c191ae",
|
"reference": "671e46e079cbd4990a98427daaa09f4977b57ca9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -5051,7 +5114,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/spatie/laravel-permission/issues",
|
"issues": "https://github.com/spatie/laravel-permission/issues",
|
||||||
"source": "https://github.com/spatie/laravel-permission/tree/5.10.1"
|
"source": "https://github.com/spatie/laravel-permission/tree/5.10.2"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -5059,7 +5122,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-04-12T17:08:32+00:00"
|
"time": "2023-07-04T13:38:13+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "spatie/laravel-signal-aware-command",
|
"name": "spatie/laravel-signal-aware-command",
|
||||||
@@ -5864,16 +5927,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/http-foundation",
|
"name": "symfony/http-foundation",
|
||||||
"version": "v5.4.24",
|
"version": "v5.4.25",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/http-foundation.git",
|
"url": "https://github.com/symfony/http-foundation.git",
|
||||||
"reference": "3c59f97f6249ce552a44f01b93bfcbd786a954f5"
|
"reference": "f66be2706075c5f6325d2fe2b743a57fb5d23f6b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/3c59f97f6249ce552a44f01b93bfcbd786a954f5",
|
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/f66be2706075c5f6325d2fe2b743a57fb5d23f6b",
|
||||||
"reference": "3c59f97f6249ce552a44f01b93bfcbd786a954f5",
|
"reference": "f66be2706075c5f6325d2fe2b743a57fb5d23f6b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -5920,7 +5983,7 @@
|
|||||||
"description": "Defines an object-oriented layer for the HTTP specification",
|
"description": "Defines an object-oriented layer for the HTTP specification",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/http-foundation/tree/v5.4.24"
|
"source": "https://github.com/symfony/http-foundation/tree/v5.4.25"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -5936,20 +5999,20 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-05-19T07:21:23+00:00"
|
"time": "2023-06-22T08:06:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/http-kernel",
|
"name": "symfony/http-kernel",
|
||||||
"version": "v5.4.24",
|
"version": "v5.4.25",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/http-kernel.git",
|
"url": "https://github.com/symfony/http-kernel.git",
|
||||||
"reference": "f38b722e1557eb3f487d351b48f5a1279b50e9d1"
|
"reference": "f6c92fe64bbdad7616cb90663c24f6350f3ca464"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/f38b722e1557eb3f487d351b48f5a1279b50e9d1",
|
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/f6c92fe64bbdad7616cb90663c24f6350f3ca464",
|
||||||
"reference": "f38b722e1557eb3f487d351b48f5a1279b50e9d1",
|
"reference": "f6c92fe64bbdad7616cb90663c24f6350f3ca464",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -6032,7 +6095,7 @@
|
|||||||
"description": "Provides a structured process for converting a Request into a Response",
|
"description": "Provides a structured process for converting a Request into a Response",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/http-kernel/tree/v5.4.24"
|
"source": "https://github.com/symfony/http-kernel/tree/v5.4.25"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -6048,7 +6111,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-05-27T08:06:30+00:00"
|
"time": "2023-06-26T05:58:08+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/mime",
|
"name": "symfony/mime",
|
||||||
@@ -6936,16 +6999,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/routing",
|
"name": "symfony/routing",
|
||||||
"version": "v5.4.22",
|
"version": "v5.4.25",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/routing.git",
|
"url": "https://github.com/symfony/routing.git",
|
||||||
"reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d"
|
"reference": "56bfc1394f7011303eb2e22724f9b422d3f14649"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/routing/zipball/c2ac11eb34947999b7c38fb4c835a57306907e6d",
|
"url": "https://api.github.com/repos/symfony/routing/zipball/56bfc1394f7011303eb2e22724f9b422d3f14649",
|
||||||
"reference": "c2ac11eb34947999b7c38fb4c835a57306907e6d",
|
"reference": "56bfc1394f7011303eb2e22724f9b422d3f14649",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -7006,7 +7069,7 @@
|
|||||||
"url"
|
"url"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/routing/tree/v5.4.22"
|
"source": "https://github.com/symfony/routing/tree/v5.4.25"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -7022,7 +7085,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-03-14T14:59:20+00:00"
|
"time": "2023-06-05T14:18:47+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/service-contracts",
|
"name": "symfony/service-contracts",
|
||||||
@@ -7367,16 +7430,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/var-dumper",
|
"name": "symfony/var-dumper",
|
||||||
"version": "v5.4.24",
|
"version": "v5.4.25",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/var-dumper.git",
|
"url": "https://github.com/symfony/var-dumper.git",
|
||||||
"reference": "8e12706bf9c68a2da633f23bfdc15b4dce5970b3"
|
"reference": "82269f73c0f0f9859ab9b6900eebacbe54954ede"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/8e12706bf9c68a2da633f23bfdc15b4dce5970b3",
|
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/82269f73c0f0f9859ab9b6900eebacbe54954ede",
|
||||||
"reference": "8e12706bf9c68a2da633f23bfdc15b4dce5970b3",
|
"reference": "82269f73c0f0f9859ab9b6900eebacbe54954ede",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -7435,7 +7498,7 @@
|
|||||||
"dump"
|
"dump"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/var-dumper/tree/v5.4.24"
|
"source": "https://github.com/symfony/var-dumper/tree/v5.4.25"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -7451,7 +7514,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-05-25T13:05:00+00:00"
|
"time": "2023-06-20T20:56:26+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tightenco/collect",
|
"name": "tightenco/collect",
|
||||||
@@ -8249,16 +8312,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "filp/whoops",
|
"name": "filp/whoops",
|
||||||
"version": "2.15.2",
|
"version": "2.15.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/filp/whoops.git",
|
"url": "https://github.com/filp/whoops.git",
|
||||||
"reference": "aac9304c5ed61bf7b1b7a6064bf9806ab842ce73"
|
"reference": "c83e88a30524f9360b11f585f71e6b17313b7187"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/filp/whoops/zipball/aac9304c5ed61bf7b1b7a6064bf9806ab842ce73",
|
"url": "https://api.github.com/repos/filp/whoops/zipball/c83e88a30524f9360b11f585f71e6b17313b7187",
|
||||||
"reference": "aac9304c5ed61bf7b1b7a6064bf9806ab842ce73",
|
"reference": "c83e88a30524f9360b11f585f71e6b17313b7187",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -8308,7 +8371,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/filp/whoops/issues",
|
"issues": "https://github.com/filp/whoops/issues",
|
||||||
"source": "https://github.com/filp/whoops/tree/2.15.2"
|
"source": "https://github.com/filp/whoops/tree/2.15.3"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -8316,7 +8379,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-04-12T12:00:00+00:00"
|
"time": "2023-07-13T12:00:00+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "hamcrest/hamcrest-php",
|
"name": "hamcrest/hamcrest-php",
|
||||||
@@ -8371,16 +8434,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel/sail",
|
"name": "laravel/sail",
|
||||||
"version": "v1.22.0",
|
"version": "v1.23.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/laravel/sail.git",
|
"url": "https://github.com/laravel/sail.git",
|
||||||
"reference": "923e1e112b6a8598664dbb0ee79dd3137f1c9d56"
|
"reference": "62582606f80466aa81fba40b193b289106902853"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/laravel/sail/zipball/923e1e112b6a8598664dbb0ee79dd3137f1c9d56",
|
"url": "https://api.github.com/repos/laravel/sail/zipball/62582606f80466aa81fba40b193b289106902853",
|
||||||
"reference": "923e1e112b6a8598664dbb0ee79dd3137f1c9d56",
|
"reference": "62582606f80466aa81fba40b193b289106902853",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -8432,7 +8495,7 @@
|
|||||||
"issues": "https://github.com/laravel/sail/issues",
|
"issues": "https://github.com/laravel/sail/issues",
|
||||||
"source": "https://github.com/laravel/sail"
|
"source": "https://github.com/laravel/sail"
|
||||||
},
|
},
|
||||||
"time": "2023-05-04T14:52:56+00:00"
|
"time": "2023-06-28T18:31:28+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "mockery/mockery",
|
"name": "mockery/mockery",
|
||||||
@@ -9089,16 +9152,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "9.6.9",
|
"version": "9.6.10",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "a9aceaf20a682aeacf28d582654a1670d8826778"
|
"reference": "a6d351645c3fe5a30f5e86be6577d946af65a328"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a9aceaf20a682aeacf28d582654a1670d8826778",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a6d351645c3fe5a30f5e86be6577d946af65a328",
|
||||||
"reference": "a9aceaf20a682aeacf28d582654a1670d8826778",
|
"reference": "a6d351645c3fe5a30f5e86be6577d946af65a328",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -9172,7 +9235,7 @@
|
|||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
"issues": "https://github.com/sebastianbergmann/phpunit/issues",
|
||||||
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
"security": "https://github.com/sebastianbergmann/phpunit/security/policy",
|
||||||
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.9"
|
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.10"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -9188,7 +9251,7 @@
|
|||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-06-11T06:13:56+00:00"
|
"time": "2023-07-10T04:04:23+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/cli-parser",
|
"name": "sebastian/cli-parser",
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'locale' => 'en',
|
'locale' => 'it',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -106,7 +106,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'faker_locale' => 'en_US',
|
'faker_locale' => 'it_IT',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -161,6 +161,7 @@ return [
|
|||||||
Illuminate\Translation\TranslationServiceProvider::class,
|
Illuminate\Translation\TranslationServiceProvider::class,
|
||||||
Illuminate\Validation\ValidationServiceProvider::class,
|
Illuminate\Validation\ValidationServiceProvider::class,
|
||||||
Illuminate\View\ViewServiceProvider::class,
|
Illuminate\View\ViewServiceProvider::class,
|
||||||
|
Creativeorange\Gravatar\GravatarServiceProvider::class,
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -232,6 +233,7 @@ return [
|
|||||||
'Validator' => Illuminate\Support\Facades\Validator::class,
|
'Validator' => Illuminate\Support\Facades\Validator::class,
|
||||||
'View' => Illuminate\Support\Facades\View::class,
|
'View' => Illuminate\Support\Facades\View::class,
|
||||||
'FastExcel' => Rap2hpoutre\FastExcel\Facades\FastExcel::class,
|
'FastExcel' => Rap2hpoutre\FastExcel\Facades\FastExcel::class,
|
||||||
|
'Gravatar' => Creativeorange\Gravatar\Facade\Gravatar::class,
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,18 @@ class CreateDocumentisTable extends Migration
|
|||||||
$table->string('descrizione');
|
$table->string('descrizione');
|
||||||
$table->string('filename');
|
$table->string('filename');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
{issue #5} GITEA - proposta modifica
|
||||||
|
Schema::create('documentis', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->string('entita');
|
||||||
|
$table->bigInteger('entita_id');
|
||||||
|
$table->string('descrizione');
|
||||||
|
$table->string('filename');
|
||||||
|
});
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ class ColumnsAnagrafica extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table('anagraficas', function (Blueprint $table) {
|
/*Schema::table('anagraficas', function (Blueprint $table) {
|
||||||
//
|
/* //
|
||||||
$table->longText('ang_indirizzo');
|
// $table->longText('ang_indirizzo');
|
||||||
$table->string('ang_CAP');
|
$table->string('ang_CAP');
|
||||||
$table->string('ang_Citta');
|
$table->string('ang_Citta');
|
||||||
$table->string('ang_Provincia');
|
$table->string('ang_Provincia');
|
||||||
$table->string('ang_telefono');
|
$table->string('ang_telefono');
|
||||||
});
|
});*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateRivistasTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('rivistas', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('rivistas');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateAssociazionesTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('associaziones', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('associaziones');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateGruppisTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('gruppis', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('gruppis');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class UpdateCategoriesAddingSpesaEntrata extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
Schema::table('categories', function (Blueprint $table) {
|
||||||
|
|
||||||
|
$table->smallInteger('cat_entrata')->after('cat_name')->default(0);
|
||||||
|
$table->smallInteger('cat_uscita')->after('cat_entrata')->default(0);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
Schema::table('categories', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('cat_entrata');
|
||||||
|
$table->dropColumn('cat_uscita');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
39
database/migrations/2023_07_14_123253_create_tasks_table.php
Normal file
39
database/migrations/2023_07_14_123253_create_tasks_table.php
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateTasksTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('tasks', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->string('titolo',255);
|
||||||
|
$table->longText('descrizione')->nullable();
|
||||||
|
$table->bigInteger('creato_da');
|
||||||
|
$table->bigInteger('assegnato_a');
|
||||||
|
$table->date('creato_il');
|
||||||
|
$table->date('termine_il');
|
||||||
|
$table->date('chiuso_il');
|
||||||
|
$table->enum('stato', ['Aperto', 'Chiuso'])->nullable()->default('Aperto');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('tasks');
|
||||||
|
}
|
||||||
|
}
|
||||||
42
database/migrations/2023_07_14_123350_subtask.php
Normal file
42
database/migrations/2023_07_14_123350_subtask.php
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class Subtask extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
Schema::create('subtasks', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
// $table->bigInteger('tasks_id');
|
||||||
|
$table->foreignId('tasks_id')->onDelete('cascade');
|
||||||
|
$table->string('titolo',255);
|
||||||
|
$table->longText('descrizione')->nullable();
|
||||||
|
$table->bigInteger('creato_da');
|
||||||
|
$table->bigInteger('assegnato_a');
|
||||||
|
$table->date('creato_il');
|
||||||
|
$table->date('termine_il');
|
||||||
|
$table->date('chiuso_il');
|
||||||
|
$table->enum('stato', ['Aperto', 'Chiuso'])->nullable()->default('Aperto');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateAvvisosTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('avvisos', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->longtext('avviso');
|
||||||
|
$table->date('creato_il')->nullable()->default(date('Y-m-d'));
|
||||||
|
$table->bigInteger('creato_da');
|
||||||
|
$table->boolean('urgente')->nullable()->default(false);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('avvisos');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateContrattisTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('contrattis', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->string('numero', 100)->nullable();
|
||||||
|
$table->string('nome', 100);
|
||||||
|
$table->date('datainizio');
|
||||||
|
$table->date('datatermine');
|
||||||
|
$table->string('fornitore', 100)->default('text');
|
||||||
|
$table->string('tipo', 100)->default('utenze');
|
||||||
|
$table->decimal('importo', 5, 2);
|
||||||
|
$table->date('scadenzapagamento');
|
||||||
|
$table->string('stato', 100)->default('attivo');
|
||||||
|
$table->longText('note')->nullable();
|
||||||
|
$table->string('filename',255)->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('contrattis');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,13 +16,23 @@ class CategorieSeeder extends Seeder
|
|||||||
{
|
{
|
||||||
// Inserisce le categorie necessarie
|
// Inserisce le categorie necessarie
|
||||||
DB::table('categories')->insert(
|
DB::table('categories')->insert(
|
||||||
['cat_name'=>'Automobili']
|
[
|
||||||
|
'cat_name'=>'Automobili',
|
||||||
|
'cat_uscita'=>1,
|
||||||
|
'cat_entrata'=>0,
|
||||||
|
]
|
||||||
);
|
);
|
||||||
DB::table('categories')->insert(
|
DB::table('categories')->insert(
|
||||||
['cat_name'=>'Stipendio']
|
[
|
||||||
|
'cat_name'=>'Stipendio',
|
||||||
|
'cat_uscita'=>0,
|
||||||
|
'cat_entrata'=>1]
|
||||||
);
|
);
|
||||||
DB::table('categories')->insert(
|
DB::table('categories')->insert(
|
||||||
['cat_name'=>'Utenze']
|
[
|
||||||
|
'cat_name'=>'Utenze',
|
||||||
|
'cat_uscita'=>1,
|
||||||
|
'cat_entrata'=>0]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
84
database/seeders/OnlySeeder.php
Normal file
84
database/seeders/OnlySeeder.php
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<?php
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use App\Models\User;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
use Spatie\Permission\Models\Permission;
|
||||||
|
use Spatie\Permission\Models\Role;
|
||||||
|
use Spatie\Permission\PermissionRegistrar;
|
||||||
|
|
||||||
|
class OnlySeeder extends Seeder
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function run()
|
||||||
|
{
|
||||||
|
// Role Creation
|
||||||
|
$role_admin = Role::create([
|
||||||
|
'name' => 'admin'
|
||||||
|
]);
|
||||||
|
$role_user = Role::create([
|
||||||
|
'name' => 'user'
|
||||||
|
]);
|
||||||
|
$role_guest = Role::create([
|
||||||
|
'name' => 'guest'
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Permission Creation
|
||||||
|
Permission::create([
|
||||||
|
'name' => 'conti'
|
||||||
|
]);
|
||||||
|
Permission::create([
|
||||||
|
'name' => 'consumi'
|
||||||
|
]);
|
||||||
|
Permission::create([
|
||||||
|
'name' => 'automobili'
|
||||||
|
]);
|
||||||
|
Permission::create([
|
||||||
|
'name' => 'contatti'
|
||||||
|
]);
|
||||||
|
Permission::create([
|
||||||
|
'name' => 'affitti'
|
||||||
|
]);
|
||||||
|
Permission::create([
|
||||||
|
'name' => 'progetti'
|
||||||
|
]);
|
||||||
|
Permission::create([
|
||||||
|
'name' => 'amministrazione'
|
||||||
|
]);
|
||||||
|
|
||||||
|
// Assegnazione permessi al ruolo user
|
||||||
|
$role_user->givePermissionTo('affitti');
|
||||||
|
$role_user->givePermissionTo('automobili');
|
||||||
|
$role_user->givePermissionTo('contatti');
|
||||||
|
$role_user->givePermissionTo('consumi');
|
||||||
|
$role_user->givePermissionTo('conti');
|
||||||
|
$role_user->givePermissionTo('progetti');
|
||||||
|
// Assegnazione permessi al ruolo guest
|
||||||
|
$role_guest->givePermissionTo('affitti');
|
||||||
|
// Il ruolo admin ha già tutti i permessi da middleware
|
||||||
|
|
||||||
|
$admin = User::create([
|
||||||
|
'name'=>'Amministratore',
|
||||||
|
'email'=>'admin@localhost.local',
|
||||||
|
'password'=>Hash::make('admin'),
|
||||||
|
])->assignRole('admin');
|
||||||
|
|
||||||
|
$user = User::create([
|
||||||
|
'name'=>'Utente',
|
||||||
|
'email'=>'user@localhost.local',
|
||||||
|
'password'=>Hash::make('user'),
|
||||||
|
])->assignRole('user');
|
||||||
|
|
||||||
|
$guest = User::create([
|
||||||
|
'name'=>'Guest',
|
||||||
|
'email'=>'guest@localhost.local',
|
||||||
|
'password'=>Hash::make('guest'),
|
||||||
|
])->assignRole('guest');
|
||||||
|
}
|
||||||
|
}
|
||||||
19
public/js/app/auto.js
vendored
19
public/js/app/auto.js
vendored
@@ -1,12 +1,19 @@
|
|||||||
|
$(document).ready(function() {
|
||||||
|
$('#listaAutomobili').DataTable({
|
||||||
|
responsive: true
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#automobili').DataTable({
|
$('#automobili').DataTable({
|
||||||
responsive: true,
|
responsive: true,
|
||||||
fields: [
|
columnDefs: [
|
||||||
{
|
{
|
||||||
label:"Data",
|
target: 0,
|
||||||
type: "datetime"
|
render: DataTable.render.date(),
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"order": [[0, "desc"]]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
39
public/js/app/conti_categorie.js
vendored
39
public/js/app/conti_categorie.js
vendored
@@ -1,41 +1,50 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#listrapportoS').DataTable({
|
$('#listrapportoS').DataTable({
|
||||||
responsive: true,
|
"responsive": true,
|
||||||
fields: [
|
"order": [[0, "asc"]]
|
||||||
{
|
|
||||||
label:"Data",
|
|
||||||
type: "datetime"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#listrapportoE').DataTable({
|
$('#listrapportoE').DataTable({
|
||||||
responsive: true,
|
"responsive": true,
|
||||||
fields: [
|
"order": [[0, "asc"]]
|
||||||
{
|
|
||||||
label:"Data",
|
|
||||||
type: "datetime"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#categorie').DataTable({
|
$('#categorie').DataTable({
|
||||||
responsive: true
|
responsive: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click','.open_modal',function(){
|
$(document).on('click','.open_modal',function(){
|
||||||
var url = "/admin/categorie/modify";
|
var url = "/admin/categorie/modify";
|
||||||
var riga_id= $(this).val();
|
var riga_id= $(this).val();
|
||||||
$.getJSON(url + '/' + riga_id, function (data) {
|
$.getJSON(url + '/' + riga_id, function (data) {
|
||||||
//success data
|
//success data
|
||||||
|
$('#cat_entrata').prop('checked', false);
|
||||||
|
$('#cat_uscita').prop('checked', false);
|
||||||
|
|
||||||
|
|
||||||
console.log(data[0]);
|
console.log(data[0]);
|
||||||
console.log(data[0].cat_name);
|
console.log(data[0].cat_name);
|
||||||
$('#H_cat_cat_name').val(data[0].cat_name);
|
|
||||||
|
|
||||||
|
|
||||||
|
if (data[0].cat_uscita === 1)
|
||||||
|
{
|
||||||
|
// $('.myCheckbox').prop('checked', true);
|
||||||
|
$('#cat_uscita').prop('checked', true);
|
||||||
|
}
|
||||||
|
if (data[0].cat_entrata ===1)
|
||||||
|
{
|
||||||
|
$('#cat_entrata').prop('checked', true);
|
||||||
|
}
|
||||||
$('#H_cat_id').val(data[0].id);
|
$('#H_cat_id').val(data[0].id);
|
||||||
|
$('#H_cat_cat_name').val(data[0].cat_name);
|
||||||
$('#myModal').modal('show');
|
$('#myModal').modal('show');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click','.open_modal_new',function(){
|
$(document).on('click','.open_modal_new',function(){
|
||||||
|
console.log('richiesto apertura form');
|
||||||
$('#myModal_new').modal('show');
|
$('#myModal_new').modal('show');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
10
public/js/app/contratti.js
vendored
Normal file
10
public/js/app/contratti.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
$('#contratti').DataTable({
|
||||||
|
responsive: true,
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
label:"Data",
|
||||||
|
type: "datetime"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
$(".draggable").draggable();
|
||||||
8
public/js/app/dashboard.js
vendored
8
public/js/app/dashboard.js
vendored
@@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#categorie').DataTable({
|
|
||||||
responsive: true
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
// Rende spostabili le varie finestre
|
||||||
|
$(".draggable").draggable();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
15
public/js/app/enel.js
vendored
15
public/js/app/enel.js
vendored
@@ -1,11 +1,12 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#listaLettureEnel').DataTable({
|
$('#listaLettureEnel').DataTable({
|
||||||
responsive: true,
|
"responsive": true,
|
||||||
fields: [
|
columnDefs: [
|
||||||
{
|
{
|
||||||
label:"Data lettura",
|
target: 0,
|
||||||
type: "datetime"
|
render: DataTable.render.date(),
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"order": [[0, "desc"]]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
15
public/js/app/gas.js
vendored
15
public/js/app/gas.js
vendored
@@ -1,11 +1,12 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#listaLettureGas').DataTable({
|
$('#listaLettureGas').DataTable({
|
||||||
responsive: true,
|
"responsive": true,
|
||||||
fields: [
|
columnDefs: [
|
||||||
{
|
{
|
||||||
label:"Data lettura",
|
target: 0,
|
||||||
type: "datetime"
|
render: DataTable.render.date(),
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"order": [[0, "desc"]]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
100
public/js/app/movimenti.js
vendored
100
public/js/app/movimenti.js
vendored
@@ -1,16 +1,18 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#listamovimenti').DataTable({
|
$('#listamovimenti').DataTable({
|
||||||
"responsive": true,
|
"responsive": true,
|
||||||
fields: [
|
columnDefs: [
|
||||||
{
|
{
|
||||||
label:"Data",
|
target: 0,
|
||||||
type: "datetime"
|
render: DataTable.render.date(),
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"order": [[0, "desc"]]
|
"order": [[0, "desc"]]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(".draggable").draggable();
|
||||||
|
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
|
|
||||||
var month = d.getMonth()+1;
|
var month = d.getMonth()+1;
|
||||||
@@ -23,55 +25,101 @@ var strDate = d.getFullYear() + '-' +
|
|||||||
|
|
||||||
$(document).on('click', '.open_modal_spesa', function() {
|
$(document).on('click', '.open_modal_spesa', function() {
|
||||||
console.log(strDate);
|
console.log(strDate);
|
||||||
$('#form').find('input[type="text"], textarea, input[type="number"],input[type="date"]').val("");
|
$("#categoria").empty();
|
||||||
|
$("#tags").empty();
|
||||||
|
$('#form').find('input[type="text"], textarea, input[type="number"],input[type="date"],option').val("");
|
||||||
$('#form').find('input[type="date"]').val(strDate);
|
$('#form').find('input[type="date"]').val(strDate);
|
||||||
$('#myModal').modal('show');
|
$('#myModal').modal('show');
|
||||||
$('.modal-title').text(' Nuovo movimento in uscita');
|
$('.modal-title').text(' Nuovo movimento in uscita');
|
||||||
$('#form').attr('action', '/admin/movimenti/spesa');
|
$('#form').attr('action', '/admin/movimenti/spesa');
|
||||||
|
$.getJSON("/admin/service/catlistSpesa", {}, function(cats) {
|
||||||
|
$.each(cats, function(i, cat) {
|
||||||
|
$("select[name='mov_fk_categoria']").append(
|
||||||
|
new Option(cat.cat_name, cat.id)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
$.getJSON("/admin/service/taglist", {}, function(tags) {
|
||||||
|
$.each(tags, function(i, tag) {
|
||||||
|
$("select[name='mov_fk_tags']").append(
|
||||||
|
new Option(tag.tag_name, tag.id)
|
||||||
|
)
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click', '.open_modal_entrata', function() {
|
$(document).on('click', '.open_modal_entrata', function() {
|
||||||
console.log(strDate);
|
console.log(strDate);
|
||||||
$('#form').find('input[type="text"], textarea, input[type="number"]').val("");
|
$("#categoria").empty();
|
||||||
|
$("#tags").empty();
|
||||||
|
$('#form').find('input[type="text"], textarea, input[type="number"],option').val("");
|
||||||
$('#form').find('input[type="date"]').val(strDate);
|
$('#form').find('input[type="date"]').val(strDate);
|
||||||
$('#myModal').modal('show');
|
$('#myModal').modal('show');
|
||||||
$('.modal-title').text('Nuovo movimento in entrata');
|
$('.modal-title').text('Nuovo movimento in entrata');
|
||||||
$('#form').attr('action', '/admin/movimenti/entrata');
|
$('#form').attr('action', '/admin/movimenti/entrata');
|
||||||
|
$.getJSON("/admin/service/catlistEntrata", {}, function(data) {
|
||||||
|
$.each(data, function(i, item) {
|
||||||
|
$("select[name='mov_fk_categoria']").append(
|
||||||
|
new Option(item.cat_name, item.id)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
$.getJSON("/admin/service/taglist", {}, function(data) {
|
||||||
|
$.each(data, function(i, item) {
|
||||||
|
$("select[name='mov_fk_tags']").append(
|
||||||
|
new Option(item.tag_name, item.id)
|
||||||
|
)
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click', '.open_modal_modifica', function() {
|
$(document).on('click', '.open_modal_modifica', function() {
|
||||||
var url = "/admin/movimenti/modify";
|
var url = "/admin/movimenti/modify";
|
||||||
var riga_id = $(this).val();
|
var riga_id = $(this).val();
|
||||||
|
$("#categoria").empty();
|
||||||
|
$("#tags").empty();
|
||||||
$.getJSON(url + '/' + riga_id, function(data) {
|
$.getJSON(url + '/' + riga_id, function(data) {
|
||||||
// success data
|
// success data
|
||||||
console.log(data[0]);
|
console.log(data[0]);
|
||||||
|
$.getJSON("/admin/service/taglist", {}, function(tags) {
|
||||||
|
$.each(tags, function(i, tag) {
|
||||||
|
$("select[name='mov_fk_tags']").append(
|
||||||
|
new Option(tag.tag_name, tag.id)
|
||||||
|
)
|
||||||
|
$('#tags')
|
||||||
|
.find('option:contains(' + data[0].tag_name + ')')
|
||||||
|
.prop('selected', true)
|
||||||
|
.trigger('change');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$.getJSON("/admin/service/catlist", {}, function(cats) {
|
||||||
|
$.each(cats, function(i, cat) {
|
||||||
|
$("select[name='mov_fk_categoria']").append(
|
||||||
|
new Option(cat.cat_name, cat.id)
|
||||||
|
)
|
||||||
|
$('#categoria')
|
||||||
|
.find('option:contains(' + data[0].cat_name + ')')
|
||||||
|
.prop('selected', true)
|
||||||
|
.trigger('change');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
$('.modal-title').text('Modifica movimento');
|
$('.modal-title').text('Modifica movimento');
|
||||||
$('#data').val(data[0].mov_data);
|
$('#data').val(data[0].mov_data);
|
||||||
$('#descrizione').val(data[0].mov_descrizione);
|
$('#descrizione').val(data[0].mov_descrizione);
|
||||||
$('#importo').val(data[0].mov_importo);
|
$('#importo').val(data[0].mov_importo);
|
||||||
$('#tags')
|
|
||||||
.find('option:contains(' + data[0].tag_name + ')')
|
|
||||||
.prop('selected', true)
|
|
||||||
.trigger('change');
|
|
||||||
$('#categoria')
|
|
||||||
.find('option:contains(' + data[0].cat_name + ')')
|
|
||||||
.prop('selected', true)
|
|
||||||
.trigger('change');
|
|
||||||
$('#myModal').modal('show');
|
$('#myModal').modal('show');
|
||||||
// $('.panel-heading').text('Modifica movimento');
|
// $('.panel-heading').text('Modifica movimento');
|
||||||
$('#form').attr('action', '/admin/movimenti/modify');
|
$('#form').attr('action', '/admin/movimenti/modify');
|
||||||
$('#form').append('<input type="hidden" name="id" value="' + riga_id + '">');
|
$('#form').append('<input type="hidden" name="id" value="' + riga_id + '">');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$.getJSON("/admin/service/catlist", {}, function(data) {
|
/*
|
||||||
$.each(data, function(i, item) {
|
|
||||||
$("select[name='mov_fk_categoria']").append(
|
|
||||||
new Option(item.cat_name, item.id)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
$.getJSON("/admin/service/taglist", {}, function(data) {
|
$.getJSON("/admin/service/taglist", {}, function(data) {
|
||||||
$.each(data, function(i, item) {
|
$.each(data, function(i, item) {
|
||||||
@@ -80,3 +128,5 @@ $.getJSON("/admin/service/taglist", {}, function(data) {
|
|||||||
)
|
)
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
*/
|
||||||
|
|||||||
15
public/js/app/progetti.js
vendored
15
public/js/app/progetti.js
vendored
@@ -1,13 +1,14 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
$('#tab_progetti').DataTable({
|
$('#tab_progetti').DataTable({
|
||||||
responsive: true,
|
"responsive": true,
|
||||||
fields: [
|
columnDefs: [
|
||||||
{
|
{
|
||||||
label:"Data",
|
target: 1,
|
||||||
type: "datetime"
|
render: DataTable.render.date(),
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"order": [[1, "desc"]]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
15
public/js/app/rigaProgetti.js
vendored
15
public/js/app/rigaProgetti.js
vendored
@@ -1,12 +1,13 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#tab_progetti').DataTable({
|
$('#tab_progetti').DataTable({
|
||||||
responsive: true,
|
"responsive": true,
|
||||||
fields: [
|
columnDefs: [
|
||||||
{
|
{
|
||||||
label:"Data",
|
target: 0,
|
||||||
type: "datetime"
|
render: DataTable.render.date(),
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"order": [[0, "desc"]]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
$('#form').click(function() {
|
$('#form').click(function() {
|
||||||
|
|||||||
127
public/js/app/task.js
vendored
Normal file
127
public/js/app/task.js
vendored
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
$(document).ready(function() {
|
||||||
|
$('#listatask').DataTable({
|
||||||
|
"responsive": true,
|
||||||
|
columnDefs: [
|
||||||
|
{
|
||||||
|
target: 0,
|
||||||
|
render: DataTable.render.date(),
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"order": [[0, "desc"]]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$(".draggable").draggable();
|
||||||
|
var d = new Date();
|
||||||
|
|
||||||
|
var month = d.getMonth()+1;
|
||||||
|
var day = d.getDate();
|
||||||
|
|
||||||
|
var strDate = d.getFullYear() + '-' +
|
||||||
|
(month<10 ? '0' : '') + month + '-' +
|
||||||
|
(day<10 ? '0' : '') + day;
|
||||||
|
|
||||||
|
|
||||||
|
$(document).on('click', '.open_modal_new', function() {
|
||||||
|
console.log(strDate);
|
||||||
|
$("#titolo").empty();
|
||||||
|
$("#descrizione").empty();
|
||||||
|
$('#form').find('input[type="text"], textarea, input[type="number"],input[type="date"],option').val("");
|
||||||
|
$('#form').find('input[type="date"]').val(strDate);
|
||||||
|
$('#myModal').modal('show');
|
||||||
|
$('.modal-title').text(' Nuova attività');
|
||||||
|
$('#form').attr('action', '/admin/task/new');
|
||||||
|
$.getJSON("/admin/service/getUsers", {}, function(users) {
|
||||||
|
$.each(users, function(i, users) {
|
||||||
|
$("select[name='assegnato_a']").append(
|
||||||
|
new Option(users.name, users.id)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
$(document).on('click', '.open_modal_entrata', function() {
|
||||||
|
console.log(strDate);
|
||||||
|
$("#titolo").empty();
|
||||||
|
$("#tags").empty();
|
||||||
|
$('#form').find('input[type="text"], textarea, input[type="number"],option').val("");
|
||||||
|
$('#form').find('input[type="date"]').val(strDate);
|
||||||
|
$('#myModal_new').modal('show');
|
||||||
|
$('.modal-title').text('Nuovo movimento in entrata');
|
||||||
|
$('#form').attr('action', '/admin/movimenti/entrata');
|
||||||
|
$.getJSON("/admin/service/catlistEntrata", {}, function(data) {
|
||||||
|
$.each(data, function(i, item) {
|
||||||
|
$("select[name='mov_fk_categoria']").append(
|
||||||
|
new Option(item.cat_name, item.id)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
$.getJSON("/admin/service/taglist", {}, function(data) {
|
||||||
|
$.each(data, function(i, item) {
|
||||||
|
$("select[name='mov_fk_tags']").append(
|
||||||
|
new Option(item.tag_name, item.id)
|
||||||
|
)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('click', '.open_modal_modifica', function() {
|
||||||
|
var url = "/admin/movimenti/modify";
|
||||||
|
var riga_id = $(this).val();
|
||||||
|
$("#categoria").empty();
|
||||||
|
$("#tags").empty();
|
||||||
|
$.getJSON(url + '/' + riga_id, function(data) {
|
||||||
|
// success data
|
||||||
|
console.log(data[0]);
|
||||||
|
$.getJSON("/admin/service/taglist", {}, function(tags) {
|
||||||
|
$.each(tags, function(i, tag) {
|
||||||
|
$("select[name='mov_fk_tags']").append(
|
||||||
|
new Option(tag.tag_name, tag.id)
|
||||||
|
)
|
||||||
|
$('#tags')
|
||||||
|
.find('option:contains(' + data[0].tag_name + ')')
|
||||||
|
.prop('selected', true)
|
||||||
|
.trigger('change');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$.getJSON("/admin/service/catlist", {}, function(cats) {
|
||||||
|
$.each(cats, function(i, cat) {
|
||||||
|
$("select[name='mov_fk_categoria']").append(
|
||||||
|
new Option(cat.cat_name, cat.id)
|
||||||
|
)
|
||||||
|
$('#categoria')
|
||||||
|
.find('option:contains(' + data[0].cat_name + ')')
|
||||||
|
.prop('selected', true)
|
||||||
|
.trigger('change');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
$('.modal-title').text('Modifica movimento');
|
||||||
|
$('#data').val(data[0].mov_data);
|
||||||
|
$('#descrizione').val(data[0].mov_descrizione);
|
||||||
|
$('#importo').val(data[0].mov_importo);
|
||||||
|
|
||||||
|
$('#myModal').modal('show');
|
||||||
|
// $('.panel-heading').text('Modifica movimento');
|
||||||
|
$('#form').attr('action', '/admin/movimenti/modify');
|
||||||
|
$('#form').append('<input type="hidden" name="id" value="' + riga_id + '">');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
$.getJSON("/admin/service/taglist", {}, function(data) {
|
||||||
|
$.each(data, function(i, item) {
|
||||||
|
$("select[name='mov_fk_tags']").append(
|
||||||
|
new Option(item.tag_name, item.id)
|
||||||
|
)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
*/
|
||||||
0
public/js/momentjs.js
vendored
Normal file
0
public/js/momentjs.js
vendored
Normal file
@@ -7,7 +7,7 @@
|
|||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
|
|
||||||
<title>BuBo Family - made with <3 - </title>
|
<title>{{env('APP_NAME')}}</title>
|
||||||
|
|
||||||
<!-- Bootstrap Core CSS -->
|
<!-- Bootstrap Core CSS -->
|
||||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||||
@@ -20,22 +20,9 @@
|
|||||||
|
|
||||||
<!-- Custom Fonts -->
|
<!-- Custom Fonts -->
|
||||||
<link href="/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
<link href="/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
||||||
<!-- Latest compiled and minified CSS
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css">
|
|
||||||
-->
|
|
||||||
<!-- Latest compiled and minified JavaScript
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js"></script>-->
|
|
||||||
|
|
||||||
<!-- (Optional) Latest compiled and minified JavaScript translation files
|
<!-- Datatables with datetime and locales -->
|
||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/i18n/defaults-*.min.js"></script>-->
|
<link href="https://cdn.datatables.net/v/dt/dt-1.13.4/date-1.4.1/r-2.4.1/sb-1.4.2/sp-2.1.2/datatables.min.css" rel="stylesheet"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
@section('head_additional')
|
@section('head_additional')
|
||||||
@show
|
@show
|
||||||
</head>
|
</head>
|
||||||
@@ -108,19 +95,22 @@
|
|||||||
<!-- /#wrapper -->
|
<!-- /#wrapper -->
|
||||||
|
|
||||||
<!-- jQuery -->
|
<!-- jQuery -->
|
||||||
<script src="/js/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.1/jquery-ui.min.js"></script>
|
||||||
<!-- Bootstrap Core JavaScript -->
|
<!-- Bootstrap Core JavaScript -->
|
||||||
<script src="/js/bootstrap.min.js"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
<!-- Metis Menu Plugin JavaScript -->
|
<!-- Metis Menu Plugin JavaScript -->
|
||||||
<script src="/js/metisMenu.min.js"></script>
|
<script src="/js/metisMenu.min.js"></script>
|
||||||
|
|
||||||
<!-- DataTables JavaScript -->
|
<script src="https://cdn.datatables.net/v/dt/dt-1.13.4/date-1.4.1/r-2.4.1/sb-1.4.2/sp-2.1.2/datatables.min.js"></script>
|
||||||
|
<!-- DataTables JavaScript
|
||||||
<script src="/js/dataTables/jquery.dataTables.min.js"></script>
|
<script src="/js/dataTables/jquery.dataTables.min.js"></script>
|
||||||
<script src="/js/dataTables/dataTables.bootstrap.min.js"></script>
|
<script src="/js/dataTables/dataTables.bootstrap.min.js"></script>-->
|
||||||
|
|
||||||
<!-- Custom Theme JavaScript -->
|
<!-- Custom Theme JavaScript -->
|
||||||
|
|
||||||
|
<script src="/js/momentjs.js"></script>
|
||||||
<script src="/js/startmin.js"></script>
|
<script src="/js/startmin.js"></script>
|
||||||
@section('script')
|
@section('script')
|
||||||
@show
|
@show
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-striped table-bordered table-hover"
|
<table class="table table-striped table-bordered table-hover"
|
||||||
id="automobili">
|
id="listaAutomobili">
|
||||||
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -21,7 +21,13 @@
|
|||||||
</ul></li>
|
</ul></li>
|
||||||
|
|
||||||
</ul> <!-- /.nav-second-level --></li>
|
</ul> <!-- /.nav-second-level --></li>
|
||||||
@endcan @can('consumi')
|
@endcan
|
||||||
|
@can('contratti')
|
||||||
|
<li><a href="{{ route('contratti'); }}"><i class="fa fa-list fa-fw"></i>
|
||||||
|
Contratti <span class="fa arrow"></span></a>
|
||||||
|
</li>
|
||||||
|
@endcan
|
||||||
|
@can('consumi')
|
||||||
<li><a href="#"><i class="fa fa-industry fa-fw"></i> Consumi <span
|
<li><a href="#"><i class="fa fa-industry fa-fw"></i> Consumi <span
|
||||||
class="fa arrow"></span></a>
|
class="fa arrow"></span></a>
|
||||||
|
|
||||||
@@ -31,7 +37,8 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><a href="{{ route('enel'); }}"><i class="fa fa-flash fa-fw"></i>Energia
|
<li><a href="{{ route('enel'); }}"><i class="fa fa-flash fa-fw"></i>Energia
|
||||||
Elettrica</a></li>
|
Elettrica</a></li>
|
||||||
</ul></li>
|
</ul>
|
||||||
|
</li>
|
||||||
@endcan @can('automobili')
|
@endcan @can('automobili')
|
||||||
<li><a href="{{ route('auto_list'); }}"><i class="fa fa-car fa-fw"></i>
|
<li><a href="{{ route('auto_list'); }}"><i class="fa fa-car fa-fw"></i>
|
||||||
Automobili <span class="fa arrow"></span></a></li>
|
Automobili <span class="fa arrow"></span></a></li>
|
||||||
@@ -49,7 +56,14 @@
|
|||||||
@endcan @can('progetti')
|
@endcan @can('progetti')
|
||||||
<li><a href="{{ route('progetti'); }}"><i class="fa fa-list fa-fw"></i>
|
<li><a href="{{ route('progetti'); }}"><i class="fa fa-list fa-fw"></i>
|
||||||
Progetti <span class="fa arrow"></span></a></li>
|
Progetti <span class="fa arrow"></span></a></li>
|
||||||
@endcan @can('amministrazione')
|
|
||||||
|
@endcan
|
||||||
|
@can('tasks')
|
||||||
|
<li><a href="{{ route('tasks'); }}"><i class="fa fa-list fa-fw"></i>
|
||||||
|
Attività <span class="fa arrow"></span></a></li>
|
||||||
|
|
||||||
|
@endcan
|
||||||
|
@can('amministrazione')
|
||||||
<li><a href="#"><i class="fa fa-gears fa-fw"></i>Amministrazione<span
|
<li><a href="#"><i class="fa fa-gears fa-fw"></i>Amministrazione<span
|
||||||
class="fa arrow"></span></a>
|
class="fa arrow"></span></a>
|
||||||
<ul class="nav nav-second-level">
|
<ul class="nav nav-second-level">
|
||||||
@@ -58,7 +72,8 @@
|
|||||||
<li><a class="active" href="/admin/users/newRole">Gruppi</a></li>
|
<li><a class="active" href="/admin/users/newRole">Gruppi</a></li>
|
||||||
<li><a class="active" href="/admin/users/newPermission">Permessi</a></li>
|
<li><a class="active" href="/admin/users/newPermission">Permessi</a></li>
|
||||||
-->
|
-->
|
||||||
<li><a class="active" href="/admin/users/assignRole">Assegna Ruoli</a></li>
|
<li><a class="active" href="/admin/users/givepermission">Assegna Permessi</a></li>
|
||||||
|
<li><a class="active" href="/admin/users/giverole">Assegna Ruoli</a></li>
|
||||||
<!--
|
<!--
|
||||||
<li><a href="/login">Login Page</a></li>
|
<li><a href="/login">Login Page</a></li>
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
<ul class="dropdown-menu dropdown-user">
|
<ul class="dropdown-menu dropdown-user">
|
||||||
<li><a href="#"><i class="fa fa-user fa-fw"></i> Profilo utente</a></li>
|
<li><a href="#"><i class="fa fa-user fa-fw"></i> Profilo utente</a></li>
|
||||||
<li><a href="#"><i class="fa fa-gear fa-fw"></i> Impostazioni</a></li>
|
<li><a href="#"><i class="fa fa-gear fa-fw"></i> Impostazioni</a></li>
|
||||||
@role('admin')
|
@can('amministrazione')
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="/admin/users/new"><i class="fa fa-gear fa-fw"></i> Gestisci Utenti</a></li>
|
<li><a href="/admin/users/new"><i class="fa fa-gear fa-fw"></i> Gestisci Utenti</a></li>
|
||||||
@endrole
|
@endcan
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="https://github.com/fbarachino/bubofamily/issues/new/choose" target="new"><i class="fa fa-bug fa-fw"></i> Segnala un bug</a></li>
|
<li><a href="https://github.com/fbarachino/bubofamily/issues/new/choose" target="new"><i class="fa fa-bug fa-fw"></i> Segnala un bug</a></li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Categoria</th>
|
<th>Categoria</th>
|
||||||
|
<th>Classificazione</th>
|
||||||
<th>Azione</th>
|
<th>Azione</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -30,6 +31,14 @@
|
|||||||
<td><a
|
<td><a
|
||||||
href="movimenti/report/movimentibycat?cat={{ $categoria->id }}">{{
|
href="movimenti/report/movimentibycat?cat={{ $categoria->id }}">{{
|
||||||
$categoria->cat_name; }}</a></td>
|
$categoria->cat_name; }}</a></td>
|
||||||
|
<td>
|
||||||
|
@if($categoria->cat_entrata == 1)
|
||||||
|
Entrata ,
|
||||||
|
@endif
|
||||||
|
@if($categoria->cat_uscita == 1)
|
||||||
|
Uscita
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<button class="btn btn-warning btn-detail open_modal"
|
<button class="btn btn-warning btn-detail open_modal"
|
||||||
value="{{$categoria->id}}">Edit</button> <a
|
value="{{$categoria->id}}">Edit</button> <a
|
||||||
@@ -47,38 +56,54 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<!-- MODAL MODIFICA -->
|
|
||||||
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
|
|
||||||
aria-labelledby="myModalLabel" aria-hidden="true">
|
|
||||||
<div class="modal-dialog" role="document">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h4 class="modal-title">Modifica Categoria</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-8">
|
|
||||||
<form action="/admin/categorie/modify" method="POST">
|
|
||||||
@csrf <label for="H_cat_cat_name" class="form-label">Categoria</label>
|
|
||||||
<input type="text" class="form-control" id="H_cat_cat_name"
|
|
||||||
size="50" name="cat_name" value="" size="50">
|
|
||||||
|
|
||||||
|
<!-- MODAL MODIFICA -->
|
||||||
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
|
||||||
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog" role="document">
|
||||||
|
<form action="/admin/categorie/modify" method="POST">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title">Modifica Categoria</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8">
|
||||||
|
|
||||||
|
@csrf
|
||||||
|
<label for="H_cat_cat_name" class="form-label">Categoria</label>
|
||||||
|
<input type="text" class="form-control" id="H_cat_cat_name" size="50" name="cat_name">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input class="form-check-input" type="checkbox" role="switch" id="cat_entrata" name="cat_entrata" >
|
||||||
|
<label class="form-check-label" for="cat_entrata">Entrata</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input class="form-check-input" type="checkbox" role="switch" id="cat_uscita" name="cat_uscita">
|
||||||
|
<label class="form-check-label" for="cat_uscita">Uscita</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<input type="hidden" name="id" id="H_cat_id">
|
||||||
|
<button type="submit" class="btn btn-primary">Modifica</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
</form>
|
||||||
<input type="hidden" name="id" id="H_cat_id">
|
|
||||||
<button type="submit" class="btn btn-primary">Modifica</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- FINE MODAL MODIFICA -->
|
||||||
<!-- FINE MODAL MODIFICA -->
|
<!-- MODAL INSERIMENTO -->
|
||||||
<!-- MODAL INSERIMENTO -->
|
<div class="modal fade" id="myModal_new" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||||
<div class="modal fade" id="myModal_new" tabindex="-1" role="dialog"
|
|
||||||
aria-labelledby="myModalLabel" aria-hidden="true">
|
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
@@ -89,11 +114,26 @@
|
|||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<!-- FORM INSERIMENTO NUOVA CATEGORIA -->
|
<!-- FORM INSERIMENTO NUOVA CATEGORIA -->
|
||||||
<form action="" method="POST">
|
<form action="" method="POST">
|
||||||
@csrf <label for="categoria" class="form-label">Categoria</label>
|
@csrf
|
||||||
|
<label for="categoria" class="form-label">Categoria</label>
|
||||||
<input type="text" class="form-control" id="categoria"
|
<input type="text" class="form-control" id="categoria"
|
||||||
name="cat_name" size="50">
|
name="cat_name" size="50">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input class="form-check-input" type="checkbox" role="switch" id="cat_entrata" name="cat_entrata" >
|
||||||
|
<label class="form-check-label" for="cat_entrata">Entrata</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input class="form-check-input" type="checkbox" role="switch" id="cat_uscita" name="cat_uscita">
|
||||||
|
<label class="form-check-label" for="cat_uscita">Uscita</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@@ -103,11 +143,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- FINE MODAL INSERIMENTO -->
|
<!-- FINE MODAL INSERIMENTO -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- /.col-lg-12 -->
|
<!-- /.col-lg-12 -->
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<input type="hidden" name="movimenti_id" value="{{ $id }}">
|
<input type="hidden" name="movimenti_id" value="{{ $id }}">
|
||||||
|
<!-- {issue #5}
|
||||||
|
<input type="hidden" name="entita" value="Movimenti">
|
||||||
|
<input type="hidden" name="entita_id" value="{{$id}}">
|
||||||
|
-->
|
||||||
<button type="submit" class="btn btn-primary">Submit</button>
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -31,8 +31,9 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach( $movimenti as $movimento )
|
@foreach( $movimenti as $movimento )
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ date_format(date_create($movimento->mov_data),'d/m/Y'); }}</td>
|
<!-- <td>{{ date_format(date_create($movimento->mov_data),'d/m/Y'); }}</td>-->
|
||||||
<td>{{ $movimento->cat_name; }}</td>
|
<td>{{ $movimento->mov_data}}</td>
|
||||||
|
<td>{{ $movimento->cat_name; }}</td>
|
||||||
<td>{{ $movimento->mov_descrizione; }}</td>
|
<td>{{ $movimento->mov_descrizione; }}</td>
|
||||||
<td>€ {{ $movimento->mov_importo; }}</td>
|
<td>€ {{ $movimento->mov_importo; }}</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -58,9 +59,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- MODAL NEW -->
|
<!-- MODAL NEW -->
|
||||||
<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
|
<div class="modal fade " id="myModal" tabindex="-1" role="dialog"
|
||||||
aria-labelledby="myModalLabel" aria-hidden="true">
|
aria-labelledby="myModalLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog draggable" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">Nuovo movimento</h4>
|
<h4 class="modal-title">Nuovo movimento</h4>
|
||||||
|
|||||||
55
resources/views/contratti/lista.blade.php
Normal file
55
resources/views/contratti/lista.blade.php
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
@extends('admin')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<h1 class="page-header">Lista dei Contratti</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
Lista contratti
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<table class="table table-striped table-bordered table-hover" id="contratti" data-page-length='25'>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Numero contratto</th>
|
||||||
|
<th>Data Contratto</th>
|
||||||
|
<th>Data Termine</th>
|
||||||
|
<th>Fornitore</th>
|
||||||
|
<th>Tipo contratto</th>
|
||||||
|
<th>Importo</th>
|
||||||
|
<th>Stato</th>
|
||||||
|
<th>Documento</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach($data as $contratto)
|
||||||
|
<tr>
|
||||||
|
<td>{{$contratto->numero}}</td>
|
||||||
|
<td>{{$contratto->datainizio}}</td>
|
||||||
|
<td>{{$contratto->datatermine}}</td>
|
||||||
|
<td>{{$contratto->fornitore}}</td>
|
||||||
|
<td>{{$contratto->tipo}}</td>
|
||||||
|
<td>{{$contratto->importo}}</td>
|
||||||
|
<td>{{$contratto->stato}}</td>
|
||||||
|
<td>{{$contratto->filename}}</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
|
<!-- Footer del pannello -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
|
@section('script')
|
||||||
|
<script src="/js/app/contratti.js"></script>
|
||||||
|
@endsection
|
||||||
26
resources/views/documenti/lista.blade.php
Normal file
26
resources/views/documenti/lista.blade.php
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
@extends('admin')
|
||||||
|
@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
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<!-- Corpo del pannello -->
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
|
<!-- Footer del pannello -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
|
@section('script')
|
||||||
|
<script src="/js/app/documenti.js"></script>
|
||||||
|
@endsection
|
||||||
@@ -8,16 +8,16 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
@hasanyrole('user|admin')
|
@hasanyrole('user|admin')
|
||||||
<!-- WIDGET Bilancio -->
|
<!-- WIDGET Bilancio -->
|
||||||
<div class="col-lg-4 col-md-8">
|
<div class="col-lg-3 col-md-8 draggable">
|
||||||
<div class="panel panel-primary">
|
<div class="panel panel-success">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
<i class="fa fa-balance-scale fa-5x"></i>
|
<i class="fa fa-plus-square fa-5x"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-9 text-right">
|
<div class="col-xs-9 text-right">
|
||||||
<div class="huge">{{ $bilancio }}</div>
|
<div class="huge">{{ $entrate }}</div>
|
||||||
<div>Bilancio attuale anno {{ date('Y') }}</div>
|
<div>Entrate attuale anno {{ date('Y') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -30,9 +30,55 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- WIDGET Bilancio -->
|
||||||
|
<div class="col-lg-3 col-md-8 draggable">
|
||||||
|
<div class="panel panel-danger">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<i class="fa fa-minus-square fa-5x"></i>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-9 text-right">
|
||||||
|
<div class="huge">{{ $uscite }}</div>
|
||||||
|
<div>Uscite attuale anno {{ date('Y') }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="{{ route('budget');}}">
|
||||||
|
<div class="panel-footer">
|
||||||
|
<span class="pull-left">Report annuo</span>
|
||||||
|
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- WIDGET -->
|
<!-- WIDGET -->
|
||||||
<div class="col-lg-4 col-md-8">
|
<div class="col-lg-3 col-md-8 draggable">
|
||||||
<div class="panel panel-green">
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-3">
|
||||||
|
<i class="fa fa-balance-scale fa-5x"></i>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-9 text-right">
|
||||||
|
<div class="huge">{{ $entrate + $uscite }}</div>
|
||||||
|
<div>Saldo attuale nell'anno</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a href="{{ route('budget'); }}">
|
||||||
|
<div class="panel-footer">
|
||||||
|
<span class="pull-left">Report annuo</span>
|
||||||
|
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
|
||||||
|
<div class="clearfix"></div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-3 col-md-8 draggable">
|
||||||
|
<div class="panel panel-yellow">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
@@ -54,9 +100,82 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endhasanyrole
|
@endhasanyrole
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@can('tasks')
|
||||||
|
<!-- Se ha i permessi task -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6 col-md-8 draggable">
|
||||||
|
<div class="chat-panel panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
Attività da svolgere
|
||||||
|
</div>
|
||||||
|
<div class="panel-body" id="mieitask">
|
||||||
|
<ul class="chat">
|
||||||
|
@foreach($mieitask as $task)
|
||||||
|
<span class="chat-img pull-left">
|
||||||
|
<!-- rendere immagine dinamica -->
|
||||||
|
<img src="{{ Gravatar::get(App\Models\User::getUserById($task->assegnato_a)->email)}}" width="32" class="img-circle">
|
||||||
|
</span>
|
||||||
|
<div class="chat-body clearfix">
|
||||||
|
<li class="left clearfix">
|
||||||
|
@if($task->stato==='Chiuso')
|
||||||
|
<s>
|
||||||
|
<a href="#{{ $task->id }}"> {{ $task->titolo }}</a>
|
||||||
|
</s><br>
|
||||||
|
<h6>{{$task->descrizione}}</h6>
|
||||||
|
@else
|
||||||
|
<b><a href="#{{ $task->id }}"> {{ $task->titolo }}</a></b><br>
|
||||||
|
<h6>{{$task->descrizione}}</h6>
|
||||||
|
@endif
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-8 draggable">
|
||||||
|
<div class="chat-panel panel panel-default" >
|
||||||
|
<div class="panel-heading">
|
||||||
|
<i class="fa fa-arrow-circle-right"></i> Avvisi e informazioni
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<ul class="chat">
|
||||||
|
@foreach($avvisi as $avviso)
|
||||||
|
<span class="chat-img pull-left">
|
||||||
|
<!-- rendere immagine dinamica -->
|
||||||
|
<img src="{{ Gravatar::get(App\Models\User::getUserById($avviso->creato_da)->email)}}" width="32" class="img-circle">
|
||||||
|
</span>
|
||||||
|
<div class="chat-body clearfix">
|
||||||
|
<li class="left clearfix">
|
||||||
|
|
||||||
|
<a href="#{{ $avviso->id }}"><i>{{date_format(date_create($avviso->creato_il),'d/m/Y')}}</i> - {{ $avviso->avviso }}</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
|
<form action="{{ Route('newAvviso') }}" method="POST">
|
||||||
|
@csrf
|
||||||
|
<label for="avviso" class="form-label">Nuovo Avviso:</label>
|
||||||
|
<textarea class="form-control" name="avviso"></textarea>
|
||||||
|
<input type="hidden" name="creato_da" value="{{ Auth::user()->id }}">
|
||||||
|
<input type="submit" name="submit" class="button btn-primary">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endcan
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('script')
|
@section('script')
|
||||||
<script src="/js/app/dashboard.js"></script>
|
<script src="js/app/dashboard.js"></script>
|
||||||
@endsection
|
@endsection
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
@foreach($lettureEnel as $lettura)
|
@foreach($lettureEnel as $lettura)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ date_format(date_create($lettura->enel_date),'d/m/Y'); }}</td>
|
<td>{{ $lettura->enel_date }}</td>
|
||||||
<td>{{ $lettura->enel_A; }}</td>
|
<td>{{ $lettura->enel_A; }}</td>
|
||||||
<td>{{ $lettura->enel_R; }}</td>
|
<td>{{ $lettura->enel_R; }}</td>
|
||||||
<td>{{ $lettura->enel_F1; }}</td>
|
<td>{{ $lettura->enel_F1; }}</td>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
}
|
}
|
||||||
@endphp
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ date_format(date_create($lettura->gas_date),'d/m/Y'); }}</td>
|
<td>{{ $lettura->gas_date }}</td>
|
||||||
<td>{{ $lettura->gas_lettura; }}</td>
|
<td>{{ $lettura->gas_lettura; }}</td>
|
||||||
@if(!is_null($dateprec))
|
@if(!is_null($dateprec))
|
||||||
<td>{{ $diffdate ?? '' }}</td>
|
<td>{{ $diffdate ?? '' }}</td>
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
Ciao {{ Auth::user()->name ?? $name }},
|
Ciao {{ Auth::user()->name ?? $name }},
|
||||||
Hai configurato correttamente la posta elettronica!
|
Hai configurato correttamente la posta elettronica!
|
||||||
@component('mail::button', ['url' => 'https://gestionale.lavorain.cloud/'])
|
|
||||||
Ciao.
|
|
||||||
@endcomponent
|
|
||||||
|
|
||||||
Buona giornata,<br>
|
Buona giornata,<br>
|
||||||
{{ config('app.name') }}
|
{{ config('app.name') }}
|
||||||
|
|||||||
93
resources/views/progetti/PDF/scheda.blade.php
Normal file
93
resources/views/progetti/PDF/scheda.blade.php
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Scheda Progetto</title>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
* {
|
||||||
|
font-family: Verdana, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
table{
|
||||||
|
font-size: x-small;
|
||||||
|
}
|
||||||
|
tfoot tr td{
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: x-small;
|
||||||
|
}
|
||||||
|
.gray {
|
||||||
|
background-color: lightgray
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
@foreach($tot as $totale) @endforeach @foreach($dettaglio ?? '' as $progetto)
|
||||||
|
<table width="100%">
|
||||||
|
<tr>
|
||||||
|
<!-- <td valign="top"><img src="{{asset('images/meteor-logo.png')}}" alt="" width="150"/></td> -->
|
||||||
|
<td>
|
||||||
|
<h3>Progetto: #{{$progetto->id}}:{{$progetto->nome}}</h3>
|
||||||
|
|
||||||
|
<p> {{$progetto->descrizione}}</p>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<hr>
|
||||||
|
<table width="100%">
|
||||||
|
<tr>
|
||||||
|
<td><strong>Creato il:</strong> {{ date('d/m/Y',strtotime($progetto->data_creazione)) }}</td>
|
||||||
|
<td><strong>Inizio:</strong> {{ date('d/m/Y',strtotime($progetto->data_inizio)) }}</td>
|
||||||
|
<td><strong>Termine:</strong> {{ date('d/m/Y',strtotime($progetto->data_fine)) }}</td>
|
||||||
|
<td><strong>Stato:</strong> {{ $progetto->stato }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><strong>Budget iniziale:</strong> {{ $progetto->budget }}</td>
|
||||||
|
<td><strong>Costi sostenuti:</strong> {{ $totale->costo}}</td>
|
||||||
|
<td><strong>Scostamento:</strong>{{ $progetto->budget - $totale->costo}}</td>
|
||||||
|
<td><strong>Coordinatore:</strong> {{ $progetto->name }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4" class="gray">DESCRIZIONE:</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">{{ $progetto->note }}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
@endforeach
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
<table width="100%">
|
||||||
|
<thead style="background-color: lightgray;">
|
||||||
|
<tr>
|
||||||
|
<th>Data</th>
|
||||||
|
<th>Descrizione</th>
|
||||||
|
<th>Ore</th>
|
||||||
|
<th>Costi</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach($righe as $riga)
|
||||||
|
<tr>
|
||||||
|
<td>{{ date('d/m/Y',strtotime($riga->data)) }}</td>
|
||||||
|
<td>{{ $riga->descrizione }}</td>
|
||||||
|
<td>{{ $riga->ore }}</td>
|
||||||
|
<td>{{ $riga->prezzo }}</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</tbody>
|
||||||
|
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"></td>
|
||||||
|
<td align="right">Totale</td>
|
||||||
|
<td align="right" class="gray">{{ $totale->costo}} €</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -38,12 +38,17 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><a href="progetti/detail/{{ $progetto->progetto }}">{{
|
<td><a href="progetti/detail/{{ $progetto->progetto }}">{{
|
||||||
$progetto->nome; }}</a></td>
|
$progetto->nome; }}</a></td>
|
||||||
<td>{{ date_format(date_create($progetto->data_creazione),'d/m/Y'); }}</td>
|
<td>{{ $progetto->data_creazione}}</td>
|
||||||
<td>{{ $progetto->stato; }}</td>
|
<td>{{ $progetto->stato; }}</td>
|
||||||
<td>{{ $progetto->name; }}</td>
|
<td>{{ $progetto->name; }}</td>
|
||||||
<td>{{ $progetto->budget; }}</td>
|
<td>{{ $progetto->budget; }}</td>
|
||||||
<td>@if($progetto->stato != 'chiuso')<a href="progetti/delete?id={{ $progetto->progetto }}"
|
<td>@if($progetto->stato != 'chiuso')<a href="progetti/delete?id={{ $progetto->progetto }}"
|
||||||
class="btn btn-danger">Cancella</a>@endif</td>
|
class="btn btn-danger">Cancella</a> <a href="progetti/close?id={{ $progetto->progetto }}"
|
||||||
|
class="btn btn-danger">Chiudi</a>@endif
|
||||||
|
@if($progetto->stato == 'chiuso')<a href="progetti/reopen?id={{ $progetto->progetto }}"
|
||||||
|
class="btn btn-danger">Riapri</a>@endif
|
||||||
|
<a href="progetti/print?id={{ $progetto->progetto }}"
|
||||||
|
class="btn btn-primary">Stampa PDF</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
104
resources/views/tasks/list.blade.php
Normal file
104
resources/views/tasks/list.blade.php
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
@extends('admin')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<h1 class="page-header">Lista Attività</h1>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<!-- Content here -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12 ">
|
||||||
|
<button class="btn btn-primary open_modal_new "><i
|
||||||
|
class="fa fa-pencil-square-o fw"></i>Nuova Attività</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class ="row">
|
||||||
|
<div class="col">
|
||||||
|
<div class="panel panel-default ">
|
||||||
|
<div class="panel panel-heading">
|
||||||
|
Tutte le Attività
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<ul class="chat">
|
||||||
|
@foreach($tasks as $task)
|
||||||
|
<li class="left" clearfix>
|
||||||
|
<span class="chat-img pull-left">
|
||||||
|
<!-- rendere immagine dinamica -->
|
||||||
|
<img src="{{ Gravatar::get(App\Models\User::getUserById($task->assegnato_a)->email )}}" width="32" class="img-circle">
|
||||||
|
</span>
|
||||||
|
<div class="chat-body clearfix">
|
||||||
|
{{ $task->titolo}}
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="panel-footer">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- HIDDEN -->
|
||||||
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||||
|
<div class="modal-dialog draggable" role="document">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title">Nuova Attività</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-10">
|
||||||
|
<!-- FORM INSERIMENTO NUOVA ATTIVITA -->
|
||||||
|
<form action="" method="POST" id="form">
|
||||||
|
@csrf
|
||||||
|
<label for="titolo" class="form-label">Titolo:</label>
|
||||||
|
<input type="text" class="form-control" id="titolo"
|
||||||
|
name="titolo" size="50">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-10">
|
||||||
|
<label for="descrizione" class="form-label">Descrizione:</label>
|
||||||
|
<textarea class="form-control" name="descrizione" id="descrizione"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-5">
|
||||||
|
<label for="assegnato_a" class="form-label">Assegna a:</label>
|
||||||
|
<!-- SELECT USER -->
|
||||||
|
<select name="assegnato_a" id="assegnato_a" class="form-control">
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-5">
|
||||||
|
<!-- Data termine datetimepicker -->
|
||||||
|
<label for="termine_il" class="form-label">Termine:</label>
|
||||||
|
<input type="date" name="termine_il" class="form-control" value="{{ date('Y-m-d'); }}" id="termine_il">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<input type="hidden" name="creato_da" value="{{ Auth::user()->id }}">
|
||||||
|
<input type="hidden" name="stato" value="Aperto">
|
||||||
|
<input type="hidden" name="creato_il" value="{{ date('Y-m-d'); }}">
|
||||||
|
<input type="hidden" name="chiuso_il" value="{{ date('Y-m-d'); }}">
|
||||||
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
|
</form>
|
||||||
|
<!-- FINE FORM INSERIMENTO NUOVA CATEGORIA -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
@section('script')
|
||||||
|
<script src="/js/app/task.js"></script>
|
||||||
|
@endsection
|
||||||
47
resources/views/users/assignperm.blade.php
Normal file
47
resources/views/users/assignperm.blade.php
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
@extends('admin')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<h1 class="page-header">Assegnazione permessi</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
Nuova assegnazione permessi
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<!-- Form -->
|
||||||
|
<form action="" method="POST">
|
||||||
|
<select name="user" class="form-control">
|
||||||
|
@foreach($users as $user)
|
||||||
|
<option value="{{$user->id}}"> {{$user->name}}</option>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<th>Permesso</th>
|
||||||
|
<th>Azione</th>
|
||||||
|
</tr>
|
||||||
|
@foreach($permissions as $perm)
|
||||||
|
<tr>
|
||||||
|
<td>{{$perm->name}}</td>
|
||||||
|
<td>
|
||||||
|
Attiva<input type="radio" name="permesso['{{$perm->name}}']" value="true">
|
||||||
|
|
||||||
|
Disattiva <input type="radio" name="permesso['{{$perm->name}}']" value="false">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
@csrf
|
||||||
|
<input type="Submit" name="submit" value="associa">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
38
resources/views/users/assignrole.blade.php
Normal file
38
resources/views/users/assignrole.blade.php
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
@extends('admin')
|
||||||
|
@section('content')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<h1 class="page-header">Assegnazione permessi</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<div class="panel-heading">
|
||||||
|
Nuova assegnazione permessi
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<!-- Form -->
|
||||||
|
<form action="" method="POST">
|
||||||
|
<select name="user" class="form-control">
|
||||||
|
@foreach($users as $user)
|
||||||
|
<option value="{{$user->id}}"> {{$user->name}}</option>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
|
<select name="role" class="form-control">
|
||||||
|
@foreach($roles as $role)
|
||||||
|
<option value="{{$role->name}}">{{$role->name}}</td>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
|
|
||||||
|
@csrf
|
||||||
|
<input type="Submit" name="submit" value="associa">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
@@ -15,6 +15,9 @@ use App\Http\Controllers\AutoController;
|
|||||||
use App\Http\Controllers\AnagraficaController;
|
use App\Http\Controllers\AnagraficaController;
|
||||||
use App\Http\Controllers\Utenti;
|
use App\Http\Controllers\Utenti;
|
||||||
use App\Http\Controllers\ProgettiController;
|
use App\Http\Controllers\ProgettiController;
|
||||||
|
use App\Http\Controllers\TaskController;
|
||||||
|
use App\Http\Controllers\AvvisoController;
|
||||||
|
use App\Http\Controllers\ContrattiController;
|
||||||
use App\Mail\myTestEmail;
|
use App\Mail\myTestEmail;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -49,6 +52,8 @@ Route::group(['middleware'=>['permission:conti']], function(){
|
|||||||
Route::get('movimenti/report/movimenti_categoria', [MovimentiController::class,'listMovPerCateg']);
|
Route::get('movimenti/report/movimenti_categoria', [MovimentiController::class,'listMovPerCateg']);
|
||||||
Route::get('movimenti/report/movimentibycat', [MovimentiController::class,'listMovbyCat']);
|
Route::get('movimenti/report/movimentibycat', [MovimentiController::class,'listMovbyCat']);
|
||||||
Route::get('movimenti/docs', [DocumentiController::class,'fileForm'])->name('documenti');
|
Route::get('movimenti/docs', [DocumentiController::class,'fileForm'])->name('documenti');
|
||||||
|
// {issue #5}
|
||||||
|
// Route::get('movimenti/docs', [DocumentiController::class,'fileMovimentiForm'])->name('documenti');
|
||||||
Route::post('movimenti/docs', [DocumentiController::class,'storeFile']);
|
Route::post('movimenti/docs', [DocumentiController::class,'storeFile']);
|
||||||
Route::get('movimenti/import', [MovimentiController::class,'importFile'])->name('importING');
|
Route::get('movimenti/import', [MovimentiController::class,'importFile'])->name('importING');
|
||||||
Route::post('movimenti/import', [MovimentiController::class,'importEC_ING']);
|
Route::post('movimenti/import', [MovimentiController::class,'importEC_ING']);
|
||||||
@@ -67,6 +72,8 @@ Route::group(['middleware'=>['permission:conti']], function(){
|
|||||||
Route::get('service/catlist', [CategorieController::class,'apiList']);
|
Route::get('service/catlist', [CategorieController::class,'apiList']);
|
||||||
Route::get('service/taglist', [TagController::class,'apiList']);
|
Route::get('service/taglist', [TagController::class,'apiList']);
|
||||||
Route::get('service/rolesList', [Utenti::class,'listRoles']);
|
Route::get('service/rolesList', [Utenti::class,'listRoles']);
|
||||||
|
Route::get('service/catlistSpesa', [CategorieController::class,'apiListSpesa']);
|
||||||
|
Route::get('service/catlistEntrata', [CategorieController::class,'apiListEntrata']);
|
||||||
|
|
||||||
// TAGS
|
// TAGS
|
||||||
Route::get('tags', [TagController::class,'listTags'])->name('tags');
|
Route::get('tags', [TagController::class,'listTags'])->name('tags');
|
||||||
@@ -116,19 +123,17 @@ Route::group(['middleware'=>['permission:contatti']], function(){
|
|||||||
|
|
||||||
// GRUPPI E PERMESSI
|
// GRUPPI E PERMESSI
|
||||||
Route::group(['middleware'=>['permission:amministrazione']], function(){
|
Route::group(['middleware'=>['permission:amministrazione']], function(){
|
||||||
/*
|
|
||||||
Route::get('role/new/{ruolo}', [Utenti::class, 'createRole']);
|
|
||||||
Route::post('group/new', [Utenti::class, 'saveNuovoGruppo']);
|
|
||||||
Route::get('permesso/new/{permesso}', [Utenti::class, 'createPermission']);
|
|
||||||
Route::post('permesso/new', [Utenti::class, 'saveNuovoPermesso']);
|
|
||||||
Route::get('permesso/assign', [Utenti::class, 'vw_assignToGroup']);
|
|
||||||
Route::post('permesso/assign', [Utenti::class, 'assignPermissionToGroup']);
|
|
||||||
*/
|
|
||||||
Route::get('users/new',[Utenti::class,'addUser']);
|
Route::get('users/new',[Utenti::class,'addUser']);
|
||||||
Route::post('users/new',[Utenti::class,'createUser']);
|
Route::post('users/new',[Utenti::class,'createUser']);
|
||||||
Route::get('users/roles',[Utenti::class,'listRoles']);
|
Route::get('users/roles',[Utenti::class,'listRoles']);
|
||||||
Route::get('users/delete/{id}',[Utenti::class,'deleteUser']);
|
Route::get('users/delete/{id}',[Utenti::class,'deleteUser']);
|
||||||
|
Route::get('users/givepermission',[Utenti::class,'givePermissionToUser']);
|
||||||
|
Route::post('users/givepermission',[Utenti::class,'assignPermission']);
|
||||||
|
Route::get('users/giverole',[Utenti::class,'giveRoleToUser']);
|
||||||
|
Route::post('users/giverole',[Utenti::class,'assignRole']);
|
||||||
});
|
});
|
||||||
|
|
||||||
// PROGETTI
|
// PROGETTI
|
||||||
Route::group(['middleware'=>['permission:progetti']], function(){
|
Route::group(['middleware'=>['permission:progetti']], function(){
|
||||||
Route::get('progetti', [ProgettiController::class, 'listaProgetto'])->name('progetti');
|
Route::get('progetti', [ProgettiController::class, 'listaProgetto'])->name('progetti');
|
||||||
@@ -141,14 +146,34 @@ Route::group(['middleware'=>['permission:progetti']], function(){
|
|||||||
Route::get('progetti/detail/edit/{id}', [RigaProgettoController::class, 'editRiga']);
|
Route::get('progetti/detail/edit/{id}', [RigaProgettoController::class, 'editRiga']);
|
||||||
Route::post('progetti/rigaupdate', [RigaProgettoController::class, 'updateRiga']);
|
Route::post('progetti/rigaupdate', [RigaProgettoController::class, 'updateRiga']);
|
||||||
Route::get('progetti/coordinatori', [ProgettiController::class, 'getCoordinatori']);
|
Route::get('progetti/coordinatori', [ProgettiController::class, 'getCoordinatori']);
|
||||||
|
Route::get('progetti/close',[ProgettiController::class, 'chiudiProgetto']);
|
||||||
|
Route::get('progetti/reopen',[ProgettiController::class, 'riapriProgetto']);
|
||||||
|
Route::get('progetti/print',[ProgettiController::class,'stampaPDFProgetto']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TASKS
|
||||||
|
Route::group(['middleware'=>['permission:tasks']], function(){
|
||||||
|
Route::get('tasks', [TaskController::class, 'Task'])->name('tasks');
|
||||||
|
Route::post('task/new',[TaskController::class, 'newTask']);
|
||||||
|
Route::get('service/getUsers', [Utenti::class,'getUsers']);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// CONTRATTI
|
||||||
|
Route::group(['middleware'=>['permission:contratti']], function(){
|
||||||
|
Route::get('contratti', [ContrattiController::class, 'Contratti'])->name('contratti');
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::group(['middleware'=>['permission:avvisi']], function(){
|
||||||
|
Route::post('avvisi/new',[AvvisoController::class,'saveAvviso'])->name('newAvviso');
|
||||||
|
});
|
||||||
|
// -- ONLY FOR TEST -- TO BE REMOVED //
|
||||||
|
|
||||||
/// 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']);
|
||||||
Route::get('test/condominio',[CondominioController::class,'testPdf']);
|
Route::get('test/condominio',[CondominioController::class,'testPdf']);
|
||||||
Route::get('test/err403',[CondominioController::class,'err403']);
|
Route::get('test/err403',[CondominioController::class,'err403'])->name('errore-403');
|
||||||
Route::get('test/user_role',[CondominioController::class,'user_role']);
|
Route::get('test/user_role',[CondominioController::class,'user_role']);
|
||||||
Route::get('test/userclass',[Utenti::class,'userClass']);
|
Route::get('test/userclass',[Utenti::class,'userClass']);
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ use App\Http\Controllers\MovimentiController;
|
|||||||
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
||||||
return $request->user();
|
return $request->user();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Route::group(['middleware'=>['permission:conti']], function(){
|
||||||
Route::get('categories', [CategorieController::class,'apiList']);
|
Route::get('categories', [CategorieController::class,'apiList']);
|
||||||
Route::get('tags', [TagController::class,'apiList']);
|
Route::get('tags', [TagController::class,'apiList']);
|
||||||
Route::get('movements', [MovimentiController::class,'apiList']);
|
Route::get('movements', [MovimentiController::class,'apiList']);
|
||||||
|
});
|
||||||
@@ -24,5 +24,5 @@ Route::get('/', function () {
|
|||||||
Auth::routes(['register' => false]); // Production only
|
Auth::routes(['register' => false]); // Production only
|
||||||
// Auth::routes(); //development mode
|
// Auth::routes(); //development mode
|
||||||
Route::get('/calendar', [TagController::class,'calendartest'])->name('calendar');
|
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('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
||||||
|
|||||||
Reference in New Issue
Block a user