@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


Estado de Cuenta {{\App\Client::find($data['IdCliente'])->name}}













Saldo a favor

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

Saldo cobrar

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

Total pedidos

{{$data['cantidadLista']}}

Total Online

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

Total POS

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

Total Ventas

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

Nro Factura

Típo de venta

Fecha de Creación

Estado

Total

Pendiente

{{$order['reference']}}

@if($order['type'] == '1') Online @elseif($order['type'] == '2') Online @elseif($order['type'] == '3') POS @endif

{{$order['hora']}}

@if($order['remaining'] > 0) Pendiente @else Pagada @endif

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

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