@php $logoFullPath = public_path('images/logo-full.png'); $logoPath = public_path('images/logo.png'); $logoBase64 = null; if(file_exists($logoFullPath)) { $logoData = base64_encode(file_get_contents($logoFullPath)); $logoBase64 = 'data:image/png;base64,' . $logoData; } elseif(file_exists($logoPath)) { $logoData = base64_encode(file_get_contents($logoPath)); $logoBase64 = 'data:image/png;base64,' . $logoData; } @endphp @if($logoBase64) @endif

Comercial Mar-K SPA

RUT: 77.943.847-3

Comercialización de Artículos Publicitarios

Tel.: 974791522 | Mail: ventas@mar-k.cl

Orden de Trabajo #{{ str_pad($venta->id, 5, '0', STR_PAD_LEFT) }}
Fecha: {{ $ventaProducto->ot_fecha_envio ? $ventaProducto->ot_fecha_envio->format('d/m/Y') : now()->format('d/m/Y') }} Entrega: {{ $ventaProducto->ot_fecha_entrega_proveedor ? $ventaProducto->ot_fecha_entrega_proveedor->format('d/m/Y') : 'No definida' }}
Proveedor: @if($ventaProducto->ot_proveedor_aplicacion) @php $proveedor = \App\Models\Supplier::find($ventaProducto->ot_proveedor_aplicacion); @endphp {{ $proveedor ? $proveedor->name : 'No encontrado' }} @else No asignado @endif Emitida por: Carola Navarro
Producto: {{ $ventaProducto->producto->name }} ({{ $ventaProducto->producto->code }})@if($ventaProducto->isAgotado()) — PRODUCTO AGOTADO@endif Cantidad: {{ $ventaProducto->cantidad }}
Aplicación: Tipo: {{ $ventaProducto->ot_tipo_aplicacion ?: $ventaProducto->tipo_aplicacion ?: 'Sin Aplicación' }} @if($ventaProducto->valor_real > 0)
Precio: ${{ number_format($ventaProducto->valor_real, 0, ',', '.') }} @endif
Colores: {{ $ventaProducto->getCantidadColoresLabel() }}
@if(!empty($ventaProducto->maqueta_colores_pantone) && count($ventaProducto->maqueta_colores_pantone) > 0)
COLORES PANTONE
@foreach($ventaProducto->maqueta_colores_pantone as $color) {{ $color }} @endforeach
@endif @if($ventaProducto->maqueta_imagen)
MOCKUP
@php $imagenBase64 = null; $rutaImagen = storage_path('app/public/' . $ventaProducto->maqueta_imagen); if(file_exists($rutaImagen)) { $imagenData = base64_encode(file_get_contents($rutaImagen)); $extension = pathinfo($rutaImagen, PATHINFO_EXTENSION); $mimeType = $extension === 'png' ? 'png' : 'jpeg'; $imagenBase64 = "data:image/$mimeType;base64," . $imagenData; } @endphp @if($imagenBase64) Maqueta @else
Imagen de maqueta no disponible
@endif
@endif @if($ventaProducto->ot_comentarios)
TENGA PRESENTE
{!! $ventaProducto->ot_comentarios !!}
@endif

En el caso que la propuesta de la aplicación de logo no sea factible técnicamente o por

cualquier problema con la ejecución de esta producción, por favor comunicarse con

Francisco Vidal.

Teléfono: +56 9 86511156