Gestionale

@if(sizeof($columns) < 6) @endif @if($showData) @endif

Entrate

Filtra per causale
@foreach($columns as $idx => $column) @endforeach @for($j=sizeof($columns);$j<6;$j++) @endfor @foreach($rows_in as $in) @php $show = false; if ($filterCausalsIn != null) { foreach($filterCausalsIn as $cIn) { if (in_array($cIn, $in["all_childs"])) $show = true; } } else $show = true; @endphp @if($show) @if($in["parent_id"] != null) @else @endif @foreach($columns as $column) @endforeach @for($j=sizeof($columns);$j<6;$j++) @endfor @endif @endforeach @foreach($columns as $column) @endforeach @for($j=sizeof($columns);$j<6;$j++)
{{$this->getMonth($column)}}
 
{{$in["name"]}} @if(isset($records_in[$column][$in["id"]])) @else   @endif  
Totale entrate @php $total = 0; $existIn = []; @endphp @foreach($rows_in as $in) @if($filterCausalsIn == null || (sizeof($filterCausalsIn) == 0 || in_array($in["id"], $filterCausalsIn))) @if(isset($records_in[$column][$in["id"]])) @php if($in["level"] == 0) { $total += $records_in[$column][$in["id"]]; $existIn[] = $in["id"]; } else { if (!in_array($in["parent_id"], $existIn)) { $total += $records_in[$column][$in["id"]]; } $existIn[] = $in["id"]; } @endphp @endif @endif @endforeach {{formatPrice($total)}}   @endfor

Uscite

@foreach($columns as $idx => $column) @endforeach @for($j=sizeof($columns);$j<6;$j++) @endfor @foreach($rows_out as $out) @php $show = false; if ($filterCausalsOut != null) { foreach($filterCausalsOut as $cOut) { if (in_array($cOut, $out["all_childs"])) $show = true; } } else $show = true; @endphp @if($show) @if($out["parent_id"] != null) @else @endif @foreach($columns as $column) @endforeach @for($j=sizeof($columns);$j<6;$j++) @endfor @endif @endforeach @foreach($columns as $column) @endforeach @for($j=sizeof($columns);$j<6;$j++)
{{$this->getMonth($column)}}
 
{{$out["name"]}} @if(isset($records_out[$column][$out["id"]])) @else   @endif  
Totale uscite @php $total = 0; $existOut = []; @endphp @foreach($rows_out as $out) @if($filterCausalsOut == null || (sizeof($filterCausalsOut) == 0 || in_array($out["id"], $filterCausalsOut))) @if(isset($records_out[$column][$out["id"]])) @php if($out["level"] == 0) { $total += $records_out[$column][$out["id"]]; $existOut[] = $out["id"]; } else { if (!in_array($out["parent_id"], $existOut)) { $total += $records_out[$column][$out["id"]]; } $existOut[] = $out["id"]; } @endphp @endif @endif @endforeach {{formatPrice($total)}}   @endfor
@push('scripts') @endpush @push('scripts') @endpush