@if($cotizacion->servicio->codigo_servicio == "IAER") @else @endif
{{--Variable--}}
{{--Variable--}} {{--Variable--}} {{--Variable--}} {{--Variable--}}
Señores: {{$cotizacion->cliente->nombre_cliente}}Fecha: {{date("d/m/Y", strtotime($cotizacion->created_at))}}
Atencion : {{$cotizacion->cliente->contacto1}}Validez: {{date("d/m/Y", strtotime($detalle->fecha_limite))}}

{{--Variable--}} {{--Variable--}} {{--Variable--}} {{--Variable--}} {{--Variable--}} {{--Variable--}}
.
.
Lugar de recepcion (SD) {{$detalle->origen}} Incoterm
Aeropuertro de Carga {{$detalle->carga}} {{$detalle->incoterm->inter_name}}
Aeropuerto de Descarga {{$detalle->descarga}} Mercancia
Lugar de Entrega (SD) {{$detalle->destino}} {{$detalle->tipo_carga}}


@php $acumCBM=0; $acumWE=0; foreach ($factores as $factor){ $acumCBM +=($factor->alt * $factor->anc * $factor->larg* $factor->cant_bultos)/$detalle->valor_kg; $acumWE +=$factor->peso * $factor->cant_bultos;} if($acumCBM>$acumWE) $fmayor=$acumCBM; else $fmayor=$acumWE; @endphp {{--Variable--}} {{--Variable--}} {{--Variable--}}
Peso Real Peso Volumen
{{$acumWE}}{{$acumCBM}}Peso Tasable : {{$fmayor}}

a) Cargos variables

{{$total=0, $totalF=0}}
@php $totalKTV=0; $totalTTV=0; $totalCAV=0; $totalIVAV=0; @endphp @foreach($ofertServices as $service) @if($service->factor == 1) @php $sub=$service->valor * $service->cantidad * $param->factor; if($service->iva == 1){ $iva=$sub*0.13; } else { $iva=0; } $total=$iva+$sub; @endphp {{--Variable--}} {{--Variable--}} {{--Variable--}} {{--Variable--}} @php $totalTTV+=$total; $totalCAV+=$sub; $totalIVAV+=$iva; $totalKTV+=$service->valor; @endphp @endif @endforeach {{--Variable--}} {{--Variable--}} {{--Variable--}} {{--Variable--}} {{-- --}}
Concepto Costo por Kilo Tasable Costo aplicable IVA Total
{{$service->serv_name}} $ {{number_format($service->valor,2)}}$ {{number_format($sub,2)}}$ {{number_format($iva,2)}}$ {{number_format($total,2)}}
Monto Total $ {{number_format($totalKTV,2)}}$ {{number_format($totalCAV,2)}}$ {{number_format($totalIVAV,2)}}$ {{number_format($totalTTV,2)}}
TOTAL C.Variables {{round($totalCV,2)}}

b) Cargos fijos

@php $totalKTV=0; $totalTTV=0; $totalCAV=0; $totalIVAV=0; @endphp @foreach($ofertServices as $service) @if($service->factor != 1) @php $sub=$service->valor * $service->cantidad; if($service->iva == 1){ $iva=$sub*0.13; } else { $iva=0; } $total=$iva+$sub; @endphp {{--Variable--}} {{--Variable--}} {{--Variable--}} {{--Variable--}} @php $totalTTV+=$total; $totalCAV+=$sub; $totalIVAV+=$iva; $totalKTV+=$service->valor; @endphp @endif @endforeach {{--Variable--}} {{--Variable--}} {{--Variable--}} {{--Variable--}}
Concepto Costo unitario Costo aplicable IVA Total
{{$service->serv_name}} $ {{number_format($service->valor,2)}}$ {{number_format($sub,2)}}$ {{number_format($iva,2)}}$ {{number_format($total,2)}}
Monto Total $ {{number_format($totalKTV,2)}}$ {{number_format($totalCAV,2)}}$ {{number_format($totalIVAV,2)}}$ {{number_format($totalTTV,2)}}

Terminos y condiciones

@php echo $detalle->nota_extra @endphp

{{-- Borras el p descomentado y descomentas el p de abajo cunado ya mandes los datos del controlador --}}

{{$vendedor->name}}
{{$vendedor->cargo}}
APOPSA EL SALVADOR
Teléfono: (503) 2223-4222
Móvil: (503) 7608 – 7145
Email: ventassv2@apopsa.com

{{--

{{$vendedor->name}}
{{$vendedor->cargo}}
Agentes Portuarios del Pacifico SA de CV (APOPSA SA de CV)
Teléfono: (503) 2223-4222
Móvil: {{$vendedor->telefono}}
Email: {{$vendedor->email}}

--}}