|
@@ -78,10 +78,13 @@
|
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
- <div class="col-10">
|
|
|
|
|
|
|
+ <div class="col-6">
|
|
|
<h3 class="mt-4">{{$detail}}</h3><br>
|
|
<h3 class="mt-4">{{$detail}}</h3><br>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="col-2 right" style="margin-top:20px;text-align:right">
|
|
|
|
|
|
|
+ <div class="col-3 right" style="margin-top:20px;text-align:right">
|
|
|
|
|
+ <button id="btSuspend" style="display:none;" class="btn--ui" >SOSPENDI/ATTIVA SELEZIONATI</button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="col-3 right" style="margin-top:20px;text-align:right">
|
|
|
<button id="btRemove" style="display:none;" class="btn--ui" >ELIMINA SELEZIONATI</button>
|
|
<button id="btRemove" style="display:none;" class="btn--ui" >ELIMINA SELEZIONATI</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -92,7 +95,7 @@
|
|
|
<tr>
|
|
<tr>
|
|
|
<th scope="col"><input type="checkbox" name="chkAll" class="chkAll"></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">Pagamento</th>
|
|
|
<th scope="col">Mesi</th>
|
|
<th scope="col">Mesi</th>
|
|
|
<th scope="col">Prezzo</th>
|
|
<th scope="col">Prezzo</th>
|
|
|
<th scope="col" style="text-align:center">Stato pagamento</th>
|
|
<th scope="col" style="text-align:center">Stato pagamento</th>
|
|
@@ -103,7 +106,7 @@
|
|
|
@foreach($records as $record)
|
|
@foreach($records as $record)
|
|
|
<tr>
|
|
<tr>
|
|
|
<td>
|
|
<td>
|
|
|
- @if($record->status == 0)
|
|
|
|
|
|
|
+ @if($record->status == 0 || $record->status == 2)
|
|
|
<input type="checkbox" name="chk{{$record->id}}" value="{{$record->id}}" class="chkIds">
|
|
<input type="checkbox" name="chk{{$record->id}}" value="{{$record->id}}" class="chkIds">
|
|
|
@endif
|
|
@endif
|
|
|
</td>
|
|
</td>
|
|
@@ -459,9 +462,15 @@
|
|
|
ok = true;
|
|
ok = true;
|
|
|
});
|
|
});
|
|
|
if (check && ok)
|
|
if (check && ok)
|
|
|
|
|
+ {
|
|
|
$("#btRemove").show();
|
|
$("#btRemove").show();
|
|
|
|
|
+ $("#btSuspend").show();
|
|
|
|
|
+ }
|
|
|
else
|
|
else
|
|
|
|
|
+ {
|
|
|
$("#btRemove").hide();
|
|
$("#btRemove").hide();
|
|
|
|
|
+ $("#btSuspend").hide();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -475,10 +484,14 @@
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
if (checked)
|
|
if (checked)
|
|
|
|
|
+ {
|
|
|
$("#btRemove").show();
|
|
$("#btRemove").show();
|
|
|
|
|
+ $("#btSuspend").show();
|
|
|
|
|
+ }
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
$("#btRemove").hide();
|
|
$("#btRemove").hide();
|
|
|
|
|
+ $("#btSuspend").hide();
|
|
|
$(".chkAll").prop( "checked", false );
|
|
$(".chkAll").prop( "checked", false );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -499,6 +512,21 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ $('#btSuspend').click(function(){
|
|
|
|
|
+ var ids = [];
|
|
|
|
|
+ $('.chkIds').each(function () {
|
|
|
|
|
+ if (this.checked)
|
|
|
|
|
+ ids.push($(this).val());
|
|
|
|
|
+ });
|
|
|
|
|
+ if (confirm('Sei sicuro?'))
|
|
|
|
|
+ {
|
|
|
|
|
+ @this.suspendMultiple(ids);
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ location.reload();
|
|
|
|
|
+ }, 200);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
|
|
|