{{ $company['name'] }}
@if($company['address']) {{ $company['address'] }}
@endif @if($company['phone']) Tel: {{ $company['phone'] }} @endif @if($company['email']) | Email: {{ $company['email'] }} @endif @if($company['website'])
{{ $company['website'] }} @endif
COTIZACIÓN
#{{ str_pad($quote->id, 6, '0', STR_PAD_LEFT) }}
Fecha: {{ date('d/m/Y', strtotime($quote->created_at)) }}
@if($quote->valid_until) Válida hasta: {{ date('d/m/Y', strtotime($quote->valid_until)) }}
@endif {{ ucfirst($quote->status) }}
Información del Cliente
Cliente: {{ $quote->first_name }} {{ $quote->last_name }}
Email: {{ $quote->email }}
Teléfono: {{ $quote->mobile }}
@if($quote->company)
Empresa: {{ $quote->company }}
@endif
País: {{ $quote->country->name ?? 'N/A' }}
Dirección: {{ $quote->address }}
@if($quote->user_id)
Usuario: Registrado (ID: {{ $quote->user_id }})
@endif
Productos Cotizados
@foreach($quoteItems as $item) @php $subtotal = ($item->quantity ?? $item->qty ?? 1) * ($item->unit_price ?? $item->price ?? 0); $discount = $subtotal * (($item->discount_percentage ?? 0) / 100); $total = $subtotal - $discount; @endphp @endforeach
Producto Cant. Precio Unit. Desc. % Subtotal Total
{{ $item->product->title ?? $item->name ?? 'Producto no disponible' }} @if($item->product && $item->product->CO_ARTI)
Código: {{ trim($item->product->CO_ARTI) }} @endif
{{ $item->quantity ?? $item->qty ?? 1 }} ${{ number_format($item->unit_price ?? $item->price ?? 0, 2) }} {{ $item->discount_percentage ?? 0 }}% ${{ number_format($subtotal, 2) }} ${{ number_format($total, 2) }}
@if($quote->discount > 0) @endif @if($quote->quoted_price && $quote->quoted_price > 0) @endif
Subtotal: ${{ number_format($quote->subtotal ?? 0, 2) }}
Descuento: -${{ number_format($quote->discount, 2) }}
TOTAL FINAL: ${{ number_format($quote->grand_total ?? $quote->subtotal ?? 0, 2) }}
PRECIO COTIZADO: ${{ number_format($quote->quoted_price, 2) }}
@if($quote->special_requirements || $quote->admin_notes)
@if($quote->special_requirements)
Requerimientos Especiales del Cliente:
{{ $quote->special_requirements }}
@endif @if($quote->admin_notes)
Notas Internas:
{{ $quote->admin_notes }}
@endif
@endif