|
|
@@ -98,73 +98,75 @@
|
|
|
|
|
|
<button style="display:none" class="btn--ui btNewPayment" onclick="newPayment()">NUOVO PAGAMENTO</button>
|
|
|
|
|
|
- <section id="resume-table">
|
|
|
+ <section id="resume-table" >
|
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
|
|
|
|
- <table class="table tablesaw tablesaw-stack pagamento--corsi" id="tablesaw-350" width="100%">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th scope="col">Cognome</th>
|
|
|
- <th scope="col">Nome</th>
|
|
|
- <th scope="col">Iscrizione</th>
|
|
|
- @foreach($months as $m)
|
|
|
- <th scope="col"> {{$m}}</th>
|
|
|
- @endforeach
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody id="checkall-target">
|
|
|
- @if(false)
|
|
|
- @foreach($records as $record)
|
|
|
- <tr>
|
|
|
- @php
|
|
|
- list($id, $first_name, $last_name) = explode("§", $record[0]);
|
|
|
- @endphp
|
|
|
- <td><a href="/members?member_detail={{$id}}">{{$last_name}}</a></td>
|
|
|
- <td><a href="/members?member_detail={{$id}}">{{$first_name}}</a></td>
|
|
|
- @php
|
|
|
- list($subscribed, $subPrice) = explode("§", $record[15]);
|
|
|
- @endphp
|
|
|
- <td><a class="{{$subscribed ? 'green' : 'orange'}} sub_{{$record[14]}}" onclick="setSubscription({{$record[13]}}, {{$id}}, {{$record[14]}})" style="cursor: pointer;"><small>{{formatPrice($subPrice)}}</small></a></td>
|
|
|
- @for($x=1; $x<=12; $x++)
|
|
|
- <td>
|
|
|
- @php
|
|
|
- list($color, $price) = explode("§", $record[$x]);
|
|
|
- @endphp
|
|
|
- @if($color == 'orange')
|
|
|
- <a class="{{$color}} lnk_{{$record[14]}}" id="lnk_{{$record[13]}}_{{$x}}_{{$id}}" onclick="setPayMonth({{$record[13]}}, {{$x}}, {{$id}}, {{$record[14]}})" style="cursor: pointer;"><small>{{formatPrice($price)}}</small></a>
|
|
|
- @else
|
|
|
- @if($color != 'grey')
|
|
|
- <a class="{{$color}}"><small>{{formatPrice($price)}}</small></a>
|
|
|
+
|
|
|
+ <table class="table tablesaw tablesaw-stack pagamento--corsi display nowrap" id="tablesaw-350" width="100%">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th scope="col">Cognome</th>
|
|
|
+ <th scope="col">Nome</th>
|
|
|
+ <th scope="col">Iscrizione</th>
|
|
|
+ @foreach($months as $m)
|
|
|
+ <th scope="col"> {{$m}}</th>
|
|
|
+ @endforeach
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="checkall-target">
|
|
|
+ @if(false)
|
|
|
+ @foreach($records as $record)
|
|
|
+ <tr>
|
|
|
+ @php
|
|
|
+ list($id, $first_name, $last_name) = explode("§", $record[0]);
|
|
|
+ @endphp
|
|
|
+ <td><a href="/members?member_detail={{$id}}">{{$last_name}}</a></td>
|
|
|
+ <td><a href="/members?member_detail={{$id}}">{{$first_name}}</a></td>
|
|
|
+ @php
|
|
|
+ list($subscribed, $subPrice) = explode("§", $record[15]);
|
|
|
+ @endphp
|
|
|
+ <td><a class="{{$subscribed ? 'green' : 'orange'}} sub_{{$record[14]}}" onclick="setSubscription({{$record[13]}}, {{$id}}, {{$record[14]}})" style="cursor: pointer;"><small>{{formatPrice($subPrice)}}</small></a></td>
|
|
|
+ @for($x=1; $x<=12; $x++)
|
|
|
+ <td>
|
|
|
+ @php
|
|
|
+ list($color, $price) = explode("§", $record[$x]);
|
|
|
+ @endphp
|
|
|
+ @if($color == 'orange')
|
|
|
+ <a class="{{$color}} lnk_{{$record[14]}}" id="lnk_{{$record[13]}}_{{$x}}_{{$id}}" onclick="setPayMonth({{$record[13]}}, {{$x}}, {{$id}}, {{$record[14]}})" style="cursor: pointer;"><small>{{formatPrice($price)}}</small></a>
|
|
|
@else
|
|
|
-
|
|
|
+ @if($color != 'grey')
|
|
|
+ <a class="{{$color}}"><small>{{formatPrice($price)}}</small></a>
|
|
|
+ @else
|
|
|
+
|
|
|
+ @endif
|
|
|
@endif
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- @endfor
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- @endif
|
|
|
-
|
|
|
- </tbody>
|
|
|
- <tfoot id="checkall-target">
|
|
|
- <tr>
|
|
|
- <th colspan="2"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- </tr>
|
|
|
- </tfoot>
|
|
|
- </table>
|
|
|
+ </td>
|
|
|
+ @endfor
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ @endif
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ <tfoot id="checkall-target">
|
|
|
+ <tr>
|
|
|
+ <th colspan="2"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
+ </tr>
|
|
|
+ </tfoot>
|
|
|
+ </table>
|
|
|
+
|
|
|
|
|
|
<button style="display:none" class="btn--ui btNewPayment" onclick="newPayment()">NUOVO PAGAMENTO</button>
|
|
|
|
|
|
@@ -199,6 +201,7 @@
|
|
|
{
|
|
|
padding-right:5px !important;
|
|
|
}
|
|
|
+
|
|
|
</style>
|
|
|
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
|
|
|
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
|
|
|
@@ -634,21 +637,21 @@
|
|
|
text: 'Esporta',
|
|
|
buttons: [
|
|
|
{
|
|
|
- extend: 'excelHtml5',
|
|
|
+ extend: 'excelHtml5',"action":newexportaction,
|
|
|
title: 'Pagamento corsi',
|
|
|
exportOptions: {
|
|
|
columns: ":not(':last')"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- extend: 'pdfHtml5',
|
|
|
+ extend: 'pdfHtml5',"action":newexportaction,
|
|
|
title: 'Pagamento corsi',
|
|
|
exportOptions: {
|
|
|
columns: ":not(':last')"
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- extend: 'print',
|
|
|
+ extend: 'print',"action":newexportaction,
|
|
|
text: 'Stampa',
|
|
|
title: 'Pagamento corsi',
|
|
|
exportOptions: {
|