@if ($this->sale->type_sale == 'Mesa')
@foreach ($comensales as $key => $comensal) @if ($comensal['diner'] != 0)
@if ($comensal['items']) {{ $comensal['items'] }} @endif {{ $comensal['diner'] }}
@endif @endforeach
@if (count($comensales)) @if ($comensales[0]['items']) {{ $comensales[0]['items'] }} @endif @endif
@endif
{{--
Aticulos: 50

Desc: $50.000

--}}
Usuario: {{ auth()->user()->name }}
SubTotal: ${{ number_format($sale->subtotal, 0, ',', '.') }}
@if ($sale->type_sale == 'Despacho')
Despacho: ${{ number_format($sale->price_delivery, 0, ',', '.') }}
@endif @if ($sale->type_sale == 'Mesa')
Mesa: {{ $table->name }}
@endif
@if ($sale->discount)
Dcto: ${{ number_format($sale->discount, 0, ',', '.') }}
@endif
Total: ${{ number_format($sale->total, 0, ',', '.') }}
@if (!$cart->isEmpty()) @foreach ($cart->reverse() as $item) @endforeach @endif
Nombre Precio Acción

{{ $item->quantity }}x {{ $item->name }}

${{ number_format($item->attributes->price_origin, 0, ',', '.') }} {{ $item->attributes->discount != 0 ? 'Dcto: ' . number_format($item->attributes->discount, 0, ',', '.') : '' }}

@if ($item->attributes->comensal)

Comensal: {{ $item->attributes->comensal == '0' ? 'Grupo' : $item->attributes->comensal }}

@endif @if ($item->attributes->note)

* {{ $item->attributes->note }}

@endif @if ($item->attributes->options) @foreach ($item->attributes->options as $option)

* {{ $option['name'] }} - ${{ number_format($option['price'], 0, ',', '.') }}

@endforeach @endif
@if ($item->attributes->discount == 0) ${{ number_format($item->price * $item->quantity, 0, ',', '.') }}
@else ${{ number_format($item->price * $item->quantity, 0, ',', '.') }}
${{ number_format(($item->price - $item->attributes->discount) * $item->quantity, 0, ',', '.') }} @endif
    @if ($item->attributes->time == 'new')
  • @endif
@if ($cart->isEmpty())
Agrega productos a la venta
@endif

Guardando Venta...

@if ($sale->type_sale == 'Despacho' || $sale->type_sale == 'Retiro')

Cliente: {{ $sale->client->name }} {{ $sale->client->lastname }}

@if ($sale->type_sale == 'Despacho')

Dirección: {{ $sale->address->address }}, {{ $sale->address->state }}

@endif @endif
@foreach ($categorias as $categoria)
@if (false) Imagen @else {{ $categoria->name }} @endif
@endforeach
@foreach ($subCategories as $subCategory)
{{ $subCategory->name }}
Sub Categoría
@endforeach @foreach ($productos as $product)
{{ $product->name }}
{{-- usa_stock_productos --}}
${{ number_format($product->price, 0, ',', '.') }}
@endforeach
{{-- --}}
@include('livewire.tenant.pos.modals.modal-detail-sale') @include('livewire.tenant.pos.modals.modal-discount') @include('livewire.tenant.pos.modals.modal-config-delivery') @include('livewire.tenant.pos.modals.modal-product-cancellation') @include('livewire.tenant.pos.modals.modal-sale-cancellation') @include('livewire.tenant.pos.modals.modal-product-options') @include('livewire.tenant.pos.modals.modal-quantity-diner')