diff --git a/database/migrations/2023_07_03_162026_create_clientes_table.php b/database/migrations/2023_07_03_162026_create_clientes_table.php index c7fc596..501436e 100644 --- a/database/migrations/2023_07_03_162026_create_clientes_table.php +++ b/database/migrations/2023_07_03_162026_create_clientes_table.php @@ -14,6 +14,20 @@ return new class extends Migration Schema::create('clientes', function (Blueprint $table) { $table->id(); $table->timestamps(); + $table->string('Nome',100); + $table->string('Cognome',100); + $table->string('Azienda',255)->nullable(); + $table->string('CodiceFiscale',16); + $table->string('PartitaIva',16)->nullable(); + $table->longText('Indirizzo'); + $table->string('Cap',5); + $table->string('Citta',50); + $table->string('Provincia',50); + $table->string('Nazione',50)->nullable()->default('Italia'); + $table->string('Telefono',30)->nullable(); + $table->string('Cellulare',30)->nullable(); + $table->string('Email',100)->nullable(); + $table->longText('Note')->nullable(); }); } diff --git a/resources/views/cliente/edit.blade.php b/resources/views/cliente/edit.blade.php new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/cliente/list.blade.php b/resources/views/cliente/list.blade.php new file mode 100644 index 0000000..65dfcd4 --- /dev/null +++ b/resources/views/cliente/list.blade.php @@ -0,0 +1,43 @@ +@extends('layouts.app') +@section('content') +
Id | +Cognome | +Nome | +Azienda | +Telefono | +Cellulare | +Città | +|
---|---|---|---|---|---|---|---|
{{$cliente->id}} | +{{$cliente->Cognome}} | +{{$cliente->Nome}} | +{{$cliente->Azienda}} | +{{$cliente->Email}} | +{{$cliente->Telefono}} | +{{$cliente->Cellulare}} | +{{$cliente->Citta}} | > +