Commit iniziale

This commit is contained in:
2025-08-05 14:10:01 +02:00
commit 097b7e922d
505 changed files with 227792 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
@extends('adminlte::page')
@section('content_header')
<h1>Inserisci Contatto</h1>
@endsection
@section('content')
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
Nuovo contatto
</div>
<div class="panel-body">
<!-- Form -->
<form action="" method="POST">
@csrf
<div class="row">
<div class="col-xs-6">
<label for="ang_nome" class="form-label">Tipo:</label>
<select name="cnt_tipo" id="cnt_tipo">
@foreach($tipo as $typeid=>$value)
<option value="{{ $typeid }}">{{ $value }}</option>
@endforeach
</select>
</div>
<div class="col-xs-6">
<label for="cnt_valore" class="form-label">Valore:</label>
<input type="text" class="form-control" id="cnt_valore" name="cnt_valore" value="{{ $contatti[0]->cnt_valore ?? ''}}">
</div>
</div>
<div class="row">
<div class="col-xs-6">
<label for="cnt_note" class="form-label">Note:</label>
<textarea class="form-control" id="cnt_note" name="cnt_note">{{ $contatti[0]->cnt_note ?? ''}}</textarea>
</div>
<div class="row">
<div class="col-xs-12">
<label for="another" class="form-label">Aggiungi altro:</label>
<input type="checkbox" name="another" id="another">
</div>
</div>
<div class="row">
<div class="col-xs-6">
<input type="hidden" name="id" value="{{ $contatti[0]->id ?? ''}}">
<input type="hidden" name="cnt_fk_anagraficaId" value="{{ $id ?? ''}}">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
<!-- /Form -->
</div>
</div>
</div>
</div>
</div>
<!-- /.col-lg-12 -->
@endsection
@section('js')
<script src="/js/app/altrocontatto.js"></script>
@endsection

View File

