Effettuato modifiche al report annuale e alla lista movimenti per problema ISSUE#3
This commit is contained in:
@@ -44,12 +44,14 @@
|
||||
@foreach( $movimenti as $movimento )
|
||||
<tr>
|
||||
<td>{{ $movimento->mov_data}}</td>
|
||||
<td>{{ $movimento->cat_name }}</td>
|
||||
<td>{{ $movimento->nomeContoDare ?? '' }}</td>
|
||||
<td>{{ $movimento->nomeContoAvere ?? '' }}</td>
|
||||
<td>{{ $movimento->Categorie->cat_name ?? ''}}</td>
|
||||
<!-- Uso l'operatore di coalescenza nulla per evitare errori se il conto non esiste -->
|
||||
<td>{{ $movimento->ContoDa->nomeConto ?? '' }}</td>
|
||||
<td>{{ $movimento->ContoA->nomeConto ?? '' }}</td>
|
||||
<!-- Uso l'operatore di coalescenza nulla per evitare errori se il tag non esiste -->
|
||||
<td>{{ $movimento->mov_descrizione }}</td>
|
||||
<td>{{ $movimento->mov_importo_dare ." €"}}</td>
|
||||
<td>{{ $movimento->mov_importo_avere." €" }}</td>
|
||||
<td>{{ $movimento->mov_importo_avere." €"}}</td>
|
||||
<td>
|
||||
<button class="btn btn-warning btn-detail open_modal_modifica" value="{{ $movimento->id }}"><i class="fa-solid fa-pencil"></i></button>
|
||||
<a class="btn btn-danger" href="/admin/movimenti/delete?id={{ $movimento->id }}"><i class="fa-solid fa-trash-can"></i></a>
|
||||
|
||||
@@ -13,12 +13,14 @@
|
||||
<h3 class="card-title">Regole di Importazione</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-bordered">
|
||||
<table class="table table-bordered" id="importRulesTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Pattern</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Categoria</th>
|
||||
|
||||
<th>Azioni</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -28,6 +30,7 @@
|
||||
<td>{{ $rule->id }}</td>
|
||||
<td>{{ $rule->pattern }}</td>
|
||||
<td>{{ $rule->description }}</td>
|
||||
<td>{{ \App\Models\Categorie::find($rule->category_id)->cat_name ?? 'N/A' }}</td>
|
||||
<td>
|
||||
<a href="{{ route('import_rules.edit', $rule->id) }}" class="btn btn-primary btn-sm">Modifica</a>
|
||||
<form action="{{ route('import_rules.destroy', $rule->id) }}" method="POST" style="display:inline;">
|
||||
@@ -47,3 +50,16 @@
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('js')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#importRulesTable').DataTable({
|
||||
responsive: true,
|
||||
|
||||
order: [[0, "desc"]]
|
||||
});
|
||||
// $('.select2').select2();
|
||||
});
|
||||
</script>
|
||||
@endsection')
|
||||
|
||||
Reference in New Issue
Block a user