@csrf
Datos generales
{{-- --}}
{{-- --}}
@if($cotizacion->estado <> 'Orden de venta') @if($cotizacion->servicio->tipo == "LCL" ||$cotizacion->servicio->tipo == "AER" )
@csrf
@endif
@csrf
Factores
Recuerde que el valor del KG es el que ingreso en la seccion "Datos generales" del formulario. Al terminar de ingresar o modificar los bultos no olvide dar clic en el boton actualizar factor para que los datos aparezcan correctamente en el reporte

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

Total peso/volumen: {{$acumWE /$detalle->valor_kg }}
Total CBM: {{$acumCBM}}

@csrf
Detalle de servicio
Si desea que el valor del servicio a ingresar sea multiplicado por el factor, recuerde marcar el cuadro W/M.
@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 Operaciones
{{$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
Recuerde dar click al boton guardar luego de modificar la nota.
@endif