@extends('layouts.app') @section('title', __('Order placed')) @section('content') @php $m = $shop->money; $a = $order->address; $unpaidAba = $order->payment && $order->payment->code === 'aba_payway' && $order->payment_status !== 'paid' && $order->status !== 'cancelled'; @endphp
@if ($unpaidAba)

{{ __('Payment not completed yet') }}

{{ __('Order :n is saved, but we have not received your payment.', ['n' => $order->order_number]) }}

{{ __('Pay now with ABA PayWay') }}
@else

{{ __('Thank you!') }}

{{ __('Order :n has been placed.', ['n' => $order->order_number]) }}

@endif

{{ __('Payment') }}

{{ $order->payment ? __($order->payment->name) : '' }}

{{ $order->payment && $order->payment->type === 'cod' ? __('Pay when your order arrives.') : ($order->payment_status === 'paid' ? __('Paid') : __('Awaiting payment')) }}

{{ __('Delivering to') }}

@if ($a)

{{ $a->recipient_name }}
{{ $a->address_line1 }}@if ($a->address_line2), {{ $a->address_line2 }}@endif
{{ $a->province }}

@endif
{{ __('Subtotal') }}
{{ $m->format((float) $order->subtotal) }}
@if ((float) $order->discount_total > 0)
{{ __('Discount') }}
−{{ $m->format((float) $order->discount_total) }}
@endif
{{ __('Delivery') }} ({{ $order->shipping_method_name }})
{{ (float) $order->shipping_fee > 0 ? $m->format((float) $order->shipping_fee) : __('Free') }}
{{ __('Total') }}
{{ $m->format((float) $order->grand_total) }}
{{ __('Continue shopping') }} @auth{{ __('View my orders') }}@endauth
@endsection