@csrf
Datos generales
{{-- --}}
@if($cotizacion->estado <> 'Orden de venta')
@csrf
Factores

{{$cbm =0,$acumCBM=0, $we=0, $acumWE=0}} @foreach ($factores as $factor)
{{$acumCBM +=$cbm}} {{$acumWE += $we}}
@endforeach
Cantidad bultos Peso (Kg) Dimesion 1 Dimension 2 Dimension 3 CBM CBM*Bulto Eliminar
{{$factor->cant_bultos}} {{ $we = $factor->peso}} {{$factor->alt}} {{$factor->anc}} {{$factor->larg}} {{ $factor->alt * $factor->anc * $factor->larg}} {{ $cbm = ($factor->alt * $factor->anc * $factor->larg)* $factor->cant_bultos}}

Total peso/volumen :{{round($acumWE /$detalle->valor_kg,2) }}
Total CBM: {{round($acumCBM,2)}}

@csrf
Detalle de servicio
@if($acumCBM > $acumWE /$detalle->valor_kg) @else @endif

@php $totalPago=0; $sub=0; $totalCantidad=0; $totalPunitario=0; $totalSTotal=0; $totalIVA=0; @endphp @foreach ($ofertServices as $item) @php if($item->factor == 1){ $sub =$item->valor*$item->cantidad*$fact; } else { $sub=$item->valor*$item->cantidad; } if($item->iva == 1){ $valorIva = $sub*0.13; } else { $valorIva=0; } $total=$sub + $valorIva; @endphp @php $totalCantidad+=$item->cantidad; $totalPunitario+=$item->valor; $totalSTotal+=$sub; $totalIVA+=$valorIva; $totalPago += $total; @endphp @endforeach
item Servicio Peso Tasable Cantidad Precio unitario Sub total IVA Total Eliminar
{{$loop->iteration}} {{$item->serv_name}} {{$item->factor == 1? $fact : 1}} {{$item->cantidad}} $ {{number_format($item->valor,2)}}$ {{number_format($sub, 2 ) }} $ {{number_format($valorIva, 2 )}} $ {{number_format($total, 2 )}}
Monto total {{$totalCantidad}} $ {{number_format($totalPunitario, 2 ) }} $ {{number_format($totalSTotal, 2 ) }} $ {{number_format($totalIVA, 2 ) }} $ {{number_format($totalPago, 2 ) }}
{{-- --}}
@csrf
Notas
@endif