@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['date'])) {{$data['date']}} @else {{$data['date']['from']}} - {{$data['date']['to']}} @endif


@if(isset($data['nameProduct'])) {{$data['nameProduct']}} @else Ventas por lista de precio. @endif @if(isset($data['price'])) - PRECIO ${{number_format($data['price'])}} @endif








Número de ventas

{{$data['quantityTotal']}}

Cantidad POS

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

Cantidad Online

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

Total

{{$data['quantityPos'] + $data['quanityOnline']}}
${{number_format($data['total'])}}
@foreach ($data['orders'] as $key => $order) @endforeach

Referencia

Producto

Bodega

Precio

Cantidad

Total

{{$order['reference']}}

{{$order['name']}}

{{$order['storage'] ? $order['storage']['description'] : 'Sin Bodega.'}}

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

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

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