@extends('layout') @section('content')

{{ __('Transaction Details') }}

{{-- Transaction Header --}}

{{ __('Transaction Amount') }}

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

{{ __('ID') }} {{ $transaction->uuid ?? 'TR-' . $transaction->id }}

@php $statusClass = match (strtolower($transaction->status)) { 'completed', 'successful', 'paid' => 'successful', 'failed', 'refunded', 'partially refunded', 'cancelled' => 'failed', 'pending' => 'pending', default => '', }; @endphp {{ __(ucfirst($transaction->status)) }}
{{-- Booking & Event Info --}}
{{-- Booking Details --}}

{{ __('Booking Details') }}

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

{{-- Event Details --}}

{{ $order->event->title ?? '-' }}

  • icon {{ optional($order->event->start_date)->format('d M, Y') ?? '-' }} {{ optional($order->event->end_date)->format('d M, Y') ?? '-' }}
  • icon {{ $order->event->location ?? '-' }} {{ $order->event->address ?? '-' }}
{{-- Attendee Details --}}

{{ __('Attendee Details') }}

user image
@if ($order->event->provider->phone) icon {{ $order->event->provider->phone }} @endif @if ($order->event->provider->email) icon {{ $order->event->provider->email }} @endif icon {{ $order->payment_method }} ---- ---- ---- {{ substr($order->card_number, -4) }}
{{-- Payment Summary --}}

{{ __('Payment Summary') }}

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

{{ __('Fee') }} ${{ number_format($order->fees ?? 0, 2) }}

{{ __('Total Amount') }} ${{ number_format($order->total ?? 0, 2) }}
{{ __('Back to Transactions') }}
{{-- Scripts --}} @endsection