Consolidado de items por cliente/vendedor

@inject('reportService', 'Modules\Report\Services\ReportService') {{-- @if($params['seller_id']) @endif --}} @if(isset($params['sellers'])) @php $sellers = json_decode($params['sellers']); @endphp @if(count($sellers) > 0) @endif @elseif( isset($params['user_type']) && isset($params['user_id']) ) @php $sellers = \App\CoreFacturalo\Helpers\Template\ReportHelper::getSellersFromRequest( $params['user_type'] , $params['user_id'] ); // user_id Creador del documento // seller_id Usuario Asignado @endphp @if(count($sellers) > 0) @endif @endif @if($params['person_id']) @endif

Empresa: {{$company->name}}

Ruc: {{$company->number}}

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

Usuario: {{$reportService->getUserName($params['seller_id'])}}

Usuario(s): @foreach ($sellers as $seller_id) - {{$reportService->getUserName($seller_id)}} @endforeach

Usuario(s): {{-- Creador --}} @if(isset($sellers['user_id'])) @foreach ($sellers['user_id'] as $seller) - {{ $seller }} @endforeach @endif {{-- Asignado --}} @if(isset($sellers['seller_id'])) @foreach ($sellers['seller_id'] as $seller) - {{ $seller }} @endforeach @endif

Cliente: {{$reportService->getPersonName($params['person_id'])}}

@if(!empty($records))
@php $acum_total=0; $acu_total_sale = 0; @endphp @foreach($records as $key => $value)
# Documento Cod. Interno Unidad Categoria Producto Cantidad Total de venta