@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


Ventas diarias













Total Ventas

{{$data['countOrder']}}
${{number_format($data['totalOrder'])}}

Cobrado

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

Por cobrar

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

Total impuestos

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

Devoluciones

{{number_format($data['countReturns'])}}
${{number_format($data['totalDevoluciones'])}}

Caja

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

Saldo a favor

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

Envíos

{{number_format($data['countDelivery'])}}
${{number_format($data['totalDelivery'])}}
@foreach ($data['orders'] as $key => $order) @endforeach

Factura

Fecha

Cliente

Subtotal

Descuento

Impuestos

Total

Estado

{{$order['reference']}}

{{substr($order['hora'], 0, 10)}}

@if($order['type'] === 3) @if(isset($order['client']['name'])) {{$order['client']['name']}} @else Sin cliente @endif @else {{$order['name']}} @endif

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

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

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

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

@if($order['is_pay'] === 'Si') Cobrada @else Por cobrar @endif