@push('styles') @endpush
@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif
🖨️ Teste de Impressão
Clique para testar se a impressão está funcionando
@if($selectedProduct)
@if($selectedProduct->image) {{ $selectedProduct->name }} @else @endif
{{ $selectedProduct->name }}
@if($selectedProduct->sku)
{{ $selectedProduct->sku }}
@endif
R$ {{ number_format($selectedProduct->price, 2, ',', '.') }}
@php $discountAmount = 0; if ($modalDiscount > 0) { if ($modalDiscountType === 'percentage') { $discountAmount = ($selectedProduct->price * $modalDiscount) / 100; } else { $discountAmount = $modalDiscount; } } $priceAfterDiscount = $selectedProduct->price - $discountAmount; $finalTotal = $priceAfterDiscount * $modalQuantity; @endphp @if($modalDiscount > 0)
Subtotal: R$ {{ number_format($selectedProduct->price * $modalQuantity, 2, ',', '.') }}
Desconto: - R$ {{ number_format($discountAmount * $modalQuantity, 2, ',', '.') }}
Total: R$ {{ number_format($finalTotal, 2, ',', '.') }}
@else
Total: R$ {{ number_format($finalTotal, 2, ',', '.') }}
@endif @else

Selecione um Produto

Digite na busca e clique em um produto para ver os detalhes

@endif
Carrinho
{{ count($cart) }} {{ count($cart) == 1 ? 'item' : 'itens' }}
R$ {{ number_format($total, 2, ',', '.') }}
@if(count($cart) > 0)
@foreach($cart as $item) @endforeach
Código Produto Valor Qtde Total
{{ $item['sku'] ?? '-' }}
{{ $item['name'] }}
@if($item['discount'] > 0)
Desconto: @if($item['discount_type'] === 'percentage') {{ number_format($item['discount_value'], 0) }}% @else R$ {{ number_format($item['discount_value'], 2, ',', '.') }} @endif
@endif
R$ {{ number_format($item['final_price'], 2, ',', '.') }}
{{ $item['quantity'] }}
R$ {{ number_format($item['final_price'] * $item['quantity'], 2, ',', '.') }}
@foreach($cart as $item)
{{ $item['name'] }} @if($item['sku'])
{{ $item['sku'] }}
@endif @if($item['discount'] > 0)
@if($item['discount_type'] === 'percentage') {{ number_format($item['discount_value'], 0) }}% OFF @else -R$ {{ number_format($item['discount_value'], 2, ',', '.') }} @endif
@endif
Preço unitário
R$ {{ number_format($item['final_price'], 2, ',', '.') }}
{{ $item['quantity'] }}
Total
R$ {{ number_format($item['final_price'] * $item['quantity'], 2, ',', '.') }}
@endforeach
@if($totalDiscount > 0)
Subtotal: R$ {{ number_format($subtotal, 2, ',', '.') }}
Desconto: - R$ {{ number_format($totalDiscount, 2, ',', '.') }}
Total: R$ {{ number_format($total, 2, ',', '.') }}
@endif @else

Carrinho Vazio

Adicione produtos para começar a venda

@endif
@if($showProductModal && $selectedProduct)
@endif @if($showCheckoutModal)
@endif @if($showCustomerModal)
@endif
@push('scripts') @endpush