@php use App\Order; use App\Enumerables\Currency; use App\Enumerables\PaymentStatus; /** * @var Order $order */ $offline = false; // ($order->changedCourses) ? false : ($order->paymentMethod == 'Offline'); $language = config('app.locale') ?? 'zh'; $currency = ($order->currency == Currency::GBP) ? '£ ' : '¥ '; $isPending = !!($order->paymentStatus == PaymentStatus::CART_PROCESSING); @endphp
{{isset($order->created_at) ? \App\Traits\Timezone::getTimezoneTimestamp($order->created_at, 'd/m/Y H:i:s') : ''}}
{{ __('Order No') }}: {{$order->displayOrderNo}}
@foreach($order->cartItems as $cartItem) @include('account.order.order_history_row_item', [ 'isPaid' => $order->paymentStatus == \App\Enumerables\PaymentStatus::PAID ]) @endforeach
@if($offline)
{{"N/A"}}
@else
{{$currency.number_format($order->orderDiscountedValue(), 2, ".", ",")}}
@if($order->hasApplicationFees())
({{__('Includes application fee')}}: {{$currency.number_format(($order->applicationFees ?? 0), 2, ".", ",")}})
@endif @endif
@if($order->paymentStatus == \App\Enumerables\PaymentStatus::PAID)
@if($order->getActiveCartItems() > 0) {{__('PAID')}} @else {{__('CLOSED')}} @endif
@endif @if($order->paymentStatus == \App\Enumerables\PaymentStatus::CANCELLED)
{{__('CANCELLED')}}
@endif @if($isPending) {{__('order-pay')}}
 
@endif {{__('View Order')}} @if($isPending) {{__('Cancel Order')}} @endif @if($order->paymentStatus == \App\Enumerables\PaymentStatus::CANCELLED) {{__('order-re-add-to-cart')}} @endif