effettuato alcune modifiche per capire cosa non va nell'upload dei contatti... da rivedere domani
This commit is contained in:
parent
03900b5b61
commit
c6f82a9c62
@ -13,8 +13,8 @@ class Contratti extends Model
|
|||||||
|
|
||||||
|
|
||||||
public static function storeContratto($req){
|
public static function storeContratto($req){
|
||||||
/* dd($req);*/
|
dd($req);
|
||||||
$filename=$req->file('filename')->store('Contratti');
|
/* $filename=$req->file('filename')->store('Contratti');
|
||||||
|
|
||||||
self::create([
|
self::create([
|
||||||
'numero'=>$req['numero'],
|
'numero'=>$req['numero'],
|
||||||
@ -29,7 +29,7 @@ class Contratti extends Model
|
|||||||
'note'=>$req['note'],
|
'note'=>$req['note'],
|
||||||
'filename'=>$filename,
|
'filename'=>$filename,
|
||||||
]);
|
]);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getAllContratto(){
|
public static function getAllContratto(){
|
||||||
|
@ -1 +0,0 @@
|
|||||||
/var/www/html/bubofamily/storage/app/Contratti
|
|
@ -1,10 +1,10 @@
|
|||||||
@extends('admin')
|
@extends('adminlte::page')
|
||||||
|
|
||||||
|
@section('content_header')
|
||||||
|
<h1>{{ $dettagli->marca; }} {{ $dettagli->modello; }} targa: {{ $dettagli->targa; }}</h1>
|
||||||
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12">
|
|
||||||
<h1 class="page-header">{{ $dettagli->marca; }} {{ $dettagli->modello; }} targa: {{ $dettagli->targa; }}</h1>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Content here -->
|
<!-- Content here -->
|
||||||
|
|
||||||
@ -243,6 +243,6 @@
|
|||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('script')
|
@section('js')
|
||||||
<script src="/js/app/auto.js"></script>
|
<script src="/js/app/auto.js"></script>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -86,61 +86,61 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-10"> </div>
|
<div class="col-xs-10"> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-10">
|
<div class="col-xs-10">
|
||||||
<div class="row p-3">
|
<div class="row p-3">
|
||||||
@if($progetto->stato !='chiuso')<button class="btn btn-primary open_modal_addRow">Nuova riga</button>@endif
|
@if($progetto->stato !='chiuso')<button class="btn btn-primary open_modal_addRow">Nuova riga</button>@endif
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<table class="table table-striped table-bordered table-hover"
|
||||||
|
id="tab_progetti">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Data</th>
|
||||||
|
<th>Descrizione</th>
|
||||||
|
<th>Ore lavoro</th>
|
||||||
|
<th>Costo</th>
|
||||||
|
<th>Azioni</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@foreach($righe as $riga) @if(isset($riga->data))
|
||||||
|
<tr>
|
||||||
|
<td>{{ date('d/m/Y',strtotime($riga->data)) }}</td>
|
||||||
|
<td>{{ $riga->descrizione }}</td>
|
||||||
|
<td>{{ $riga->ore }}</td>
|
||||||
|
<td>{{ $riga->prezzo }}</td>
|
||||||
|
<td>@if($progetto->stato !='chiuso')<a
|
||||||
|
href="/admin/progetti/delete_row/{{ $riga->id }}/return/{{ $progetto->id }}"
|
||||||
|
class="btn btn-danger">X</a>
|
||||||
|
<button class="btn btn-warning btn-detail open_modal"
|
||||||
|
value="{{$riga->id}}">Edit</button>@endif</td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
@else
|
||||||
|
<tr>
|
||||||
|
<td>non c'è</td>
|
||||||
|
<td>non c'è</td>
|
||||||
|
<td>non c'è</td>
|
||||||
|
<td>non c'è</td>
|
||||||
|
</tr>
|
||||||
|
@endif @endforeach
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"><strong>Totale</strong></td>
|
||||||
|
<td></td>
|
||||||
|
<td><strong>{{ $totale->costo}} €</strong></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
|
||||||
<table class="table table-striped table-bordered table-hover"
|
|
||||||
id="tab_progetti">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Data</th>
|
|
||||||
<th>Descrizione</th>
|
|
||||||
<th>Ore lavoro</th>
|
|
||||||
<th>Costo</th>
|
|
||||||
<th>Azioni</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@foreach($righe as $riga) @if(isset($riga->data))
|
|
||||||
<tr>
|
|
||||||
<td>{{ date('d/m/Y',strtotime($riga->data)) }}</td>
|
|
||||||
<td>{{ $riga->descrizione }}</td>
|
|
||||||
<td>{{ $riga->ore }}</td>
|
|
||||||
<td>{{ $riga->prezzo }}</td>
|
|
||||||
<td>@if($progetto->stato !='chiuso')<a
|
|
||||||
href="/admin/progetti/delete_row/{{ $riga->id }}/return/{{ $progetto->id }}"
|
|
||||||
class="btn btn-danger">X</a>
|
|
||||||
<button class="btn btn-warning btn-detail open_modal"
|
|
||||||
value="{{$riga->id}}">Edit</button>@endif</td>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
@else
|
|
||||||
<tr>
|
|
||||||
<td>non c'è</td>
|
|
||||||
<td>non c'è</td>
|
|
||||||
<td>non c'è</td>
|
|
||||||
<td>non c'è</td>
|
|
||||||
</tr>
|
|
||||||
@endif @endforeach
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2"><strong>Totale</strong></td>
|
|
||||||
<td></td>
|
|
||||||
<td><strong>{{ $totale->costo}} €</strong></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- MODAL EDIT Riga-->
|
<!-- MODAL EDIT Riga-->
|
||||||
<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">
|
||||||
|
Loading…
Reference in New Issue
Block a user