|
@@ -337,8 +337,8 @@
|
|
|
<th scope="col">Causale</th>
|
|
<th scope="col">Causale</th>
|
|
|
<th scope="col">Nominativo</th>
|
|
<th scope="col">Nominativo</th>
|
|
|
<th scope="col">Stato</th>
|
|
<th scope="col">Stato</th>
|
|
|
- <th scope="col">Entrata</th>
|
|
|
|
|
- <th scope="col">Uscita</th>
|
|
|
|
|
|
|
+ <th scope="col" class="text-end">Entrata</th>
|
|
|
|
|
+ <th scope="col" class="text-end">Uscita</th>
|
|
|
<th scope="col">Origine</th>
|
|
<th scope="col">Origine</th>
|
|
|
<th scope="col">Destinazione</th>
|
|
<th scope="col">Destinazione</th>
|
|
|
<th scope="col">Metodo di pagamento</th>
|
|
<th scope="col">Metodo di pagamento</th>
|
|
@@ -361,16 +361,16 @@
|
|
|
@foreach($records as $record)
|
|
@foreach($records as $record)
|
|
|
@if($record->date != '')
|
|
@if($record->date != '')
|
|
|
<tr>
|
|
<tr>
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{date("d/m/Y", strtotime($record->date))}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->commercial ? 'Commerciale' : 'Non commerciale'}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->causal_name}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->type == 'IN' ? ($record->member->first_name . " " . $record->member->last_name) : @$record->supplier->name}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->deleted ? 'Annullata' : ''}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}};text-align:right;">{{$record->type == 'IN' ? formatPrice($record->amount) : ''}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}};text-align:right;">{{$record->type == 'OUT' ? formatPrice($record->amount) : ''}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->type == 'OUT' ? $record->origin : ''}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->type == 'IN' ? $record->destination : ''}}</td>
|
|
|
|
|
- <td style="background-color:{{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->payment_method->name}}</td>
|
|
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{date("d/m/Y", strtotime($record->date))}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->commercial ? 'Commerciale' : 'Non commerciale'}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}; width: 20%;white-space: pre-line;">{{$record->causal_name}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->type == 'IN' ? ($record->member->first_name . " " . $record->member->last_name) : @$record->supplier->name}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->deleted ? 'Annullata' : ''}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}; text-align: right; color: green">{{$record->type == 'IN' ? formatPrice($record->amount) : ''}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}; text-align: right; color: red">{{$record->type == 'OUT' ? formatPrice($record->amount) : ''}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->type == 'OUT' ? $record->origin : ''}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->type == 'IN' ? $record->destination : ''}}</td>
|
|
|
|
|
+ <td style="background-color: {{$count % 2 == 0 ? 'white' : '#f2f4f7'}}">{{$record->payment_method->name}}</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
@php $count++; @endphp
|
|
@php $count++; @endphp
|
|
|
@endif
|
|
@endif
|