@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 "Factor de conversion" 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

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

TOTAL PESO/ KG :{{ $acumWE }}
TOTAL KG/VOL: {{ $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) @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
@endif