@php $pdfWidth = $pdf_config['pdf_width'] ?? 904; $pdfHeight = $pdf_config['pdf_height'] ?? 1600; $pdfBgPath = !empty($pdf_config['pdf_bg']) ? storage_path('app/public/' . $pdf_config['pdf_bg']) : public_path('images/ticket-bg.jpg'); $pdfBgMime = mime_content_type($pdfBgPath) ?: 'image/jpeg'; $pdfBg = 'data:' . $pdfBgMime . ';base64,' . base64_encode(file_get_contents($pdfBgPath)); // Calcular espaciado proporcional (62.5% del alto para el área superior) $topSpacing = round($pdfHeight * 0.625); // Calcular tamaño del QR proporcional (aproximadamente 22% del ancho) $qrSize = round($pdfWidth * 0.38); if ($qrSize > 400) $qrSize = 400; if ($qrSize < 150) $qrSize = 150; // Calcular tamaño de fuente proporcional $fontSize = round($pdfWidth * 0.046); if ($fontSize > 42) $fontSize = 42; if ($fontSize < 18) $fontSize = 18; @endphp
@if(isset($tickets)) @foreach ($tickets as $index => $ticket)|
@if (!empty($ticket['print_info']['name']))
{!! html_entity_decode($ticket['print_info']['name']) !!}
@endif
@if (!empty($ticket['print_info']['member_id']))
{!! html_entity_decode($ticket['print_info']['member_id']) !!}
@endif
|
|
{{ $ticket['qr_code'] }} Orden #{{ isset($order->id) ? documentFormat($order->id) : (isset($order['id']) ? documentFormat($order['id']) : '') }} |
|
@if (!empty($ticket['name']))
{!! html_entity_decode($ticket['name']) !!}
@endif
@if (!empty($ticket['print_info']['seat']))
Asiento: {!! html_entity_decode($ticket['print_info']['seat']) !!}
@endif
|
|
@if (!empty($order['print_info']['name']))
{!! html_entity_decode($order['print_info']['name']) !!}
@endif
@if (!empty($order['print_info']['member_id']))
{!! html_entity_decode($order['print_info']['member_id']) !!}
@endif
|
|
{{ $order['ticket']['qr_code'] }} Orden #{{ isset($order->id) ? documentFormat($order->id) : (isset($order['id']) ? documentFormat($order['id']) : '') }} |
|
@if (!empty($order['ticket']['name']))
{!! html_entity_decode($order['ticket']['name']) !!}
@endif
@if (!empty($order['print_info']['seat']))
Asiento: {!! html_entity_decode($order['print_info']['seat']) !!}
@endif
|