Aggiunto mappatura e prototipo filtro
This commit is contained in:
@@ -7,17 +7,21 @@
|
||||
@section('content')
|
||||
<form action="{{ route('conti.map.store') }}" method="POST">
|
||||
@csrf
|
||||
@foreach ($csv as $header)
|
||||
<label>{{ $header }}</label>
|
||||
<select name="mapping[{{ $header }}]">
|
||||
@foreach ($db as $header=>$table)
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label>{{ $header }}</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<select name="mapping[{{ $table }}]">
|
||||
<option value="">--Nessuno o Selezionare una colonna--</option>
|
||||
<option value="mov_data">Data Movimento</option>
|
||||
<option value="mov_desc">Descrizione</option>
|
||||
<option value="mov_importo">Importo</option>
|
||||
<option value="mov_fk_categoria">ID Categoria</option>
|
||||
<option value="mov_fk_tag">ID Tag</option>
|
||||
<option value="mov_fk_conto">ID Conto</option>
|
||||
@foreach($csv as $csv_header)
|
||||
<option value="{{ $csv_header }}">{{ $csv_header }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
<input type="hidden" name="filename" value="{{ $filename .".csv" }}">
|
||||
<button type="submit">Salva</button>
|
||||
|
||||
Reference in New Issue
Block a user