@if($data['user']['type'] === 2) @else @endif

@if($data['user']['type'] === 2) {{$data['user']->Ecommerce->brand_name}} @else {{$data['user']['ownUser']->Ecommerce->brand_name}} @endif

@if( $data['user']['type'] === 2) {{$data['user']->Ecommerce->DocumentType->abrevitation}} {{$data['user']->Ecommerce->nit}} @else {{$data['user']['ownUser']->Ecommerce->DocumentType->abrevitation}} {{$data['user']['ownUser']->Ecommerce->nit}} @endif

Período:

@if(is_string($data['fecha'])) {{$data['fecha']}} @else {{$data['fecha']['from']}} - {{$data['fecha']['to']}} @endif


@if(isset($data['product']) and isset($data['product']['id'])) {{$data['product']['name']}} - {{$data['product']['sku']}} @else Ventas por producto @endif








Número de ventas

{{$data['cantidadLista']}}

Cantidad POS

{{$data['quantiSellerPOS']}}
${{number_format($data['totalPOS'])}}

Cantidad Online

{{$data['quantiSellerOrder']}}
${{number_format($data['totalOnline'])}}

Total

{{$data['quantiSellerPOS'] + $data['quantiSellerOrder']}}
${{number_format($data['totalPOS'] + $data['totalOnline'])}}
@foreach ($data['lista'] as $key => $order) @endforeach

Referencia

Producto

Variación

Cantidad

Precio

Total

{{isset($order['domicilio']) ? $order['domicilio']['reference'] : $order['order']['reference']}}

{{$order['name']}}

{{$order['reference']}}

{{$order['quantity']}}

${{number_format($order['price'])}}

${{number_format($order['total'])}}