Prima nota

Utente
Causale
Periodo
@if($selectedPeriod === 'GIORNO_PERSONALIZZATO')
@if($showDayPicker)
Seleziona Giorno
@php $months = [ '01' => 'Gen', '02' => 'Feb', '03' => 'Mar', '04' => 'Apr', '05' => 'Mag', '06' => 'Giu', '07' => 'Lug', '08' => 'Ago', '09' => 'Set', '10' => 'Ott', '11' => 'Nov', '12' => 'Dic' ]; $currentMonth = $selectedDay ? substr($selectedDay, 5, 2) : date('m'); $currentYear = $selectedDay ? substr($selectedDay, 0, 4) : date('Y'); @endphp @foreach($months as $monthNum => $monthName)
@endforeach
@endif
@if($selectedDay && $selectedPeriod === 'GIORNO_PERSONALIZZATO')
Giorno selezionato:
{{ \Carbon\Carbon::createFromFormat('Y-m-d', $selectedDay)->locale('it')->isoFormat('dddd, D MMMM YYYY') }}
@endif @endif @if($selectedPeriod === 'MESE_PERSONALIZZATO')
@if($showMonthPicker)
Seleziona Mese
@php $months = [ '01' => 'Gen', '02' => 'Feb', '03' => 'Mar', '04' => 'Apr', '05' => 'Mag', '06' => 'Giu', '07' => 'Lug', '08' => 'Ago', '09' => 'Set', '10' => 'Ott', '11' => 'Nov', '12' => 'Dic' ]; $currentMonth = $selectedMonth ?: date('Y-m'); @endphp @foreach($months as $monthNum => $monthName)
@endforeach
@endif
@if($selectedMonth && $selectedPeriod === 'MESE_PERSONALIZZATO')
Periodo selezionato:
{{ \Carbon\Carbon::createFromFormat('Y-m', $selectedMonth)->locale('it')->isoFormat('MMMM YYYY') }}
@endif @endif
{{-- Custom loader --}}
{{-- END Custom loader --}}
@if($isFiltering)

Caricamento dati in corso...

@endif @foreach($payments as $p) @endforeach @foreach($payments as $p) @if($p->type == 'ALL') @elseif($p->type == 'IN') @elseif($p->type == 'OUT') @endif @endforeach @php $count = 0; @endphp @foreach($records as $causal => $record) @php $parts = explode("§", $causal); $d = $parts[0] ?? ''; $c = $parts[1] ?? ''; $n = $parts[2] ?? ''; $det = $parts[3] ?? ''; $del = $parts[4] ?? ''; $detailParts = explode('|', $det); $isMultiple = count($detailParts) > 1; $displayDetail = $isMultiple ? 'Varie' : $det; @endphp @foreach($payments as $p) @if(isset($record[$p->name])) @else @endif @endforeach @php $count++; @endphp @endforeach @foreach($payments as $p) @if(isset($totals[$p->name])) @if($p->type == 'ALL') @elseif($p->type == 'IN') @elseif($p->type == 'OUT') @endif @else @if($p->type == 'ALL') @elseif($p->type == 'IN') @elseif($p->type == 'OUT') @endif @endif @endforeach @foreach($payments as $p) @if(isset($totals[$p->name])) @php $diff = $totals[$p->name]["IN"] - $totals[$p->name]["OUT"]; @endphp @if($diff < 0) @endif @if($diff > 0) @endif @else @endif @endforeach
Data Causale Dettaglio Causale Stato Nominativo{{$p->name}}
Entrate UsciteEntrate Uscite
{{date("d/m/Y", strtotime($d))}} {{$c}} @if($isMultiple) {{$displayDetail}} @else {{$displayDetail}} @endif @if($del == 'DELETED') Annullata @endif {{$n}} @if(isset($record[$p->name]["IN"])) {{formatPrice($record[$p->name]["IN"])}} @endif @if(isset($record[$p->name]["OUT"])) {{formatPrice($record[$p->name]["OUT"])}} @endif
Totale{{formatPrice(isset($totals[$p->name]) ? $totals[$p->name]["IN"] : 0)}} {{formatPrice(isset($totals[$p->name]) ? $totals[$p->name]["OUT"] : 0)}}{{formatPrice(isset($totals[$p->name]) ? $totals[$p->name]["IN"] : 0)}}    {{formatPrice(isset($totals[$p->name]) ? $totals[$p->name]["OUT"] : 0)}}{{formatPrice(isset($totals[$p->name]) ? $totals[$p->name]["IN"] : 0)}} {{formatPrice(isset($totals[$p->name]) ? $totals[$p->name]["OUT"] : 0)}}{{formatPrice(isset($totals[$p->name]) ? $totals[$p->name]["IN"] : 0)}}    {{formatPrice(isset($totals[$p->name]) ? $totals[$p->name]["OUT"] : 0)}}
Differenza{{formatPrice($diff)}}{{formatPrice(0)}}
@push('scripts') @endpush @push('scripts') @endpush @push('scripts') @endpush