{{ $company['name'] }}
@if($company['address']){{ $company['address'] }}
@endif @if($company['phone']){{ $company['phone'] }}
@endif @if($company['email']){{ $company['email'] }}
@endif @if($settings->cuit)CUIT: {{ $settings->cuit }}
@endif @if($settings->ingresos_brutos)Ingresos Brutos: {{ $settings->ingresos_brutos }}
@endif Cond. IVA: RESPONSABLE INSCRIPTO
Inicio Act.: {{ $settings->start_date ?? '01/09/2023' }}
PRESUPUESTO
Nº: PR-{{ str_pad($quote->id, 4, '0', STR_PAD_LEFT) }}
Fecha Emisión: {{ $quote->created_at->format('d/m/Y') }}
Hora: {{ $quote->created_at->format('H:i:s') }}
Tipo: P - Cod.99
DATOS DEL CLIENTE
@php $totalWeight = $quoteItems->sum(function($item) { return ($item->quantity ?? 1) * ($item->product->weight ?? 0.5); }); @endphp
Razón Social: {{ strtoupper($quote->first_name . ' ' . $quote->last_name) }} CUIT: {{ $quote->tax_id ?? '-' }}
Domicilio: {{ strtoupper($quote->address) }} Cond. IVA: {{ $quote->customer_type == 'business' ? 'RESPONSABLE INSCRIPTO' : 'CONSUMIDOR FINAL' }}
Localidad: {{ strtoupper($quote->city) }} Cond. Venta: {{ strtoupper($quote->payment_terms ?? 'CONTADO') }}@if($quote->delivery_date) | Fecha.Entrega: {{ \Carbon\Carbon::parse($quote->delivery_date)->format('d/m/Y') }}@endif
Provincia: {{ strtoupper($quote->state) }} Remito: @if($totalWeight > 0)| Peso Total: {{ number_format($totalWeight, 3) }}@endif
CP: {{ $quote->zip }}
@foreach($quoteItems as $item) @php $subtotal = $item->quantity * $item->unit_price; $discount = $subtotal * (($item->discount_percentage ?? 0) / 100); $total = $subtotal - $discount; @endphp @endforeach
Código Cantidad Unidad Descripción P. Unitario Descuento Importe
@if($item->product && $item->product->CO_ARTI) {{ trim($item->product->CO_ARTI) }} @else - @endif {{ number_format($item->quantity, 2) }} U {{ strtoupper($item->name) }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->discount_percentage ?? 0, 2) }} {{ number_format($total, 2) }}
@php // Calcular IVA (21% del subtotal) $ivaBase = $quote->subtotal - $quote->discount; $iva21 = $ivaBase * 0.21; $totalConIva = $ivaBase + $iva21; $finalTotalWithShipping = $totalConIva + ($quote->shipping ?? 0); @endphp
BULTOS {{ $quoteItems->count() }}
ITEMS {{ $quoteItems->sum('quantity') }}
SUBTOTAL {{ number_format($quote->subtotal, 2) }}
@if($quote->discount > 0)
DESCUENTO {{ number_format($quote->discount, 2) }}
@endif
NO GRAVADO {{ number_format($ivaBase, 2) }}
IVA 21% {{ number_format($iva21, 2) }}
IVA 10.5% 0.00
@if($quote->shipping > 0)
OTROS {{ number_format($quote->shipping, 2) }}
@endif
TOTAL {{ number_format($finalTotalWithShipping, 2) }}
Subtotal: {{ number_format($quote->subtotal, 2) }}
Descuento: {{ number_format($quote->discount, 2) }}
Neto Gravado: {{ number_format($ivaBase, 2) }}
IVA (21.00%): {{ number_format($iva21, 2) }}
IVA (10.50%): 0.00
Otros ( 0.00%): {{ number_format($quote->shipping ?? 0, 2) }}
TOTAL: {{ number_format($finalTotalWithShipping, 2) }}