{{-- Shared withdrawal receipt presentation. Used by both the auth-customer confirmation page and the guest signed-URL page. $withdrawal (Withdrawal model), $isGuest (bool). --}} @php $isDeclined = $withdrawal->status === 'declined'; $statusContext = [ 'received' => [ 'badge' => 'bg-amber-100 text-amber-800', 'hero_bg' => 'bg-emerald-100 text-emerald-700', ], 'refunded' => [ 'badge' => 'bg-emerald-100 text-emerald-800', 'hero_bg' => 'bg-emerald-100 text-emerald-700', ], 'declined' => [ 'badge' => 'bg-red-100 text-red-800', 'hero_bg' => 'bg-red-100 text-red-700', ], ][$withdrawal->status] ?? [ 'badge' => 'bg-zinc-100 text-zinc-800', 'hero_bg' => 'bg-zinc-100 text-zinc-700', ]; @endphp
@if ($isDeclined) × @else @endif

@lang('shop::app.eu_withdrawal.confirmation.heading_'.$withdrawal->status)

@lang('shop::app.eu_withdrawal.confirmation.intro_'.$withdrawal->status)

@lang('shop::app.eu_withdrawal.confirmation.intro_'.$withdrawal->status)

{{-- Receipt Card --}}
@lang('shop::app.eu_withdrawal.confirmation.received_at')
{{ $withdrawal->received_at->copy()->setTimezone('UTC')->format('d M Y, H:i') }} UTC
@lang('shop::app.eu_withdrawal.confirmation.reference')
{{ $withdrawal->uuid }}
@lang('shop::app.eu_withdrawal.confirmation.order')
@if (! $isGuest) #{{ $withdrawal->order->increment_id ?? $withdrawal->order_id }} @else #{{ $withdrawal->order->increment_id ?? $withdrawal->order_id }} @endif
@lang('shop::app.eu_withdrawal.confirmation.email')
{{ $withdrawal->customer_email }}
@lang('shop::app.eu_withdrawal.confirmation.status')
@lang('shop::app.eu_withdrawal.confirmation.status_'.$withdrawal->status)
@lang('shop::app.eu_withdrawal.confirmation.reason')
{{ $withdrawal->reason_text ?: '—' }}
{{-- Refund Timeline --}}

@lang('shop::app.eu_withdrawal.confirmation.next_steps_title')

  1. @lang('shop::app.eu_withdrawal.confirmation.step_received')

    {{ $withdrawal->received_at->copy()->setTimezone('UTC')->format('d M Y, H:i') }} UTC

  2. @if ($withdrawal->confirmation_sent_at) @else @endif

    @lang('shop::app.eu_withdrawal.confirmation.step_email')

    @if ($withdrawal->confirmation_sent_at) @lang('shop::app.eu_withdrawal.confirmation.email_sent') @elseif ($withdrawal->confirmation_error) @lang('shop::app.eu_withdrawal.confirmation.email_pending') @else @lang('shop::app.eu_withdrawal.confirmation.email_pending') @endif

  3. @if ($withdrawal->refunded_at)

    @lang('shop::app.eu_withdrawal.confirmation.step_refund_done')

    {{ $withdrawal->refunded_at->copy()->setTimezone('UTC')->format('d M Y, H:i') }} UTC

    @elseif ($withdrawal->declined_at) ×

    @lang('shop::app.eu_withdrawal.confirmation.step_declined')

    @if ($withdrawal->declined_reason)

    @lang('shop::app.eu_withdrawal.confirmation.declined_reason_label')

    {{ $withdrawal->declined_reason }}

    @endif

    @lang('shop::app.eu_withdrawal.confirmation.declined_notice')

    @else

    @lang('shop::app.eu_withdrawal.confirmation.step_refund')

    @lang('shop::app.eu_withdrawal.confirmation.refund_notice')

    @endif

@lang('shop::app.eu_withdrawal.confirmation.durable_medium_notice')

@if (! $isGuest)
@lang('shop::app.customers.account.orders.title')
@endif @pushOnce('scripts') @endPushOnce