{{ $company['name'] }}
@if($company['address']){{ $company['address'] }}
@endif @if($company['phone'])Tel: {{ $company['phone'] }}@endif @if($company['email'])
{{ $company['email'] }}@endif
RESPONSABLE INSCRIPTO
Inicio: {{ $settings->start_date ?? '01/01/2020' }}
PRESUPUESTO
Nº: PR-{{ str_pad($quote->id, 4, '0', STR_PAD_LEFT) }}
Fecha: {{ $quote->created_at->format('d/m/Y') }}
@if($quote->valid_until) Válido hasta: {{ \Carbon\Carbon::parse($quote->valid_until)->format('d/m/Y') }}
@endif Estado: {{ strtoupper($quote->getStatusInSpanish()) }}
DATOS DEL CLIENTE
Cliente:
{{ strtoupper($quote->first_name . ' ' . $quote->last_name) }}

Domicilio:
{{ strtoupper($quote->address) }} @if($quote->apartment) {{ strtoupper($quote->apartment) }}@endif

Localidad:
{{ strtoupper($quote->city) }}

Provincia:
{{ strtoupper($quote->state) }}
Email:
{{ $quote->email }}

Teléfono:
{{ $quote->mobile }}

C.P.:
{{ $quote->zip }}

Cond. IVA:
CONSUMIDOR FINAL

@if($quote->company)
Empresa:
{{ strtoupper($quote->company) }}

@endif @if($quote->delivery_date)
F. Entrega:
{{ \Carbon\Carbon::parse($quote->delivery_date)->format('d/m/Y') }}
@endif
Condición: {{ strtoupper($quote->payment_terms ?? 'CONTADO C/CTA CTE') }} @php $totalWeight = $quoteItems->sum(function($item) { return ($item->quantity ?? 1) * ($item->product->weight ?? 0.5); }); @endphp @if($totalWeight > 0) Peso: {{ number_format($totalWeight, 3) }}kg @endif
DETALLE DE PRODUCTOS
@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 CANT. U DESCRIPCIÓN PRECIO LISTA PRECIO UNIT. DESC. 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->unit_price, 4) }} {{ number_format($item->discount_percentage ?? 0, 2) }} {{ number_format($total, 4) }}
@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)
ENVÍO {{ number_format($quote->shipping, 2) }}
@endif
TOTAL {{ number_format($finalTotalWithShipping, 2) }}