@@ -0,0 +1,107 @@
@extends('adminlte::page')
@section('content_header')
<h1>Dettaglio Anagrafica</h1>
@endsection
@section('content')
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Dettaglio Anagrafica</h1>
</div>
</div>
<div class="container">
<!-- Content here -->
<div class="row">
<div class="col-lg-10">
<div class="panel panel-default">
<div class="panel-heading">
Contatto
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<tr>
<th>Cognome:</th>
<th>Nome:</th>
<th>Ragione Sociale:</th>
</tr>
<tr>
<td>{{ $anagrafiche[0]->ang_cognome }}</td>
<td>{{ $anagrafiche[0]->ang_nome }}</td>
<td>{{ $anagrafiche[0]->ang_ragioneSociale }}
</tr>
<tr>
<th colspan="2">Partita Iva:</th>
<th>Codice Fiscale:</th>
</tr>
<tr>
<td colspan="2">{{ $anagrafiche[0]->ang_partitaIva }}</td>
<td>{{ $anagrafiche[0]->ang_codiceFiscale }}</td>
</tr>
<tr>
<th colspan="3">Indirizzo:</th>
</tr>
<tr>
<td>{{ $anagrafiche[0]->ang_indirizzo }}</td>
</tr>
<tr>
<th>CAP</th>
<th>Citt&agrave;</th>
<th>Provincia</th>
</tr>
<tr>
<td>{{ $anagrafiche[0]->ang_CAP }}</td>
<td>{{ $anagrafiche[0]->ang_Citta }}</td>
<td>{{ $anagrafiche[0]->ang_Provincia }}</td>
</tr>
<tr>
<th colspan="3">Telefono principale:</th>
</tr>
<tr>
<td colspan="3">{{ $anagrafiche[0]->ang_telefono }}</td>
</tr>
<tr>
<th colspan="3">Note:</th>
</tr>
<tr>
<td colspan="3">{{ $anagrafiche[0]->ang_note }}</td>
</tr>
</table >
</div>
<div class="col-lg-10">
<a class="btn btn-primary" href="addOther?id={{ $anagrafiche[0]->id }}">Nuovo Altro Contatto</i></a>
</div>
<div>
<table class="table table-striped table-bordered table-hover" id="contatti">
<thead>
<tr>
<th>Tipo</th>
<th>Valore</th>
<th>Annotazioni</th>
</tr>
</thead>
<tbody>
@foreach($contatti as $contatto)
<tr>
<td>{{ $tipo[$contatto->cnt_tipo] }}</td>
<td>{{ $contatto->cnt_valore }}</td>
<td>{{ $contatto->cnt_note }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.col-lg-12 -->
@endsection
@section('js')
<script src="/js/app/altrocontatto.js"></script>
@endsection

View File

@@ -0,0 +1,95 @@
@extends('adminlte::page')
@section('content_header')
<h1>Inserisci Anagrafica</h1>
@endsection
@section('content')
<div class="container">
<div class="row">
<div class="col-lg-10">
<div class="panel panel-default">
<div class="panel-heading">
Nuova anagrafica
</div>
<div class="panel-body">
<!-- Form -->
<form action="" method="POST">
@csrf
<div class="row">
<div class="col-xs-6">
<label for="ang_nome" class="form-label">Nome:</label>
<input type="text" class="form-control" id="ang_nome" name="ang_nome" value="{{ $anagrafiche[0]->ang_nome ?? ''}}">
</div>
<div class="col-xs-6">
<label for="ang_cognome" class="form-label">Cognome:</label>
<input type="text" class="form-control" id="ang_cognome" name="ang_cognome" value="{{ $anagrafiche[0]->ang_cognome ?? ''}}">
</div>
</div>
<div class="row">
<div class="col-xs-6">
<label for="ang_ragioneSociale" class="form-label">Ragione Sociale:</label>
<input type="text" class="form-control" id="ang_ragioneSociale" name="ang_ragioneSociale" value="{{ $anagrafiche[0]->ang_ragioneSociale ?? ''}}">
</div>
<div class="col-xs-6">
<label for="ang_codiceFiscale" class="form-label">Codice Fiscale:</label>
<input type="text" class="form-control" id="ang_codiceFiscale" name="ang_codiceFiscale" value="{{ $anagrafiche[0]->ang_codiceFiscale ?? ''}}">
</div>
</div>
<div class="row">
<div class="col-xs-6">
<label for="ang_partitaIva" class="form-label">Partita Iva:</label>
<input type="text" class="form-control" id="ang_partitaIva" name="ang_partitaIva" value="{{ $anagrafiche[0]->ang_partitaIva ?? ''}}">
</div>
<div class="col-xs-6">
<label for="ang_telefono" class="form-label">Telefono:</label>
<input type="text" class="form-control" id="ang_telefono" name="ang_telefono" value="{{ $anagrafiche[0]->ang_telefono ?? ''}}">
</div>
</div>
<div class="row">
<div class="col-xs-12">
<label for="ang_indirizzo" class="form-label">Indirizzo:</label>
<textarea class="form-control" id="ang_indirizzo" name="ang_indirizzo">{{ $anagrafiche[0]->ang_indirizzo ?? ''}}</textarea>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label for="ang_CAP" class="form-label">CAP:</label>
<input type="text" class="form-control" id="ang_CAP" name="ang_CAP" value="{{ $anagrafiche[0]->ang_CAP ?? ''}}">
</div>
<div class="col-xs-4">
<label for="ang_Citta" class="form-label">Citt&agrave;:</label>
<input type="text" class="form-control" id="ang_Citta" name="ang_Citta" value="{{ $anagrafiche[0]->ang_Citta ?? ''}}">
</div>
<div class="col-xs-4">
<label for="ang_Provincia" class="form-label">Provincia:</label>
<input type="text" class="form-control" id="ang_Provincia" name="ang_Provincia" value="{{ $anagrafiche[0]->ang_Provincia ?? ''}}">
</div>
</div>
<div class="row">
<div class="col-xs-12">
<label for="ang_note" class="form-label">Note:</label>
<textarea class="form-control" id="ang_note" name="ang_note">{{ $anagrafiche[0]->ang_note ?? ''}}</textarea>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
<!-- /Form -->
</div>
</div>
</div>
</div>
</div>
<!-- /.col-lg-12 -->
@endsection
@section('js')
<script src="/js/app/altrocontatto.js"></script>
@endsection

View File

@@ -0,0 +1,62 @@
@extends('adminlte::page')
@section('content_header')
<h1>Lista Anagrafiche</h1>
@endsection
@section('content')
<div class="container">
<!-- Content here -->
<div class="row">
<div class="col-lg-12">
<a class="btn btn-primary" href="contatti/new">Nuovo Contatto</i></a>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
Lista dei contatti
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="automobili">
<thead>
<tr>
<th>Cognome</th>
<th>Nome</th>
<th>Citt&agrave;</th>
<th>Telefono</th>
<th>Azioni</th>
</tr>
</thead>
<tbody>
@foreach($anagrafiche ?? '' as $anagrafica)
<tr>
<td><a href="contatti/scheda?id={{ $anagrafica->id }}">{{ $anagrafica->ang_cognome }}</a></td>
<td>{{ $anagrafica->ang_nome }}</td>
<td>{{ $anagrafica->ang_Citta }}</td>
<td>{{ $anagrafica->ang_telefono }}</td>
<td>
<a class="btn btn-primary" href="contatti/modifica?id={{ $anagrafica->id }}">Modifica</a>&nbsp;
<a class="btn btn-danger" href="contatti/cancella?id={{ $anagrafica->id }}">Cancella</a>&nbsp;
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.col-lg-12 -->
@endsection
@section('js')
<script src="/js/app/altrocontatto.js"></script>
@endsection