@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 Rentabilidad por producto @endif








Rentabilidad POS

${{number_format($data['rentabilidadPOS'], 2, ',', '.')}}

Rentabilidad Online

${{number_format($data['rentabilidadOnline'], 2, ',', '.')}}

Rentabilidad Total

${{number_format($data['rentabilidadTotal'], 2, ',', '.')}}
@foreach ($data['listado'] as $key => $order) @endforeach

Referencia

Producto

Variación

Cantidad

Precio

P. total

Costo

C. total

Rentabilidad

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

{{$order['name']}}

{{$order['reference']}}

{{$order['quantity']}}

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

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

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

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

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