@if ($mode == 'pdf') @endif Códigos de acceso @foreach ($saleProducts as $key => $saleProduct)

{{ $saleProduct->correlative }}

@if (!empty($saleProduct->product->ticketing_super_img))

@if ($mode == 'pdf') @else @endif

@if ($mode != 'pdf')
@endif @endif
@if($saleProduct->sales->payment_method_id == 12) @endif @if ($saleProduct->is_aditional || $saleProduct->product->type_product_id != 3) @else @endif

{{ $saleProduct->product->title_small }}

CORTESÍA

{{-- Producto
--}} {{-- {{ $saleProduct->name }}
--}} Incluye
{{ $saleProduct->detail }}
Cantidad
{{ $saleProduct->quantity }}

Código:{{ $saleProduct->cupon_code }} / Pedido:{{ $saleProduct->sale_id }}

{{-- @if ($saleProduct->sales->payment_method_id != 8)--}} {{-- @if ($saleProduct->tipoEntrada && $saleProduct->tipoEntrada->superProductTerms->name != 'ENTRADAS')--}} {{-- {{ $saleProduct->tipoEntrada->superProductTerms->name }}--}} {{-- @else--}} {{-- ENTRADA--}} {{-- @endif--}} {{-- @if ($saleProducts->count() > 1)--}} {{-- N° {{ $key + 1 }}--}} {{-- @endif--}} {{-- @else--}} {{-- ENTRADA--}} {{-- @endif--}} @if ($saleProduct->tipoEntrada) @if ($saleProduct->ubicacion) {{-- Si tiene ubicación solo se muetra la ubicación --}} {{ $saleProduct->ubicacion->name }} @else {{ $saleProduct->tipoEntrada->name }} @endif {{-- @elseif($saleProduct->detail) --}} {{-- {{ $saleProduct->detail }} --}} {{-- @endif --}}
@if ($saleProduct->persons > 1) {{ $saleProduct->persons }} @if ($saleProduct->persons > 1) Personas @else Persona @endif @endif {{-- @if ($saleProduct->tipoEntrada->line_1) --}} {{-- {{ $saleProduct->tipoEntrada->line_1 }} --}} {{-- @endif --}} @if ($saleProduct->sales->payment_method_id != 12) @if ($saleProduct->tipoEntrada->line_2 && $saleProduct->tipoEntrada->line_2 != 'Elige tu BOX') @if ($saleProduct->persons > 1) / @endif {{ $saleProduct->tipoEntrada->line_2 }} @endif @else {{ $saleProduct->tipoEntrada->line_1 }} @endif @endif

@if ($saleProduct->product->id != 410)
@if($saleProduct->sales->seler_id != 1) @endif

Precio:
@if($saleProduct->sales->payment_method_id == 12) Cortesia @else @if($saleProduct->sales->total_price > 0) S/{{ number_format($saleProduct->total_price,2) }} @else S/{{ number_format(0,2) }} @endif @endif

@if($saleProduct->nominated_at)
{{ \Illuminate\Support\Str::upper($saleProduct->nom_name) }}
{{ \Illuminate\Support\Str::upper($saleProduct->nom_lastname) }}
@if(!empty($saleProduct->nom_dni)) DNI/CE: {{ $saleProduct->nom_dni }} @else   @endif
* Nominado
@else
@if(!empty($saleProduct->sales->client->name)) {{ \Illuminate\Support\Str::upper($saleProduct->sales->client->name) }} @else - @endif
@if(!empty($saleProduct->sales->client->paternal_name)) {{ \Illuminate\Support\Str::upper($saleProduct->sales->client->paternal_name) }} {{ \Illuminate\Support\Str::upper($saleProduct->sales->client->maternal_name) }} @else - @endif
@if(!empty($saleProduct->sales->client->document_number)) DNI: {{ $saleProduct->sales->client->document_number }} @else   @endif
 
@endif
@if ($saleProduct->product->address)

Dirección:
{{ $saleProduct->product->address }}

@endif @if (isset($saleProduct->tipoEntrada->date_term) && $saleProduct->tipoEntrada->date_term)

{{ $saleProduct->tipoEntrada->date_term->format('d/m/Y') }} a las {{-- {{ $saleProduct->tipoEntrada->hour_term }} --}} {{ \Carbon\Carbon::createFromFormat('H:i', $saleProduct->tipoEntrada->hour_term)->format('h:ia') }}

@endif
@endif

@if($saleProduct->product->shop && !empty($saleProduct->product->shop->ruc)) ORGANIZADOR :
{{ $saleProduct->product->shop->business_name }}
{{ $saleProduct->product->shop->type_doc }} {{ $saleProduct->product->shop->ruc }} @endif

{{ $saleProduct->cupon_code }} - {{ $saleProduct->sale_id }}

@if (!empty($saleProduct->product->ticketing_fotter_text) )

{{ $saleProduct->product->ticketing_fotter_text }}

@endif
@if (!empty($saleProduct->product->ticketing_fotter_img))

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

@endif @endforeach()