Consolidado de items por cliente/vendedor

Empresa: {{$company->name}}

Ruc: {{$company->number}}

Establecimiento: {{$establishment->address}} - {{$establishment->department->description}} - {{$establishment->district->description}}

@if($params['person_id'])

Cliente: {{ (!empty($records)) ? $records->first()->order_note->customer->name:'' }} - {{ (!empty($records)) ? $records->first()->order_note->customer->number:'' }}

@else

Vendedor: {{ (!empty($records)) ? $records->first()->order_note->user->name:'' }}

@endif
@if(!empty($records))
@php $acum_total=0; @endphp @foreach($records as $key => $value) @php $acum_total += $value->quantity; @endphp @endforeach
# Producto Cantidad
{{$loop->iteration}} {{$value->item->description}} {{$value->quantity}}
Total {{$acum_total}}
@else

No se encontraron registros.

@endif