@extends('tickets.layouts.public') @section('title', 'Order Confirmation - Loyaltiya Tickets') @section('content')
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
@endif @if ($order->isPaid()) @php $ticket = $order->tickets->first(); @endphp {{-- Event banner header --}}
{{ $order->event->name }}
Payment Successful

{{ $order->event->name }}

{{ $order->event->event_starts_at->format('D, M d, Y h:i A') }}

{{-- QR + action buttons --}}
Your Entry Pass
@if ($ticket) Ticket QR code

{{ $ticket->ticket_number }}

{{ $order->quantity }} {{ \Illuminate\Support\Str::plural('person', $order->quantity) }} on this pass

Download Tickets & Receipt
@csrf
@else

Your ticket is still being generated - refresh in a moment.

@endif
{{-- Order summary --}}
Order Summary

Order #: {{ $order->id }}

Name: {{ $order->customer->name }}

Email: {{ $order->customer->email }}

@foreach ($order->items as $item) @endforeach @if ($order->discount_amount > 0) @endif
Ticket Type Qty Price Subtotal
{{ $item->ticket_type_name }} {{ $item->quantity }} {{ $order->currency }} {{ number_format($item->unit_price, 2) }} {{ $order->currency }} {{ number_format($item->subtotal, 2) }}
Discount @if($order->coupon)({{ $order->coupon->code }})@endif -{{ $order->currency }} {{ number_format($order->discount_amount, 2) }}
GST {{ $order->currency }} {{ number_format($order->gst_amount, 2) }}
Total Paid {{ $order->currency }} {{ number_format($order->total_amount, 2) }}
@if ($order->event->isOffline())

{{ $order->event->venue_name }}

{{ collect([$order->event->address_1, $order->event->city, $order->event->state, $order->event->country])->filter()->implode(', ') }}

@else

Streaming link will be shared before the event starts.

@endif
@else

Processing Your Payment

We're confirming your payment with Stripe. This page will update shortly - refresh in a few seconds if your tickets don't appear yet.

@endif
@endsection @if (! $order->isPaid()) @push('scripts') @endpush @endif