@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


Ventas por categorias - {{$data['category']}}








Total ventas

{{$data['cantidadLista']}}
${{number_format($data['totalLista'])}}
@foreach ($data['lista'] as $key => $order) @endforeach

Producto

Cantidad

Precio

Total

{{$order['name']}}

{{$order['quantity']}}

{{$order['price1']}}

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