@extends('theme::layouts.app', ['title' => __('checkout.title|Order Success')]) @section('content')
@if($order->status == getConstant('ORDER_STATUS_PROCESSING')) {{-- Order Processing State (from order-processing.html) --}}
sync

{{ __('checkout.heading|Processing Your Order') }}

{{ __('checkout.Please wait while we finalize your payment and prepare your digital assets.') }}

@else {{-- Order Completed State (from order-completed.html) --}}
check_circle
celebration

{{ __('checkout.heading|Thank You for Your Order!') }}

{{ __('checkout.Your payment was successful and your digital assets are ready.') }}

@endif
{{-- Order Header Info --}}

{{ __('checkout.Order Number') }}

#{{ $order->order_reference }}

{{ __('checkout.Order Date') }}

{{ $order->created_at->format('F d, Y') }}

{{ __('checkout.Status') }}

@if($order->status == getConstant('ORDER_STATUS_PROCESSING'))

{{ __('checkout.Processing') }}

@else

{{ __('checkout.Completed') }}

@endif

{{ __('checkout.heading|Order Details') }}

@if($order->status == getConstant('ORDER_STATUS_PROCESSING')) {{ __('checkout.Awaiting Confirmation') }} @else {{ __('checkout.Payment Verified') }} @endif
@foreach($order->main_items as $item)
@if($item->product_image) {{ $item->name }} @else inventory_2 @endif

{!! $item->name !!}

@if($item->billing_cycle_label) {{ $item->billing_cycle_label }} @endif
@if($item->description)

{{ $item->description }}

@endif {{-- Included Add-ons Pills --}} @if($order->addon_items->count() > 0)

{{ __('checkout.Included Add-ons') }}

@foreach($order->addon_items as $addon) extension {{ $addon->name }} ({!! ch_format_price($addon->price, $order->currency) !!}) @endforeach
@endif
{!! ch_format_price($item->price, $order->currency) !!}
@endforeach
{{ __('checkout.Subtotal') }} {!! ch_format_price($order->subtotal, $order->currency) !!}
@if($order->discount_amount > 0)
{{ __('checkout.Discount') }} -{!! ch_format_price($order->discount_amount, $order->currency) !!}
@endif @if($order->tax_amount > 0)
{{ __('checkout.Tax') }} {!! ch_format_price($order->tax_amount, $order->currency) !!}
@endif
{{ __('checkout.Total Amount') }} {!! ch_format_price($order->total, $order->currency) !!}
@if($order->status == getConstant('ORDER_STATUS_PROCESSING'))
info

{{ __('checkout.Your downloads will be available in My Downloads in your account once your payment is confirmed.') }}

@else @endif
@if($order->status == getConstant('ORDER_STATUS_PROCESSING'))
mail

{{ __('checkout.heading|Order Summary Sent') }}

{{ __('checkout.We\'ve sent a summary of this pending order to your email address.') }}

support_agent

{{ __('checkout.heading|Need Help?') }}

{{ __('checkout.If processing takes more than a minute, please contact our support team.') }}

@endif
@endsection