@php $colspan = 6; @endphp
EMPRESA: {{ $company['name'] }}
RUC: {{ $company['number'] }}
REPORTE DE INVENTARIO
@foreach($columns as $col) @if(in_array($col['name'], $select_columns) || $col['locked']) @endif @endforeach @php $sale_total = 0; $purchase_total = 0; $profit_total = 0; @endphp @foreach($records as $row) @foreach($columns as $col) @if(in_array($col['name'], $select_columns) || $col['locked']) @endif @endforeach @php $sale_total += floatval($row['sale_total']); $purchase_total += floatval($row['purchase_total']); $profit_total += floatval($row['profit_total']); @endphp @endforeach
#{{ func_str_to_upper_utf8($col['label']) }}
{{ $loop->iteration }}{{ $row[$col['name']] }}
PRECIO TOTAL {{ number_format($sale_total, 2, '.', '') }}
COSTO TOTAL {{ number_format($purchase_total, 2, '.', '') }}
GANANCIA TOTAL {{ number_format($profit_total, 2, '.', '') }}