@php $precio = $preventa->precio_radio; $moneda = $preventa->Sucursal->moneda; $sucursal = $preventa->Sucursal; if($sucursal->ArchivoSucursal){ $sucursal->img = url($sucursal->ArchivoSucursal->Archivo->url); } @endphp
@if ($sucursal->img) product @endif
{{$sucursal->nombre}}

{{$sucursal->direccion}}

{{$sucursal->documento->name}}: {{$sucursal->nro_documento}}

{{$sucursal->telefono}}

P-{{ $preventa->format_preventa }}

CLIENTE: {{ $preventa->cliente->nombre }}
{{ $preventa->cliente->documento->name}}: {{ $preventa->cliente->nro_documento }}
DIRECCION: {{ $preventa->cliente->direccion }}
FECHA: {{ $preventa->fecha }}


@foreach ($preventa->PreventaDetalles as $item) @php $precio_v = "precio_$precio"; @endphp @endforeach @foreach ($preventa->PreventaServicios as $item) @php $precio_v = "precio_$precio"; @endphp @endforeach @foreach ($preventa->PreventaCombos as $item) @php $precio_v = "precio_$precio"; @endphp @endforeach
Descripcion Precio Cantidad Total
{{ $item->Producto->nombre }} {{ $item->$precio_v }} {{ $item->cantidad }} {{ $item->Producto->Medida->prefijo }} {{ sprintf("%.2f",floatval($item->total),2) }}
{{ $item->Servicio->nombre }} {{ $item->$precio_v }} {{ $item->cantidad }} {{ sprintf("%.2f",floatval($item->total),2) }}
{{ $item->Combo->nombre }} {{ $item->$precio_v }} {{ $item->cantidad }} {{ sprintf("%.2f",floatval($item->total),2) }}
SUMAS: {{$moneda}} {{$preventa->sumas}}
SUB TOTAL: {{$moneda}} {{$preventa->subtotal}}
IVA ({{$preventa->Sucursal->iva}} %): {{$moneda}} {{$preventa->iva}}
EXENTO: {{$moneda}} {{$preventa->exento}}
DESCUENTO: {{$moneda}} {{$preventa->descuento}}
TOTAL A PAGAR: {{$moneda}} {{$preventa->total}}


ES UN PLACER SERVIRLE

ESPERAMOS QUE VUELVA