|
@@ -77,12 +77,20 @@
|
|
|
<section id="resume-table">
|
|
<section id="resume-table">
|
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
|
|
|
|
|
|
- <h3>{{$detail}}</h3><br>
|
|
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-6">
|
|
|
|
|
+ <h3 class="mt-4">{{$detail}}</h3><br>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-6 right" style="margin-top:20px;text-align:right">
|
|
|
|
|
+ <button id="btRemove" style="display:none;" class="btn--ui" >ELIMINA SELEZIONATI</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<table class="table tablesaw tableHead tablesaw-stack table--lista_ricevute" id="tablesaw-350" width="100%">
|
|
<table class="table tablesaw tableHead tablesaw-stack table--lista_ricevute" id="tablesaw-350" width="100%">
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
- <th scope="col"></th>
|
|
|
|
|
|
|
+ <th scope="col"><input type="checkbox" name="chkAll" class="chkAll"></th>
|
|
|
<th scope="col">Data scadenza</th>
|
|
<th scope="col">Data scadenza</th>
|
|
|
<th scope="col">Rata</th>
|
|
<th scope="col">Rata</th>
|
|
|
<th scope="col">Competenza</th>
|
|
<th scope="col">Competenza</th>
|
|
@@ -94,7 +102,11 @@
|
|
|
<tbody id="checkall-target">
|
|
<tbody id="checkall-target">
|
|
|
@foreach($records as $record)
|
|
@foreach($records as $record)
|
|
|
<tr>
|
|
<tr>
|
|
|
- <td></td>
|
|
|
|
|
|
|
+ <td>
|
|
|
|
|
+ @if($record->status == 0)
|
|
|
|
|
+ <input type="checkbox" name="chk{{$record->id}}" value="{{$record->id}}" class="chkIds">
|
|
|
|
|
+ @endif
|
|
|
|
|
+ </td>
|
|
|
<td>{{date("d/m/Y", strtotime($record->date))}}</td>
|
|
<td>{{date("d/m/Y", strtotime($record->date))}}</td>
|
|
|
<td>{{$record->course_subscription ? $record->course_subscription->name : 'Iscrizione'}}</td>
|
|
<td>{{$record->course_subscription ? $record->course_subscription->name : 'Iscrizione'}}</td>
|
|
|
<td>
|
|
<td>
|
|
@@ -135,7 +147,7 @@
|
|
|
|
|
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
- <div wire:ignore.self class="modal fade" id="rateModal" tabindex="-1" aria-labelledby="rateModalLabel" aria-hidden="true">
|
|
|
|
|
|
|
+ <div wire:ignore.self class="modal" id="rateModal" tabindex="-1" aria-labelledby="rateModalLabel" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
<div class="modal-dialog">
|
|
|
<div class="modal-content">
|
|
<div class="modal-content">
|
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
@@ -155,7 +167,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-md-6">
|
|
<div class="col-md-6">
|
|
|
<label for="price" class="form-label">Prezzo</label>
|
|
<label for="price" class="form-label">Prezzo</label>
|
|
|
- <input class="form-control" type="text" id="price" placeholder="Costo mensile" wire:model="price" onkeyup="onlyNumberAmount(this)">
|
|
|
|
|
|
|
+ <input class="form-control" type="text" id="price" placeholder="Costo" wire:model="price" onkeyup="onlyNumberAmount(this)">
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="row mt-2">
|
|
<div class="row mt-2">
|
|
@@ -163,27 +175,54 @@
|
|
|
<label for="date" class="form-label">Scadenza</label>
|
|
<label for="date" class="form-label">Scadenza</label>
|
|
|
<input class="form-control @error('date') is-invalid @enderror" type="date" id="date" placeholder="Email" wire:model="date">
|
|
<input class="form-control @error('date') is-invalid @enderror" type="date" id="date" placeholder="Email" wire:model="date">
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ @if($type == '1')
|
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
|
+ <label for="date" class="form-label">Mesi</label>
|
|
|
|
|
+ <select class="form-control" id="months" wire:model="months">
|
|
|
|
|
+ <option value="9">Settembre</option>
|
|
|
|
|
+ <option value="10">Ottobre</option>
|
|
|
|
|
+ <option value="11">Novembre</option>
|
|
|
|
|
+ <option value="12">Dicembre</option>
|
|
|
|
|
+ <option value="1">Gennaio</option>
|
|
|
|
|
+ <option value="2">Febbraio</option>
|
|
|
|
|
+ <option value="3">Marzo</option>
|
|
|
|
|
+ <option value="4">Aprile</option>
|
|
|
|
|
+ <option value="5">Maggio</option>
|
|
|
|
|
+ <option value="6">Giugno</option>
|
|
|
|
|
+ <option value="7">Luglio</option>
|
|
|
|
|
+ <option value="8">Agosto</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ @endif
|
|
|
<div>
|
|
<div>
|
|
|
- <div class="row mt-2">
|
|
|
|
|
- <div class="col-md-12">
|
|
|
|
|
- <label for="months" class="form-label">Mesi</label><br>
|
|
|
|
|
- <input type="checkbox" value="1" class="chkMonth"> Gennaio
|
|
|
|
|
- <input type="checkbox" value="2" class="chkMonth"> Febbraio
|
|
|
|
|
- <input type="checkbox" value="3" class="chkMonth"> Marzo
|
|
|
|
|
- <input type="checkbox" value="4" class="chkMonth"> Aprile<br>
|
|
|
|
|
- <input type="checkbox" value="5" class="chkMonth"> Maggio
|
|
|
|
|
- <input type="checkbox" value="6" class="chkMonth"> Giugno
|
|
|
|
|
- <input type="checkbox" value="7" class="chkMonth"> Luglio
|
|
|
|
|
- <input type="checkbox" value="8" class="chkMonth"> Agosto<br>
|
|
|
|
|
- <input type="checkbox" value="9" class="chkMonth"> Settembre
|
|
|
|
|
- <input type="checkbox" value="10" class="chkMonth"> Ottobre
|
|
|
|
|
- <input type="checkbox" value="11" class="chkMonth"> Novembre
|
|
|
|
|
- <input type="checkbox" value="12" class="chkMonth"> Dicembre
|
|
|
|
|
|
|
+ @if($type > 1)
|
|
|
|
|
+ <div class="row mt-2">
|
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
|
+ <label for="months" class="form-label">Seleziona {{$type}} Mesi</label><br>
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="9" class="chkMonth"> Settembre</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="10" class="chkMonth"> Ottobre</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="11" class="chkMonth"> Novembre</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="12" class="chkMonth"> Dicembre</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="1" class="chkMonth"> Gennaio</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="2" class="chkMonth"> Febbraio</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="3" class="chkMonth"> Marzo</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="4" class="chkMonth"> Aprile</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="5" class="chkMonth"> Maggio</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="6" class="chkMonth"> Giugno</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="7" class="chkMonth"> Luglio</div>
|
|
|
|
|
+ <div class="col-3"><input type="checkbox" value="8" class="chkMonth"> Agosto </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ @endif
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="modal-footer">
|
|
|
|
|
|
|
+ <div class="modal-footer mt-2">
|
|
|
<button class="btn--ui lightGrey" onclick="annulla()">annulla</a>
|
|
<button class="btn--ui lightGrey" onclick="annulla()">annulla</a>
|
|
|
<button type="button" class="btn--ui btn-primary" wire:click.prevent="add()">Inserisci</button>
|
|
<button type="button" class="btn--ui btn-primary" wire:click.prevent="add()">Inserisci</button>
|
|
|
</div>
|
|
</div>
|
|
@@ -322,6 +361,18 @@
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ $('.monthsSelect').select2({
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+ $('.monthsSelect').on('change', function (e) {
|
|
|
|
|
+ var data = $('.monthsSelect').select2("val");
|
|
|
|
|
+ @this.set('months', data);
|
|
|
|
|
+ setTimeout(function() {
|
|
|
|
|
+ $('.monthsSelect').select2({
|
|
|
|
|
+ });
|
|
|
|
|
+ }, 100);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
Livewire.on('close-popup', () => {
|
|
Livewire.on('close-popup', () => {
|
|
@@ -395,12 +446,66 @@
|
|
|
$('#tablesaw-350 thead tr th').addClass('col');
|
|
$('#tablesaw-350 thead tr th').addClass('col');
|
|
|
$('#tablesaw-350 thead tr th').css("background-color", "#f6f8fa");
|
|
$('#tablesaw-350 thead tr th').css("background-color", "#f6f8fa");
|
|
|
|
|
|
|
|
|
|
+ var checked = false;
|
|
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
$(document).on("click",".addData",function() {
|
|
$(document).on("click",".addData",function() {
|
|
|
$(".title--section_addButton").trigger("click")
|
|
$(".title--section_addButton").trigger("click")
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ $('.chkAll').change(function() {
|
|
|
|
|
+
|
|
|
|
|
+ var check = this.checked;
|
|
|
|
|
+ var ok = false;
|
|
|
|
|
+ $('.chkIds').each(function () {
|
|
|
|
|
+ $(this).prop( "checked", check );
|
|
|
|
|
+ ok = true;
|
|
|
|
|
+ });
|
|
|
|
|
+ if (check && ok)
|
|
|
|
|
+ $("#btRemove").show();
|
|
|
|
|
+ else
|
|
|
|
|
+ $("#btRemove").hide();
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ $('.chkIds').change(function() {
|
|
|
|
|
+
|
|
|
|
|
+ checked = false;
|
|
|
|
|
+ $('.chkIds').each(function () {
|
|
|
|
|
+
|
|
|
|
|
+ if (this.checked)
|
|
|
|
|
+ checked = true;
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ if (checked)
|
|
|
|
|
+ $("#btRemove").show();
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ $("#btRemove").hide();
|
|
|
|
|
+ $(".chkAll").prop( "checked", false );
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ $('#btRemove').click(function(){
|
|
|
|
|
+ var ids = [];
|
|
|
|
|
+ $('.chkIds').each(function () {
|
|
|
|
|
+ if (this.checked)
|
|
|
|
|
+ ids.push($(this).val());
|
|
|
|
|
+ });
|
|
|
|
|
+ if (confirm('Sei sicuro?'))
|
|
|
|
|
+ {
|
|
|
|
|
+ @this.deleteMultiple(ids);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ location.reload();
|
|
|
|
|
+ }, 200);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
</script>
|