Consolidado de items por cliente/vendedor - Totales

{{--
@inject('reportService', 'Modules\Report\Services\ReportService') @if(isset($params['user_id'])) @php $sellers = json_decode($params['user_id']); @endphp @if(count($sellers) > 0) @endif @endif @if(isset($params['person_id'])) @endif

Empresa:

{{$company->name}}

Ruc:

{{$company->number}}

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

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

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

--}} @if(!empty($records))
{{-- --}} @inject('reportService', 'Modules\Report\Services\ReportService') @if(isset($params['user_id'])) @php $sellers = json_decode($params['user_id']); @endphp @if(count($sellers) > 0) @endif @endif @if(isset($params['person_id'])) @endif {{-- --}} @foreach($records as $key => $value) @endforeach {{-- --}}

Empresa:

{{$company->name}}

Ruc:

{{$company->number}}

Establecimiento:

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

Usuario(s):

@foreach ($sellers as $index => $seller_id) @if ($index == 0) {{$reportService->getUserName($seller_id)}} @else , {{$reportService->getUserName($seller_id)}} @endif @endforeach

Cliente:

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

# Cod. Interno Producto Unidad Categoria Cantidad Total Total de venta
{{ $loop->iteration }} {{$value['item_internal_id']}} {{$value['item_description']}} {{$value['item_unit_type_id']}} {{ isset($value['category']) ? $value['category'] : '' }} {{$value['quantity']}} {{ isset($value['total_sale']) ? $value['total_sale'] : '' }}
@else

No se encontraron registros.

@endif