@extends('adminlte::page') @section('title', 'Detalle de Cotización') @section('content_header')
| Cliente: | {{ $cotizacione->cliente->user->name ?? 'N/A' }} |
|---|---|
| Empresa: | {{ $cotizacione->cliente->empresa }} |
| RUC: | {{ $cotizacione->cliente->ruc }} |
| Celular: | {{ $cotizacione->cliente->celular }} |
| Número: | {{ $cotizacione->numero_cotizacion }} |
|---|---|
| Fecha Emisión: | {{ $cotizacione->fecha_emision->format('d/m/Y') }} |
| Fecha Vencimiento: | {{ $cotizacione->fecha_vencimiento ? $cotizacione->fecha_vencimiento->format('d/m/Y') : 'Sin fecha de vencimiento' }} |
| Estado: | @if($cotizacione->estado == 'aprobada') Aprobada @elseif($cotizacione->estado == 'rechazada') Rechazada @elseif($cotizacione->estado == 'vencida') Vencida @else Pendiente @endif |
| Observaciones: | {{ $cotizacione->observaciones }} |
| # | Código | Descripción | Cantidad | Precio Unit. | Descuento % | Impuesto % | Subtotal |
|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $item->producto->codigo_producto }} | {{ $item->producto->descripcion }} | {{ $item->cantidad }} {{ $item->producto->unidad_medida }} | S/ {{ number_format($item->precio_unitario, 2) }} | {{ $item->descuento > 0 ? number_format($item->descuento, 2) . '%' : '-' }} | {{ $item->impuesto > 0 ? number_format($item->impuesto, 2) . '%' : '-' }} | S/ {{ number_format($item->subtotal, 2) }} |
| Subtotal: | S/ {{ number_format($cotizacione->subtotal, 2) }} | ||||||
| Descuento: | -S/ {{ number_format($cotizacione->descuento, 2) }} | ||||||
| Impuesto Total: | S/ {{ number_format($cotizacione->impuesto_total, 2) }} | ||||||
| TOTAL: | S/ {{ number_format($cotizacione->total, 2) }} | ||||||
| # | Código | Descripción | Cantidad | Precio Base | Peso x Unidad (kg) | Flete x Tonelada (S/) | % Margen | Flete Unit. | Costo + Flete | Total KG | Margen Total | Flete Total (S/) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $item->producto->codigo_producto }} | {{ $item->producto->descripcion }} | {{ $item->cantidad }} |
S/ {{ number_format($precioBaseMostrar, 2) }}
@if($item->precio_base_cotizacion && abs($item->precio_base_cotizacion - $item->producto->precio_base) > 0.01)
Base: S/ {{ number_format($item->producto->precio_base, 2) }} @endif |
{{ number_format($pesoUnidad, 4) }} | S/ {{ number_format($fleteTonelada, 2) }} | {{ number_format($item->margen_porcentaje ?? 0, 2) }}% | S/ {{ number_format($item->flete_unitario ?? 0, 4) }} | S/ {{ number_format($costoMasFleteMostrar, 2) }} | {{ number_format($item->total_kg ?? 0, 4) }} | S/ {{ number_format($item->margen_total ?? 0, 2) }} | S/ {{ number_format($item->flete_total ?? 0, 2) }} |
| RESUMEN TOTAL: | {{ number_format($totalKg, 4) }} kg | S/ {{ number_format($totalMargen, 2) }} | S/ {{ number_format($totalFlete, 2) }} | |||||||||
| Total Precio Base: | S/ {{ number_format($totalPrecioBase, 2) }} | |||||||||||
| Total Costo + Flete: | S/ {{ number_format($totalCostoFlete, 2) }} | |||||||||||