{{--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
Puerto de Carga (CY) {{$detalle->carga}} {{$detalle->incoterm->inter_name}}
Puerto de Descarga (CY) {{$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)* 35.32; $acumWE +=$factor->peso * $factor->cant_bultos;} @endphp {{--Variable--}} {{--Variable--}}
Total segun datos recibidos PIE3 {{$acumCBM}}Total segun datos recibidos LBS {{$acumWE}}

a) Cargos variables

{{$total=0, $totalF=0}}
@php $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--}} @php $totalTTV+=$total; $totalCAV+=$sub; $totalIVAV+=$iva; @endphp @endif @endforeach {{--Variable--}} {{--Variable--}} {{--Variable--}}
Concepto Valor IVA Total
{{$service->serv_name}} $ {{number_format($sub,2)}}$ {{number_format($iva,2)}}$ {{number_format($total,2)}}
Monto Total $ {{number_format($totalCAV,2)}}$ {{number_format($totalIVAV,2)}}$ {{number_format($totalTTV,2)}}

b) Cargos fijos

@php $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--}} @php $totalTTV+=$total; $totalCAV+=$sub; $totalIVAV+=$iva; @endphp @endif @endforeach {{--Variable--}} {{--Variable--}} {{--Variable--}}
Concepto Costo aplicable IVA Total
{{$service->serv_name}} $ {{number_format($sub,2)}}$ {{number_format($iva,2)}}$ {{number_format($total,2)}}
Monto Total $ {{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: {{$vendedor->telefono}}
Email: {{$vendedor->email}}