@extends('layout') @push('styles') @endpush @section('content')

{{ __('Booking Amount') }}

{{ $ticketCurrency }}{{ number_format($order->total, 2) }}

{{ __('ID') }} {{ $order->id }}

{{ __($order->payment_status) }} {{ __($order->order_status) }}

{{ $order->event->title ?? __('Event Name') }}

  • {{ $order->event->type ?? __('Event Type') }} {{ $order->event->category ?? __('Event Category') }}
  • icon {{ optional($order->event)->start_date?->format('d M, Y') ?? __('Start Date') }} {{ optional($order->event)->end_date?->format('d M, Y') ?? __('End Date') }}
  • icon {{ $order->event->location ?? __('Location') }} {{ $order->event->address ?? __('Address details goes here') }}

{{ __('Attendee Details') }}

user image
icon {{ $order->phone }} icon {{ $order->email }} icon {{ $order->payment_method }} ---- {{ substr($order->card_number, -4) }}
{{-- questions and answers section --}}

{{ __('Questions & Answers') }}

    @forelse ($order->answers as $index => $answer) @php $answerData = json_decode($answer->answer, true); @endphp
  • {{-- Question number --}}
    {{ __('Question #') }}{{ $index + 1 }}
    {{-- Question --}}
    {{ __('Question') }}
    {{ $answer->question?->question ?? '-' }}
    {{-- Answer --}}
    {{ __('Answer') }}
    @if (isset($answerData['text'])) {{ $answerData['text'] }} @else - @endif
  • @empty
  • {{ __('No questions answered for this booking.') }}
  • @endforelse
{{-- ticket details section --}}

{{ __('Tickets Details') }}

    @foreach ($tickets as $ticket)
  • {{ __('Ticket Type') }} {{ $ticket['ticket_type_title'] }}
    {{ __('Count') }} {{ $ticket['quantity'] }}
    {{ __('Amount') }} {{ $ticketCurrency }}{{ number_format($ticket['line_total'], 2) }}
  • @endforeach

{{ __('Payment Summary') }}

{{-- Invoice icon --}}
@foreach ($tickets as $ticket)
{{ $ticket['ticket_type_title'] }} {{ $ticket['quantity'] }} × {{ $ticketCurrency }}{{ number_format($ticket['price'], 2) }}
@endforeach
{{ __('Subtotal') }}{{ $ticketCurrency }}{{ number_format($order->sub_total, 2) }}

{{ __('Fees') }}{{ $ticketCurrency }}{{ number_format($order->fees, 2) }}
{{ __('Tax') }}{{ $ticketCurrency }}{{ number_format($order->tax, 2) }}
{{ __('Discount') }}{{ $ticketCurrency }}{{ number_format($order->discount, 2) }}

{{ __('Total Amount') }}{{ $ticketCurrency }}{{ number_format($order->total, 2) }}
{{-- Scripts --}} @endsection