@foreach ($codes as $key => $saleProduct)
@php $Col2FontSize = 18; $col2PtX = 12; if(strlen(trim($saleOrderDetail->saleOrder->reference_name)) >= 28) { $Col2FontSize = 15; $col2PtX = 25; } @endphp

{{ $saleOrderDetail->saleOrder->reference_name }}

{{ $saleOrderDetail->zone->name }}

@if($saleOrderDetail->ticket_price > 0)
PRECIO:
S/{{ number_format($saleOrderDetail->ticket_price,2) }}
@endif
@if($saleOrderDetail->saleOrder->shop && !empty($saleOrderDetail->saleOrder->shop->ruc)) {{ $saleOrderDetail->saleOrder->shop->type_doc }} {{ $saleOrderDetail->saleOrder->shop->ruc }}
{{ $saleOrderDetail->saleOrder->shop->business_name }} @endif
 
DNI:                     Nombre:
@if($saleOrderDetail->location) {{ $saleOrderDetail->location->place_name }} @else   @endif
@if($saleOrderDetail->ticket_event_date_hour) @endif

N° {{ $saleProduct->correlative }}


{{ $saleProduct->code }}
@if(!empty($saleOrderDetail->ticket_instructions)) ______________________

{!! $saleOrderDetail->ticket_instructions !!}

@endif
{{-- @if ($key < count($codes) - 1)--}} {{--
--}} {{-- --}}{{--
--}} {{--
--}} {{--
--}} {{-- @endif--}} @endforeach()