@extends('layouts.app') @section('title', 'Mis Entradas') @section('body')
@if ($orders['total'] > 0)
@foreach ($orders['data'] as $key => $order) @php $product = $order['products'][0]['product'] ?? null; $imgSrc = $product ? env('CDN_URL') . '/public/products/' . $product['id'] . '/' . ($product['ticketing_super_img'] ?? '') . '?w=350' : 'https://placehold.co/344x142'; @endphp Event Image
{{ $product ? \Carbon\Carbon::parse($product['fecha_evento'])->format('d \d\e F') : 'Fecha no disponible' }} • {{ $product ? \Carbon\Carbon::parse($product['hora_evento'])->format('g:ia') : 'Hora no disponible' }}
Orden de compra: {{ $order['id'] ?? 'N/A' }}
{{ $product['title_small'] ?? 'Evento' }}
{{-- {{dd($product['address'])}} --}}

{{ \Illuminate\Support\Str::limit($product['address'] ?? 'Lugar no especificado', 40, '...') }}

@if ($order['status'] == '1') @else @endif
@endforeach
@if ($orders['last_page'] > 1)
@if ($orders['prev_page_url']) Anterior @endif @foreach ($orders['links'] as $link) @if (is_numeric($link['label'])) {{ $link['label'] }} @endif @endforeach @if ($orders['next_page_url']) Siguiente @endif
@endif
@else

Mis Entradas

Aún no has realizado ningún pedido

Aún no tienes entradas

Parece que todavía no has comprado ninguna entrada.
¿Por qué no echas un vistazo a los próximos eventos?

@endif
@endsection