@extends('theme::layouts.app', ['title' => isset($failed) ? __('checkout.title|Payment Failed') : __('checkout.title|Order Cancelled')]) @section('content')
@if(isset($failed))
error

{{ __('checkout.heading|Payment Failed') }}

{{ __('checkout.Unfortunately, we couldn\'t process your payment. Your card was not charged.') }}

@else
cancel

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

{{ __('checkout.You have cancelled your order. No charges were made.') }}

@endif

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

#{{ $order->order_reference }}

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

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

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

@if(isset($failed))

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

@else

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

@endif

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

@if(isset($failed)) {{ __('checkout.Failed') }} @else {{ __('checkout.Cancelled') }} @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

{{ __('checkout.Quantity') }}: {{ $item->quantity }}

{!! ch_format_price($item->price, $order->currency) !!}
@endforeach
@if(isset($failed))
warning

{{ __('checkout.Potential Reason: Insufficient Funds') }}

{{ __('checkout.Please ensure your card has enough balance or contact your bank for more information. You can also try a different payment method.') }}

@endif
help

{{ __('checkout.Issue Persists?') }}

{{ __('checkout.Our support team is available 24/7 to help you with your purchase.') }}

encrypted

{{ __('checkout.Secure Transactions') }}

{{ __('checkout.Your payment data is fully encrypted and never stored on our servers.') }}

@endsection